Switch from mitchellh/cli to hashicorp/cli (#24239)

@mitchellh suggested we fork `cli` and switch to that.

Since we primarily use the interfaces in `cli`, and the new
fork has not changed those, this is (mostly) a drop-in replacement.

A small fix will be necessary for Vault Enterprise, I believe.
This commit is contained in:
Christopher Swenson
2023-12-04 11:05:02 -08:00
committed by GitHub
parent 91ec1a788b
commit 6ed8b88f5f
207 changed files with 217 additions and 221 deletions

View File

@@ -19,6 +19,7 @@ import (
"time"
systemd "github.com/coreos/go-systemd/daemon"
"github.com/hashicorp/cli"
ctconfig "github.com/hashicorp/consul-template/config"
"github.com/hashicorp/go-hclog"
"github.com/hashicorp/go-multierror"
@@ -45,7 +46,6 @@ import (
"github.com/hashicorp/vault/sdk/logical"
"github.com/hashicorp/vault/version"
"github.com/kr/pretty"
"github.com/mitchellh/cli"
"github.com/oklog/run"
"github.com/posener/complete"
"golang.org/x/text/cases"

View File

@@ -13,10 +13,10 @@ import (
"strings"
"unicode"
"github.com/hashicorp/cli"
"github.com/hashicorp/hcl/v2/gohcl"
"github.com/hashicorp/hcl/v2/hclwrite"
"github.com/hashicorp/vault/api"
"github.com/mitchellh/cli"
"github.com/mitchellh/go-homedir"
"github.com/posener/complete"
)

View File

@@ -20,6 +20,7 @@ import (
"testing"
"time"
"github.com/hashicorp/cli"
"github.com/hashicorp/go-hclog"
vaultjwt "github.com/hashicorp/vault-plugin-auth-jwt"
logicalKv "github.com/hashicorp/vault-plugin-secrets-kv"
@@ -35,7 +36,6 @@ import (
"github.com/hashicorp/vault/sdk/helper/pointerutil"
"github.com/hashicorp/vault/sdk/logical"
"github.com/hashicorp/vault/vault"
"github.com/mitchellh/cli"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)

View File

@@ -6,7 +6,7 @@ package command
import (
"strings"
"github.com/mitchellh/cli"
"github.com/hashicorp/cli"
)
var _ cli.Command = (*AuditCommand)(nil)

View File

@@ -7,7 +7,7 @@ import (
"fmt"
"strings"
"github.com/mitchellh/cli"
"github.com/hashicorp/cli"
"github.com/posener/complete"
)

View File

@@ -7,8 +7,8 @@ import (
"strings"
"testing"
"github.com/hashicorp/cli"
"github.com/hashicorp/vault/api"
"github.com/mitchellh/cli"
)
func testAuditDisableCommand(tb testing.TB) (*cli.MockUi, *AuditDisableCommand) {

View File

@@ -9,8 +9,8 @@ import (
"os"
"strings"
"github.com/hashicorp/cli"
"github.com/hashicorp/vault/api"
"github.com/mitchellh/cli"
"github.com/posener/complete"
)

View File

@@ -9,7 +9,7 @@ import (
"strings"
"testing"
"github.com/mitchellh/cli"
"github.com/hashicorp/cli"
)
func testAuditEnableCommand(tb testing.TB) (*cli.MockUi, *AuditEnableCommand) {

View File

@@ -8,8 +8,8 @@ import (
"sort"
"strings"
"github.com/hashicorp/cli"
"github.com/hashicorp/vault/api"
"github.com/mitchellh/cli"
"github.com/posener/complete"
)

View File

@@ -7,8 +7,8 @@ import (
"strings"
"testing"
"github.com/hashicorp/cli"
"github.com/hashicorp/vault/api"
"github.com/mitchellh/cli"
)
func testAuditListCommand(tb testing.TB) (*cli.MockUi, *AuditListCommand) {

View File

@@ -6,7 +6,7 @@ package command
import (
"strings"
"github.com/mitchellh/cli"
"github.com/hashicorp/cli"
)
var _ cli.Command = (*AuthCommand)(nil)

View File

@@ -7,7 +7,7 @@ import (
"fmt"
"strings"
"github.com/mitchellh/cli"
"github.com/hashicorp/cli"
"github.com/posener/complete"
)

View File

@@ -7,7 +7,7 @@ import (
"strings"
"testing"
"github.com/mitchellh/cli"
"github.com/hashicorp/cli"
)
func testAuthDisableCommand(tb testing.TB) (*cli.MockUi, *AuthDisableCommand) {

View File

@@ -10,8 +10,8 @@ import (
"strings"
"time"
"github.com/hashicorp/cli"
"github.com/hashicorp/vault/api"
"github.com/mitchellh/cli"
"github.com/posener/complete"
)

View File

@@ -11,10 +11,10 @@ import (
"github.com/go-test/deep"
"github.com/google/go-cmp/cmp"
"github.com/hashicorp/cli"
"github.com/hashicorp/vault/helper/builtinplugins"
"github.com/hashicorp/vault/sdk/helper/consts"
"github.com/hashicorp/vault/sdk/helper/strutil"
"github.com/mitchellh/cli"
)
func testAuthEnableCommand(tb testing.TB) (*cli.MockUi, *AuthEnableCommand) {

View File

@@ -7,7 +7,7 @@ import (
"fmt"
"strings"
"github.com/mitchellh/cli"
"github.com/hashicorp/cli"
"github.com/posener/complete"
)

View File

@@ -7,7 +7,7 @@ import (
"strings"
"testing"
"github.com/mitchellh/cli"
"github.com/hashicorp/cli"
credUserpass "github.com/hashicorp/vault/builtin/credential/userpass"
)

View File

@@ -9,8 +9,8 @@ import (
"strconv"
"strings"
"github.com/hashicorp/cli"
"github.com/hashicorp/vault/api"
"github.com/mitchellh/cli"
"github.com/posener/complete"
)

View File

@@ -7,7 +7,7 @@ import (
"strings"
"testing"
"github.com/mitchellh/cli"
"github.com/hashicorp/cli"
)
func testAuthListCommand(tb testing.TB) (*cli.MockUi, *AuthListCommand) {

View File

@@ -8,7 +8,7 @@ import (
"strings"
"time"
"github.com/mitchellh/cli"
"github.com/hashicorp/cli"
"github.com/posener/complete"
)

View File

@@ -7,8 +7,8 @@ import (
"strings"
"testing"
"github.com/hashicorp/cli"
"github.com/hashicorp/vault/api"
"github.com/mitchellh/cli"
)
func testAuthMoveCommand(tb testing.TB) (*cli.MockUi, *AuthMoveCommand) {

View File

@@ -6,7 +6,7 @@ package command
import (
"testing"
"github.com/mitchellh/cli"
"github.com/hashicorp/cli"
"github.com/hashicorp/vault/command/token"
)

View File

@@ -10,8 +10,8 @@ import (
"strings"
"time"
"github.com/hashicorp/cli"
"github.com/hashicorp/vault/api"
"github.com/mitchellh/cli"
"github.com/posener/complete"
)

View File

@@ -8,9 +8,9 @@ import (
"testing"
"github.com/go-test/deep"
"github.com/hashicorp/cli"
"github.com/hashicorp/vault/api"
"github.com/hashicorp/vault/helper/testhelpers/corehelpers"
"github.com/mitchellh/cli"
)
func testAuthTuneCommand(tb testing.TB) (*cli.MockUi, *AuthTuneCommand) {

View File

@@ -15,11 +15,11 @@ import (
"sync"
"time"
"github.com/hashicorp/cli"
"github.com/hashicorp/vault/api"
"github.com/hashicorp/vault/command/token"
"github.com/hashicorp/vault/helper/namespace"
"github.com/mattn/go-isatty"
"github.com/mitchellh/cli"
"github.com/pkg/errors"
"github.com/posener/complete"
)

View File

@@ -8,9 +8,9 @@ package command
//go:generate go run github.com/hashicorp/vault/tools/stubmaker
import (
"github.com/hashicorp/cli"
"github.com/hashicorp/vault/command/server"
"github.com/hashicorp/vault/vault"
"github.com/mitchellh/cli"
)
func entInitCommands(ui, serverCmdUi cli.Ui, runOpts *RunOptions, commands map[string]cli.CommandFactory) {

View File

@@ -12,6 +12,7 @@ import (
"testing"
"time"
"github.com/hashicorp/cli"
log "github.com/hashicorp/go-hclog"
kv "github.com/hashicorp/vault-plugin-secrets-kv"
"github.com/hashicorp/vault/api"
@@ -25,7 +26,6 @@ import (
"github.com/hashicorp/vault/sdk/physical/inmem"
"github.com/hashicorp/vault/vault"
"github.com/hashicorp/vault/vault/seal"
"github.com/mitchellh/cli"
auditFile "github.com/hashicorp/vault/builtin/audit/file"
credUserpass "github.com/hashicorp/vault/builtin/credential/userpass"

View File

@@ -8,12 +8,12 @@ import (
"os/signal"
"syscall"
"github.com/hashicorp/cli"
"github.com/hashicorp/vault/audit"
"github.com/hashicorp/vault/builtin/plugin"
"github.com/hashicorp/vault/sdk/logical"
"github.com/hashicorp/vault/sdk/physical"
"github.com/hashicorp/vault/version"
"github.com/mitchellh/cli"
/*
The builtinplugins package is initialized here because it, in turn,

View File

@@ -17,6 +17,7 @@ import (
"sync"
"time"
"github.com/hashicorp/cli"
"github.com/hashicorp/go-hclog"
"github.com/hashicorp/go-secure-stdlib/gatedwriter"
"github.com/hashicorp/go-secure-stdlib/strutil"
@@ -26,7 +27,6 @@ import (
"github.com/hashicorp/vault/sdk/helper/logging"
"github.com/hashicorp/vault/version"
"github.com/mholt/archiver/v3"
"github.com/mitchellh/cli"
"github.com/oklog/run"
"github.com/posener/complete"
)

View File

@@ -16,9 +16,9 @@ import (
"testing"
"time"
"github.com/hashicorp/cli"
"github.com/hashicorp/vault/api"
"github.com/mholt/archiver/v3"
"github.com/mitchellh/cli"
)
func testDebugCommand(tb testing.TB) (*cli.MockUi, *DebugCommand) {

View File

@@ -9,7 +9,7 @@ import (
"os"
"strings"
"github.com/mitchellh/cli"
"github.com/hashicorp/cli"
"github.com/posener/complete"
)

View File

@@ -7,7 +7,7 @@ import (
"strings"
"testing"
"github.com/mitchellh/cli"
"github.com/hashicorp/cli"
)
func testDeleteCommand(tb testing.TB) (*cli.MockUi, *DeleteCommand) {

View File

@@ -11,8 +11,8 @@ import (
"os"
"strings"
"github.com/hashicorp/cli"
"github.com/hashicorp/vault/api"
"github.com/mitchellh/cli"
"github.com/posener/complete"
"nhooyr.io/websocket"
)

View File

@@ -7,7 +7,7 @@ import (
"strings"
"testing"
"github.com/mitchellh/cli"
"github.com/hashicorp/cli"
)
func testEventsSubscribeCommand(tb testing.TB) (*cli.MockUi, *EventsSubscribeCommands) {

View File

@@ -14,8 +14,8 @@ import (
"time"
"github.com/ghodss/yaml"
"github.com/hashicorp/cli"
"github.com/hashicorp/vault/api"
"github.com/mitchellh/cli"
"github.com/ryanuber/columnize"
)

View File

@@ -6,7 +6,7 @@ package command
import (
"strings"
"github.com/mitchellh/cli"
"github.com/hashicorp/cli"
)
var _ cli.Command = (*KVCommand)(nil)

View File

@@ -8,8 +8,8 @@ import (
"path"
"strings"
"github.com/hashicorp/cli"
"github.com/hashicorp/vault/api"
"github.com/mitchellh/cli"
"github.com/posener/complete"
)

View File

@@ -8,7 +8,7 @@ import (
"path"
"strings"
"github.com/mitchellh/cli"
"github.com/hashicorp/cli"
"github.com/posener/complete"
)

View File

@@ -7,8 +7,8 @@ import (
"fmt"
"strings"
"github.com/hashicorp/cli"
"github.com/hashicorp/vault/api"
"github.com/mitchellh/cli"
"github.com/posener/complete"
)

View File

@@ -8,7 +8,7 @@ import (
"path"
"strings"
"github.com/mitchellh/cli"
"github.com/hashicorp/cli"
"github.com/posener/complete"
)

View File

@@ -12,9 +12,9 @@ import (
"sort"
"strings"
"github.com/hashicorp/cli"
"github.com/hashicorp/go-secure-stdlib/strutil"
"github.com/hashicorp/vault/api"
"github.com/mitchellh/cli"
)
func kvReadRequest(client *api.Client, path string, params map[string]string) (*api.Secret, error) {

View File

@@ -8,7 +8,7 @@ import (
"path"
"strings"
"github.com/mitchellh/cli"
"github.com/hashicorp/cli"
"github.com/posener/complete"
)

View File

@@ -6,7 +6,7 @@ package command
import (
"strings"
"github.com/mitchellh/cli"
"github.com/hashicorp/cli"
)
var _ cli.Command = (*KVMetadataCommand)(nil)

View File

@@ -8,7 +8,7 @@ import (
"path"
"strings"
"github.com/mitchellh/cli"
"github.com/hashicorp/cli"
"github.com/posener/complete"
)

View File

@@ -10,7 +10,7 @@ import (
"strconv"
"strings"
"github.com/mitchellh/cli"
"github.com/hashicorp/cli"
"github.com/posener/complete"
)

View File

@@ -11,7 +11,7 @@ import (
"strings"
"time"
"github.com/mitchellh/cli"
"github.com/hashicorp/cli"
"github.com/posener/complete"
)

View File

@@ -10,8 +10,8 @@ import (
"testing"
"github.com/go-test/deep"
"github.com/hashicorp/cli"
"github.com/hashicorp/vault/api"
"github.com/mitchellh/cli"
)
func testKVMetadataPatchCommand(tb testing.TB) (*cli.MockUi, *KVMetadataPatchCommand) {

View File

@@ -10,7 +10,7 @@ import (
"strings"
"time"
"github.com/mitchellh/cli"
"github.com/hashicorp/cli"
"github.com/posener/complete"
)

View File

@@ -9,8 +9,8 @@ import (
"testing"
"github.com/go-test/deep"
"github.com/hashicorp/cli"
"github.com/hashicorp/vault/api"
"github.com/mitchellh/cli"
)
func testKVMetadataPutCommand(tb testing.TB) (*cli.MockUi, *KVMetadataPutCommand) {

View File

@@ -11,8 +11,8 @@ import (
"path"
"strings"
"github.com/hashicorp/cli"
"github.com/hashicorp/vault/api"
"github.com/mitchellh/cli"
"github.com/posener/complete"
)

View File

@@ -10,7 +10,7 @@ import (
"path"
"strings"
"github.com/mitchellh/cli"
"github.com/hashicorp/cli"
"github.com/posener/complete"
)

View File

@@ -9,7 +9,7 @@ import (
"path"
"strings"
"github.com/mitchellh/cli"
"github.com/hashicorp/cli"
"github.com/posener/complete"
)

View File

@@ -11,8 +11,8 @@ import (
"testing"
"time"
"github.com/hashicorp/cli"
"github.com/hashicorp/vault/api"
"github.com/mitchellh/cli"
)
func testKVPutCommand(tb testing.TB) (*cli.MockUi, *KVPutCommand) {

View File

@@ -8,7 +8,7 @@ import (
"path"
"strings"
"github.com/mitchellh/cli"
"github.com/hashicorp/cli"
"github.com/posener/complete"
)

View File

@@ -6,7 +6,7 @@ package command
import (
"strings"
"github.com/mitchellh/cli"
"github.com/hashicorp/cli"
)
var _ cli.Command = (*LeaseCommand)(nil)

View File

@@ -7,7 +7,7 @@ import (
"fmt"
"strings"
"github.com/mitchellh/cli"
"github.com/hashicorp/cli"
"github.com/posener/complete"
)

View File

@@ -7,8 +7,8 @@ import (
"strings"
"testing"
"github.com/hashicorp/cli"
"github.com/hashicorp/vault/api"
"github.com/mitchellh/cli"
)
func testLeaseLookupCommand(tb testing.TB) (*cli.MockUi, *LeaseLookupCommand) {

View File

@@ -8,7 +8,7 @@ import (
"strings"
"time"
"github.com/mitchellh/cli"
"github.com/hashicorp/cli"
"github.com/posener/complete"
)

View File

@@ -7,8 +7,8 @@ import (
"strings"
"testing"
"github.com/hashicorp/cli"
"github.com/hashicorp/vault/api"
"github.com/mitchellh/cli"
)
func testLeaseRenewCommand(tb testing.TB) (*cli.MockUi, *LeaseRenewCommand) {

View File

@@ -7,8 +7,8 @@ import (
"fmt"
"strings"
"github.com/hashicorp/cli"
"github.com/hashicorp/vault/api"
"github.com/mitchellh/cli"
"github.com/posener/complete"
)

View File

@@ -7,8 +7,8 @@ import (
"strings"
"testing"
"github.com/hashicorp/cli"
"github.com/hashicorp/vault/api"
"github.com/mitchellh/cli"
)
func testLeaseRevokeCommand(tb testing.TB) (*cli.MockUi, *LeaseRevokeCommand) {

View File

@@ -7,7 +7,7 @@ import (
"fmt"
"strings"
"github.com/mitchellh/cli"
"github.com/hashicorp/cli"
"github.com/posener/complete"
)

View File

@@ -7,7 +7,7 @@ import (
"strings"
"testing"
"github.com/mitchellh/cli"
"github.com/hashicorp/cli"
)
func testListCommand(tb testing.TB) (*cli.MockUi, *ListCommand) {

View File

@@ -10,7 +10,7 @@ import (
"testing"
"time"
"github.com/mitchellh/cli"
"github.com/hashicorp/cli"
"github.com/hashicorp/vault/api"
credToken "github.com/hashicorp/vault/builtin/credential/token"

View File

@@ -15,10 +15,10 @@ import (
"text/tabwriter"
"github.com/fatih/color"
"github.com/hashicorp/cli"
"github.com/hashicorp/vault/api"
"github.com/hashicorp/vault/command/token"
colorable "github.com/mattn/go-colorable"
"github.com/mitchellh/cli"
)
type VaultUI struct {

View File

@@ -8,8 +8,8 @@ import (
"fmt"
"strings"
"github.com/hashicorp/cli"
"github.com/hashicorp/go-secure-stdlib/strutil"
"github.com/mitchellh/cli"
"github.com/posener/complete"
)

View File

@@ -9,7 +9,7 @@ import (
"testing"
"time"
"github.com/mitchellh/cli"
"github.com/hashicorp/cli"
)
func testMonitorCommand(tb testing.TB) (*cli.MockUi, *MonitorCommand) {

View File

@@ -6,7 +6,7 @@ package command
import (
"strings"
"github.com/mitchellh/cli"
"github.com/hashicorp/cli"
)
var _ cli.Command = (*NamespaceCommand)(nil)

View File

@@ -7,8 +7,8 @@ import (
"fmt"
"strings"
"github.com/hashicorp/cli"
"github.com/hashicorp/vault/helper/namespace"
"github.com/mitchellh/cli"
"github.com/posener/complete"
)

View File

@@ -7,8 +7,8 @@ import (
"fmt"
"strings"
"github.com/hashicorp/cli"
"github.com/hashicorp/vault/helper/namespace"
"github.com/mitchellh/cli"
"github.com/posener/complete"
)

View File

@@ -7,7 +7,7 @@ import (
"fmt"
"strings"
"github.com/mitchellh/cli"
"github.com/hashicorp/cli"
"github.com/posener/complete"
)

View File

@@ -7,7 +7,7 @@ import (
"fmt"
"strings"
"github.com/mitchellh/cli"
"github.com/hashicorp/cli"
"github.com/posener/complete"
)

View File

@@ -7,7 +7,7 @@ import (
"fmt"
"strings"
"github.com/mitchellh/cli"
"github.com/hashicorp/cli"
"github.com/posener/complete"
)

View File

@@ -7,7 +7,7 @@ import (
"fmt"
"strings"
"github.com/mitchellh/cli"
"github.com/hashicorp/cli"
"github.com/posener/complete"
)

View File

@@ -9,8 +9,8 @@ import (
"net/http"
"strings"
"github.com/hashicorp/cli"
"github.com/hashicorp/vault/api"
"github.com/mitchellh/cli"
"github.com/posener/complete"
)

View File

@@ -6,7 +6,7 @@ package command
import (
"strings"
"github.com/mitchellh/cli"
"github.com/hashicorp/cli"
)
var _ cli.Command = (*OperatorCommand)(nil)

View File

@@ -18,6 +18,7 @@ import (
"golang.org/x/term"
"github.com/hashicorp/cli"
"github.com/hashicorp/consul/api"
log "github.com/hashicorp/go-hclog"
"github.com/hashicorp/go-secure-stdlib/reloadutil"
@@ -36,7 +37,6 @@ import (
"github.com/hashicorp/vault/vault/diagnose"
"github.com/hashicorp/vault/vault/hcp_link"
"github.com/hashicorp/vault/version"
"github.com/mitchellh/cli"
"github.com/posener/complete"
)

View File

@@ -15,8 +15,8 @@ import (
"github.com/hashicorp/vault/command/server"
"github.com/hashicorp/cli"
"github.com/hashicorp/vault/vault/diagnose"
"github.com/mitchellh/cli"
)
func testOperatorDiagnoseCommand(tb testing.TB) *OperatorDiagnoseCommand {

View File

@@ -10,11 +10,11 @@ import (
"os"
"strings"
"github.com/hashicorp/cli"
"github.com/hashicorp/go-secure-stdlib/password"
"github.com/hashicorp/vault/api"
"github.com/hashicorp/vault/helper/pgpkeys"
"github.com/hashicorp/vault/sdk/helper/roottoken"
"github.com/mitchellh/cli"
"github.com/posener/complete"
)

View File

@@ -13,9 +13,9 @@ import (
"strings"
"testing"
"github.com/hashicorp/cli"
"github.com/hashicorp/vault/sdk/helper/xor"
"github.com/hashicorp/vault/vault"
"github.com/mitchellh/cli"
)
func testOperatorGenerateRootCommand(tb testing.TB) (*cli.MockUi, *OperatorGenerateRootCommand) {

View File

@@ -9,9 +9,9 @@ import (
"runtime"
"strings"
"github.com/hashicorp/cli"
"github.com/hashicorp/vault/api"
"github.com/hashicorp/vault/helper/pgpkeys"
"github.com/mitchellh/cli"
"github.com/posener/complete"
consulapi "github.com/hashicorp/consul/api"

View File

@@ -13,10 +13,10 @@ import (
"strings"
"testing"
"github.com/hashicorp/cli"
"github.com/hashicorp/vault/api"
"github.com/hashicorp/vault/helper/pgpkeys"
"github.com/hashicorp/vault/vault"
"github.com/mitchellh/cli"
)
func testOperatorInitCommand(tb testing.TB) (*cli.MockUi, *OperatorInitCommand) {

View File

@@ -7,7 +7,7 @@ import (
"fmt"
"strings"
"github.com/mitchellh/cli"
"github.com/hashicorp/cli"
"github.com/posener/complete"
)

View File

@@ -7,7 +7,7 @@ import (
"strings"
"testing"
"github.com/mitchellh/cli"
"github.com/hashicorp/cli"
)
func testOperatorKeyStatusCommand(tb testing.TB) (*cli.MockUi, *OperatorKeyStatusCommand) {

View File

@@ -8,7 +8,7 @@ import (
"strings"
"time"
"github.com/mitchellh/cli"
"github.com/hashicorp/cli"
"github.com/posener/complete"
)

View File

@@ -14,6 +14,7 @@ import (
"strings"
"time"
"github.com/hashicorp/cli"
log "github.com/hashicorp/go-hclog"
"github.com/hashicorp/go-secure-stdlib/strutil"
"github.com/hashicorp/hcl"
@@ -23,7 +24,6 @@ import (
"github.com/hashicorp/vault/sdk/helper/logging"
"github.com/hashicorp/vault/sdk/physical"
"github.com/hashicorp/vault/vault"
"github.com/mitchellh/cli"
"github.com/pkg/errors"
"github.com/posener/complete"
"golang.org/x/sync/errgroup"

View File

@@ -6,7 +6,7 @@ package command
import (
"strings"
"github.com/mitchellh/cli"
"github.com/hashicorp/cli"
)
var _ cli.Command = (*OperatorRaftCommand)(nil)

View File

@@ -7,8 +7,8 @@ import (
"fmt"
"strings"
"github.com/hashicorp/cli"
"github.com/hashicorp/vault/api"
"github.com/mitchellh/cli"
"github.com/posener/complete"
)

View File

@@ -8,7 +8,7 @@ import (
"strings"
"time"
"github.com/mitchellh/cli"
"github.com/hashicorp/cli"
"github.com/posener/complete"
)

View File

@@ -8,8 +8,8 @@ import (
"fmt"
"strings"
"github.com/hashicorp/cli"
"github.com/hashicorp/vault/api"
"github.com/mitchellh/cli"
"github.com/posener/complete"
)

View File

@@ -7,8 +7,8 @@ import (
"fmt"
"strings"
"github.com/hashicorp/cli"
"github.com/hashicorp/vault/api"
"github.com/mitchellh/cli"
"github.com/posener/complete"
)

View File

@@ -7,8 +7,8 @@ import (
"fmt"
"strings"
"github.com/hashicorp/cli"
"github.com/hashicorp/vault/api"
"github.com/mitchellh/cli"
"github.com/posener/complete"
)

View File

@@ -7,7 +7,7 @@ import (
"fmt"
"strings"
"github.com/mitchellh/cli"
"github.com/hashicorp/cli"
"github.com/posener/complete"
)

View File

@@ -6,7 +6,7 @@ package command
import (
"strings"
"github.com/mitchellh/cli"
"github.com/hashicorp/cli"
)
var _ cli.Command = (*OperatorRaftSnapshotCommand)(nil)

View File

@@ -20,11 +20,11 @@ import (
"strings"
"text/tabwriter"
"github.com/hashicorp/cli"
"github.com/hashicorp/go-hclog"
"github.com/hashicorp/raft"
protoio "github.com/hashicorp/vault/physical/raft"
"github.com/hashicorp/vault/sdk/plugin/pb"
"github.com/mitchellh/cli"
"github.com/posener/complete"
)

View File

@@ -10,9 +10,9 @@ import (
"strings"
"testing"
"github.com/hashicorp/cli"
"github.com/hashicorp/vault/physical/raft"
"github.com/hashicorp/vault/sdk/physical"
"github.com/mitchellh/cli"
)
func testOperatorRaftSnapshotInspectCommand(tb testing.TB) (*cli.MockUi, *OperatorRaftSnapshotInspectCommand) {

View File

@@ -8,7 +8,7 @@ import (
"os"
"strings"
"github.com/mitchellh/cli"
"github.com/hashicorp/cli"
"github.com/posener/complete"
)

View File

@@ -9,7 +9,7 @@ import (
"os"
"strings"
"github.com/mitchellh/cli"
"github.com/hashicorp/cli"
"github.com/posener/complete"
)

View File

@@ -11,10 +11,10 @@ import (
"strings"
"github.com/fatih/structs"
"github.com/hashicorp/cli"
"github.com/hashicorp/go-secure-stdlib/password"
"github.com/hashicorp/vault/api"
"github.com/hashicorp/vault/helper/pgpkeys"
"github.com/mitchellh/cli"
"github.com/posener/complete"
)

View File

@@ -14,8 +14,8 @@ import (
"github.com/hashicorp/vault/sdk/helper/roottoken"
"github.com/hashicorp/cli"
"github.com/hashicorp/vault/api"
"github.com/mitchellh/cli"
)
func testOperatorRekeyCommand(tb testing.TB) (*cli.MockUi, *OperatorRekeyCommand) {

Some files were not shown because too many files have changed in this diff Show More