Skip to content

Update module path to include version v3 #1221

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Apr 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cli/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
"fmt"
"strings"

"github.com/aliyun/aliyun-cli/i18n"
"github.com/aliyun/aliyun-cli/v3/i18n"
)

type Command struct {
Expand Down
2 changes: 1 addition & 1 deletion cli/command_help_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"errors"
"testing"

"github.com/aliyun/aliyun-cli/i18n"
"github.com/aliyun/aliyun-cli/v3/i18n"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion cli/command_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"fmt"
"testing"

"github.com/aliyun/aliyun-cli/i18n"
"github.com/aliyun/aliyun-cli/v3/i18n"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion cli/completion_installer.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"os"
"os/user"

"github.com/aliyun/aliyun-cli/i18n"
"github.com/aliyun/aliyun-cli/v3/i18n"
)

var hookGetBinaryPath = func(fn func() (string, error)) func() (string, error) {
Expand Down
2 changes: 1 addition & 1 deletion cli/completion_installer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"runtime"
"testing"

"github.com/aliyun/aliyun-cli/i18n"
"github.com/aliyun/aliyun-cli/v3/i18n"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion cli/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
"fmt"
"io"

"github.com/aliyun/aliyun-cli/i18n"
"github.com/aliyun/aliyun-cli/v3/i18n"
)

//
Expand Down
2 changes: 1 addition & 1 deletion cli/context_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (

"github.com/stretchr/testify/assert"

"github.com/aliyun/aliyun-cli/i18n"
"github.com/aliyun/aliyun-cli/v3/i18n"
)

var cmd = &Command{
Expand Down
2 changes: 1 addition & 1 deletion cli/flag.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
"fmt"
"strconv"

"github.com/aliyun/aliyun-cli/i18n"
"github.com/aliyun/aliyun-cli/v3/i18n"
)

type AssignedMode int
Expand Down
2 changes: 1 addition & 1 deletion cli/flag_field.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ package cli
import (
"fmt"

"github.com/aliyun/aliyun-cli/i18n"
"github.com/aliyun/aliyun-cli/v3/i18n"
)

type Field struct {
Expand Down
2 changes: 1 addition & 1 deletion cli/flag_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (

"github.com/stretchr/testify/assert"

"github.com/aliyun/aliyun-cli/i18n"
"github.com/aliyun/aliyun-cli/v3/i18n"
)

func resetFlag() *Flag {
Expand Down
2 changes: 1 addition & 1 deletion cli/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ package cli
import (
"strings"

"github.com/aliyun/aliyun-cli/i18n"
"github.com/aliyun/aliyun-cli/v3/i18n"
)

// This variable is replaced in compile time
Expand Down
2 changes: 1 addition & 1 deletion cli/version_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
"bytes"
"testing"

"github.com/aliyun/aliyun-cli/i18n"
"github.com/aliyun/aliyun-cli/v3/i18n"
"github.com/stretchr/testify/assert"
)

Expand Down
4 changes: 2 additions & 2 deletions config/configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ import (
"os"
"runtime"

"github.com/aliyun/aliyun-cli/cli"
"github.com/aliyun/aliyun-cli/util"
"github.com/aliyun/aliyun-cli/v3/cli"
"github.com/aliyun/aliyun-cli/v3/util"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion config/configuration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"runtime"
"testing"

"github.com/aliyun/aliyun-cli/cli"
"github.com/aliyun/aliyun-cli/v3/cli"

"github.com/stretchr/testify/assert"
)
Expand Down
4 changes: 2 additions & 2 deletions config/configure.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import (
"strconv"
"strings"

"github.com/aliyun/aliyun-cli/cli"
"github.com/aliyun/aliyun-cli/i18n"
"github.com/aliyun/aliyun-cli/v3/cli"
"github.com/aliyun/aliyun-cli/v3/i18n"
)

var hookLoadConfiguration = func(fn func(path string) (*Configuration, error)) func(path string) (*Configuration, error) {
Expand Down
6 changes: 3 additions & 3 deletions config/configure_delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
Expand All @@ -14,8 +14,8 @@
package config

import (
"github.com/aliyun/aliyun-cli/cli"
"github.com/aliyun/aliyun-cli/i18n"
"github.com/aliyun/aliyun-cli/v3/cli"
"github.com/aliyun/aliyun-cli/v3/i18n"
)

func NewConfigureDeleteCommand() *cli.Command {
Expand Down
2 changes: 1 addition & 1 deletion config/configure_delete_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"errors"
"testing"

"github.com/aliyun/aliyun-cli/cli"
"github.com/aliyun/aliyun-cli/v3/cli"
"github.com/stretchr/testify/assert"
)

Expand Down
4 changes: 2 additions & 2 deletions config/configure_get.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ import (
"encoding/json"
"reflect"

"github.com/aliyun/aliyun-cli/cli"
"github.com/aliyun/aliyun-cli/i18n"
"github.com/aliyun/aliyun-cli/v3/cli"
"github.com/aliyun/aliyun-cli/v3/i18n"
)

func NewConfigureGetCommand() *cli.Command {
Expand Down
2 changes: 1 addition & 1 deletion config/configure_get_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (

"github.com/stretchr/testify/assert"

"github.com/aliyun/aliyun-cli/cli"
"github.com/aliyun/aliyun-cli/v3/cli"
)

func TestDoConfigureGet(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions config/configure_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import (
"io"
"text/tabwriter"

"github.com/aliyun/aliyun-cli/cli"
"github.com/aliyun/aliyun-cli/i18n"
"github.com/aliyun/aliyun-cli/v3/cli"
"github.com/aliyun/aliyun-cli/v3/i18n"
)

func NewConfigureListCommand() *cli.Command {
Expand Down
4 changes: 2 additions & 2 deletions config/configure_set.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ package config
import (
"io"

"github.com/aliyun/aliyun-cli/cli"
"github.com/aliyun/aliyun-cli/i18n"
"github.com/aliyun/aliyun-cli/v3/cli"
"github.com/aliyun/aliyun-cli/v3/i18n"
)

func NewConfigureSetCommand() *cli.Command {
Expand Down
2 changes: 1 addition & 1 deletion config/configure_set_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (

"github.com/stretchr/testify/assert"

"github.com/aliyun/aliyun-cli/cli"
"github.com/aliyun/aliyun-cli/v3/cli"
)

func TestDoConfigureSet(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions config/configure_switch.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ import (
"fmt"
"io"

"github.com/aliyun/aliyun-cli/cli"
"github.com/aliyun/aliyun-cli/i18n"
"github.com/aliyun/aliyun-cli/v3/cli"
"github.com/aliyun/aliyun-cli/v3/i18n"
)

func NewConfigureSwitchCommand() *cli.Command {
Expand Down
2 changes: 1 addition & 1 deletion config/configure_switch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"errors"
"testing"

"github.com/aliyun/aliyun-cli/cli"
"github.com/aliyun/aliyun-cli/v3/cli"
"github.com/stretchr/testify/assert"
)

Expand Down
4 changes: 2 additions & 2 deletions config/configure_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ import (

"github.com/stretchr/testify/assert"

"github.com/aliyun/aliyun-cli/cli"
"github.com/aliyun/aliyun-cli/i18n"
"github.com/aliyun/aliyun-cli/v3/cli"
"github.com/aliyun/aliyun-cli/v3/i18n"
)

func TestNewConfigureCommand(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions config/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
package config

import (
"github.com/aliyun/aliyun-cli/cli"
"github.com/aliyun/aliyun-cli/i18n"
"github.com/aliyun/aliyun-cli/v3/cli"
"github.com/aliyun/aliyun-cli/v3/i18n"
)

const (
Expand Down
6 changes: 3 additions & 3 deletions config/flags_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
Expand All @@ -16,8 +16,8 @@ package config
import (
"testing"

"github.com/aliyun/aliyun-cli/cli"
"github.com/aliyun/aliyun-cli/i18n"
"github.com/aliyun/aliyun-cli/v3/cli"
"github.com/aliyun/aliyun-cli/v3/i18n"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion config/hello.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
openapi "github.com/alibabacloud-go/darabonba-openapi/v2/client"
util "github.com/alibabacloud-go/tea-utils/v2/service"
"github.com/alibabacloud-go/tea/tea"
"github.com/aliyun/aliyun-cli/cli"
"github.com/aliyun/aliyun-cli/v3/cli"
)

func doHello(ctx *cli.Context, profile *Profile) (err error) {
Expand Down
2 changes: 1 addition & 1 deletion config/hello_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (

"github.com/stretchr/testify/assert"

"github.com/aliyun/aliyun-cli/cli"
"github.com/aliyun/aliyun-cli/v3/cli"
)

func TestDoHello(t *testing.T) {
Expand Down
6 changes: 3 additions & 3 deletions config/profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ import (
"regexp"
"strings"

"github.com/aliyun/aliyun-cli/cli"
"github.com/aliyun/aliyun-cli/i18n"
"github.com/aliyun/aliyun-cli/util"
"github.com/aliyun/aliyun-cli/v3/cli"
"github.com/aliyun/aliyun-cli/v3/i18n"
"github.com/aliyun/aliyun-cli/v3/util"
credentialsv2 "github.com/aliyun/credentials-go/credentials"
)

Expand Down
2 changes: 1 addition & 1 deletion config/profile_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"os"
"testing"

"github.com/aliyun/aliyun-cli/cli"
"github.com/aliyun/aliyun-cli/v3/cli"

"github.com/stretchr/testify/assert"
)
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/aliyun/aliyun-cli
module github.com/aliyun/aliyun-cli/v3

go 1.23.0

Expand Down
12 changes: 6 additions & 6 deletions main/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ import (
"path"
"strings"

aliyunopenapimeta "github.com/aliyun/aliyun-cli/aliyun-openapi-meta"
"github.com/aliyun/aliyun-cli/cli"
"github.com/aliyun/aliyun-cli/config"
"github.com/aliyun/aliyun-cli/i18n"
"github.com/aliyun/aliyun-cli/openapi"
"github.com/aliyun/aliyun-cli/oss/lib"
aliyunopenapimeta "github.com/aliyun/aliyun-cli/v3/aliyun-openapi-meta"
"github.com/aliyun/aliyun-cli/v3/cli"
"github.com/aliyun/aliyun-cli/v3/config"
"github.com/aliyun/aliyun-cli/v3/i18n"
"github.com/aliyun/aliyun-cli/v3/openapi"
"github.com/aliyun/aliyun-cli/v3/oss/lib"
)

func Main(args []string) {
Expand Down
2 changes: 1 addition & 1 deletion meta/reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
"encoding/json"
"fmt"

aliyunopenapimeta "github.com/aliyun/aliyun-cli/aliyun-openapi-meta"
aliyunopenapimeta "github.com/aliyun/aliyun-cli/v3/aliyun-openapi-meta"
)

func ReadJsonFrom(path string, v interface{}) error {
Expand Down
2 changes: 1 addition & 1 deletion newmeta/meta.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/json"
"strings"

aliyunopenapimeta "github.com/aliyun/aliyun-cli/aliyun-openapi-meta"
aliyunopenapimeta "github.com/aliyun/aliyun-cli/v3/aliyun-openapi-meta"
)

// {
Expand Down
8 changes: 4 additions & 4 deletions openapi/commando.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ import (
"bytes"

"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
"github.com/aliyun/aliyun-cli/cli"
"github.com/aliyun/aliyun-cli/config"
"github.com/aliyun/aliyun-cli/i18n"
"github.com/aliyun/aliyun-cli/meta"
"github.com/aliyun/aliyun-cli/v3/cli"
"github.com/aliyun/aliyun-cli/v3/config"
"github.com/aliyun/aliyun-cli/v3/i18n"
"github.com/aliyun/aliyun-cli/v3/meta"

"encoding/json"
"fmt"
Expand Down
8 changes: 4 additions & 4 deletions openapi/commando_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ import (
"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
"github.com/stretchr/testify/assert"

"github.com/aliyun/aliyun-cli/cli"
"github.com/aliyun/aliyun-cli/config"
"github.com/aliyun/aliyun-cli/i18n"
"github.com/aliyun/aliyun-cli/meta"
"github.com/aliyun/aliyun-cli/v3/cli"
"github.com/aliyun/aliyun-cli/v3/config"
"github.com/aliyun/aliyun-cli/v3/i18n"
"github.com/aliyun/aliyun-cli/v3/meta"
)

func Test_main(t *testing.T) {
Expand Down
Loading
Loading