Skip to content

Commit

Permalink
deps: Switch from mitchellh/cli to hashicorp/cli (#19321)
Browse files Browse the repository at this point in the history
Co-authored-by: James Rasell <[email protected]>
  • Loading branch information
angrycub and jrasell authored Dec 19, 2024
1 parent 7d86532 commit 30ab889
Show file tree
Hide file tree
Showing 259 changed files with 262 additions and 258 deletions.
1 change: 1 addition & 0 deletions .semgrep/imports.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ rules:
- pattern: '"github.com/hashicorp/consul/command/flags"'
- pattern: '"github.com/hashicorp/consul/sdk"'
- pattern: '"github.com/hashicorp/go-set"'
- pattern: '"github.com/mitchellh/cli"'
- pattern: '"golang.org/x/exp/slices"'
- pattern: '"golang.org/x/exp/maps"'
- pattern: '"golang.org/x/exp/constraints"'
Expand Down
2 changes: 1 addition & 1 deletion command/acl.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package command
import (
"strings"

"github.com/mitchellh/cli"
"github.com/hashicorp/cli"
)

type ACLCommand struct {
Expand Down
2 changes: 1 addition & 1 deletion command/acl_auth_method.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"fmt"
"strings"

"github.com/hashicorp/cli"
"github.com/hashicorp/nomad/api"
"github.com/mitchellh/cli"
)

// Ensure ACLAuthMethodCommand satisfies the cli.Command interface.
Expand Down
2 changes: 1 addition & 1 deletion command/acl_auth_method_create.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
"strings"
"time"

"github.com/hashicorp/cli"
"github.com/hashicorp/nomad/api"
"github.com/mitchellh/cli"
"github.com/posener/complete"
)

Expand Down
2 changes: 1 addition & 1 deletion command/acl_auth_method_create_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ import (
"os"
"testing"

"github.com/hashicorp/cli"
"github.com/hashicorp/nomad/ci"
"github.com/hashicorp/nomad/command/agent"
"github.com/hashicorp/nomad/testutil"
"github.com/mitchellh/cli"
"github.com/shoenig/test/must"
)

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

"github.com/mitchellh/cli"
"github.com/hashicorp/cli"
"github.com/posener/complete"
)

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

"github.com/hashicorp/cli"
"github.com/hashicorp/nomad/ci"
"github.com/hashicorp/nomad/command/agent"
"github.com/hashicorp/nomad/nomad/mock"
"github.com/hashicorp/nomad/nomad/structs"
"github.com/mitchellh/cli"
"github.com/shoenig/test/must"
)

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

"github.com/mitchellh/cli"
"github.com/hashicorp/cli"
"github.com/posener/complete"
)

Expand Down
2 changes: 1 addition & 1 deletion command/acl_auth_method_info_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ package command
import (
"testing"

"github.com/hashicorp/cli"
"github.com/hashicorp/nomad/ci"
"github.com/hashicorp/nomad/command/agent"
"github.com/hashicorp/nomad/nomad/mock"
"github.com/hashicorp/nomad/nomad/structs"
"github.com/mitchellh/cli"
"github.com/shoenig/test/must"
)

Expand Down
2 changes: 1 addition & 1 deletion command/acl_auth_method_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"fmt"
"strings"

"github.com/hashicorp/cli"
"github.com/hashicorp/nomad/api"
"github.com/mitchellh/cli"
"github.com/posener/complete"
)

Expand Down
2 changes: 1 addition & 1 deletion command/acl_auth_method_list_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ package command
import (
"testing"

"github.com/hashicorp/cli"
"github.com/hashicorp/nomad/ci"
"github.com/hashicorp/nomad/command/agent"
"github.com/hashicorp/nomad/nomad/mock"
"github.com/hashicorp/nomad/nomad/structs"
"github.com/mitchellh/cli"
"github.com/shoenig/test/must"
)

Expand Down
2 changes: 1 addition & 1 deletion command/acl_auth_method_update.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (
"strings"
"time"

"github.com/hashicorp/cli"
"github.com/hashicorp/nomad/api"
"github.com/mitchellh/cli"
"github.com/posener/complete"
)

Expand Down
2 changes: 1 addition & 1 deletion command/acl_auth_method_update_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ import (
"testing"
"time"

"github.com/hashicorp/cli"
"github.com/hashicorp/nomad/ci"
"github.com/hashicorp/nomad/command/agent"
"github.com/hashicorp/nomad/nomad/structs"
"github.com/hashicorp/nomad/testutil"
"github.com/mitchellh/cli"
"github.com/shoenig/test/must"
)

Expand Down
2 changes: 1 addition & 1 deletion command/acl_binding_rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"fmt"
"strings"

"github.com/hashicorp/cli"
"github.com/hashicorp/nomad/api"
"github.com/mitchellh/cli"
)

// Ensure ACLBindingRuleCommand satisfies the cli.Command interface.
Expand Down
2 changes: 1 addition & 1 deletion command/acl_binding_rule_create.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"fmt"
"strings"

"github.com/hashicorp/cli"
"github.com/hashicorp/nomad/api"
"github.com/mitchellh/cli"
"github.com/posener/complete"
)

Expand Down
2 changes: 1 addition & 1 deletion command/acl_binding_rule_create_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import (
"testing"
"time"

"github.com/hashicorp/cli"
"github.com/hashicorp/nomad/ci"
"github.com/hashicorp/nomad/command/agent"
"github.com/hashicorp/nomad/nomad/structs"
"github.com/hashicorp/nomad/testutil"
"github.com/mitchellh/cli"
"github.com/shoenig/test/must"
)

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

"github.com/mitchellh/cli"
"github.com/hashicorp/cli"
"github.com/posener/complete"
)

Expand Down
2 changes: 1 addition & 1 deletion command/acl_binding_rule_delete_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ package command
import (
"testing"

"github.com/hashicorp/cli"
"github.com/hashicorp/nomad/ci"
"github.com/hashicorp/nomad/command/agent"
"github.com/hashicorp/nomad/helper/uuid"
"github.com/hashicorp/nomad/nomad/structs"
"github.com/hashicorp/nomad/testutil"
"github.com/mitchellh/cli"
"github.com/shoenig/test/must"
)

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

"github.com/mitchellh/cli"
"github.com/hashicorp/cli"
"github.com/posener/complete"
)

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

"github.com/hashicorp/cli"
"github.com/hashicorp/nomad/ci"
"github.com/hashicorp/nomad/command/agent"
"github.com/hashicorp/nomad/helper/uuid"
"github.com/hashicorp/nomad/nomad/structs"
"github.com/hashicorp/nomad/testutil"
"github.com/mitchellh/cli"
"github.com/shoenig/test/must"
)

Expand Down
2 changes: 1 addition & 1 deletion command/acl_binding_rule_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"fmt"
"strings"

"github.com/hashicorp/cli"
"github.com/hashicorp/nomad/api"
"github.com/mitchellh/cli"
"github.com/posener/complete"
)

Expand Down
2 changes: 1 addition & 1 deletion command/acl_binding_rule_list_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ package command
import (
"testing"

"github.com/hashicorp/cli"
"github.com/hashicorp/nomad/ci"
"github.com/hashicorp/nomad/command/agent"
"github.com/hashicorp/nomad/helper/uuid"
"github.com/hashicorp/nomad/nomad/structs"
"github.com/hashicorp/nomad/testutil"
"github.com/mitchellh/cli"
"github.com/shoenig/test/must"
)

Expand Down
2 changes: 1 addition & 1 deletion command/acl_binding_rule_update.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"fmt"
"strings"

"github.com/hashicorp/cli"
"github.com/hashicorp/nomad/api"
"github.com/mitchellh/cli"
"github.com/posener/complete"
)

Expand Down
2 changes: 1 addition & 1 deletion command/acl_binding_rule_update_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import (
"testing"
"time"

"github.com/hashicorp/cli"
"github.com/hashicorp/nomad/ci"
"github.com/hashicorp/nomad/command/agent"
"github.com/hashicorp/nomad/helper/uuid"
"github.com/hashicorp/nomad/nomad/structs"
"github.com/hashicorp/nomad/testutil"
"github.com/mitchellh/cli"
"github.com/shoenig/test/must"
)

Expand Down
2 changes: 1 addition & 1 deletion command/acl_bootstrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"strings"
"time"

"github.com/hashicorp/cli"
"github.com/hashicorp/nomad/api"
"github.com/mitchellh/cli"
"github.com/posener/complete"
)

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

"github.com/hashicorp/cli"
"github.com/hashicorp/nomad/ci"
"github.com/hashicorp/nomad/command/agent"
"github.com/hashicorp/nomad/nomad/mock"
"github.com/mitchellh/cli"
"github.com/shoenig/test/must"
)

Expand Down
2 changes: 1 addition & 1 deletion command/acl_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package command
import (
"strings"

"github.com/mitchellh/cli"
"github.com/hashicorp/cli"
)

type ACLPolicyCommand struct {
Expand Down
2 changes: 1 addition & 1 deletion command/acl_policy_apply_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import (
"os"
"testing"

"github.com/hashicorp/cli"
"github.com/hashicorp/nomad/ci"
"github.com/hashicorp/nomad/command/agent"
"github.com/hashicorp/nomad/nomad/mock"
"github.com/mitchellh/cli"
"github.com/shoenig/test/must"
)

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

"github.com/hashicorp/cli"
"github.com/hashicorp/nomad/acl"
"github.com/hashicorp/nomad/ci"
"github.com/hashicorp/nomad/command/agent"
"github.com/hashicorp/nomad/nomad/mock"
"github.com/hashicorp/nomad/nomad/structs"
"github.com/mitchellh/cli"
"github.com/shoenig/test/must"
)

Expand Down
2 changes: 1 addition & 1 deletion command/acl_policy_info_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ package command
import (
"testing"

"github.com/hashicorp/cli"
"github.com/hashicorp/nomad/ci"
"github.com/hashicorp/nomad/command/agent"
"github.com/hashicorp/nomad/nomad/mock"
"github.com/hashicorp/nomad/nomad/structs"
"github.com/mitchellh/cli"
"github.com/shoenig/test/must"
)

Expand Down
2 changes: 1 addition & 1 deletion command/acl_policy_list_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ package command
import (
"testing"

"github.com/hashicorp/cli"
"github.com/hashicorp/nomad/acl"
"github.com/hashicorp/nomad/ci"
"github.com/hashicorp/nomad/command/agent"
"github.com/hashicorp/nomad/nomad/mock"
"github.com/hashicorp/nomad/nomad/structs"
"github.com/mitchellh/cli"
"github.com/shoenig/test/must"
)

Expand Down
2 changes: 1 addition & 1 deletion command/acl_role.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"sort"
"strings"

"github.com/hashicorp/cli"
"github.com/hashicorp/nomad/api"
"github.com/mitchellh/cli"
)

// Ensure ACLRoleCommand satisfies the cli.Command interface.
Expand Down
2 changes: 1 addition & 1 deletion command/acl_role_create.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"fmt"
"strings"

"github.com/hashicorp/cli"
"github.com/hashicorp/nomad/api"
"github.com/mitchellh/cli"
"github.com/posener/complete"
)

Expand Down
2 changes: 1 addition & 1 deletion command/acl_role_create_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ package command
import (
"testing"

"github.com/hashicorp/cli"
"github.com/hashicorp/nomad/ci"
"github.com/hashicorp/nomad/command/agent"
"github.com/hashicorp/nomad/nomad/structs"
"github.com/hashicorp/nomad/testutil"
"github.com/mitchellh/cli"
"github.com/shoenig/test/must"
)

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

"github.com/mitchellh/cli"
"github.com/hashicorp/cli"
"github.com/posener/complete"
)

Expand Down
Loading

0 comments on commit 30ab889

Please sign in to comment.