From fd8c00400d7802d03302013744339dfe319c4fa6 Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Mon, 28 Mar 2022 12:09:49 +0300 Subject: [PATCH] [#1216] neofs-cli: Rename `token` subcommand to `bearer` It works only with the bearer token. Signed-off-by: Evgenii Stratonikov --- cmd/neofs-cli/modules/{token => bearer}/create.go | 2 +- cmd/neofs-cli/modules/{token => bearer}/root.go | 4 ++-- cmd/neofs-cli/modules/root.go | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) rename cmd/neofs-cli/modules/{token => bearer}/create.go (99%) rename cmd/neofs-cli/modules/{token => bearer}/root.go (82%) diff --git a/cmd/neofs-cli/modules/token/create.go b/cmd/neofs-cli/modules/bearer/create.go similarity index 99% rename from cmd/neofs-cli/modules/token/create.go rename to cmd/neofs-cli/modules/bearer/create.go index 23bb170c35..472da3170e 100644 --- a/cmd/neofs-cli/modules/token/create.go +++ b/cmd/neofs-cli/modules/bearer/create.go @@ -1,4 +1,4 @@ -package token +package bearer import ( "context" diff --git a/cmd/neofs-cli/modules/token/root.go b/cmd/neofs-cli/modules/bearer/root.go similarity index 82% rename from cmd/neofs-cli/modules/token/root.go rename to cmd/neofs-cli/modules/bearer/root.go index fb25534af6..200d096acf 100644 --- a/cmd/neofs-cli/modules/token/root.go +++ b/cmd/neofs-cli/modules/bearer/root.go @@ -1,11 +1,11 @@ -package token +package bearer import ( "github.com/spf13/cobra" ) var Cmd = &cobra.Command{ - Use: "token", + Use: "bearer", Short: "Operations with bearer token", } diff --git a/cmd/neofs-cli/modules/root.go b/cmd/neofs-cli/modules/root.go index 555a932731..e1307a845d 100644 --- a/cmd/neofs-cli/modules/root.go +++ b/cmd/neofs-cli/modules/root.go @@ -16,7 +16,7 @@ import ( "github.com/nspcc-dev/neo-go/pkg/util" "github.com/nspcc-dev/neo-go/pkg/wallet" "github.com/nspcc-dev/neofs-node/cmd/neofs-cli/modules/acl" - tokenCli "github.com/nspcc-dev/neofs-node/cmd/neofs-cli/modules/token" + bearerCli "github.com/nspcc-dev/neofs-node/cmd/neofs-cli/modules/bearer" "github.com/nspcc-dev/neofs-node/misc" "github.com/nspcc-dev/neofs-node/pkg/network" "github.com/nspcc-dev/neofs-sdk-go/client" @@ -127,7 +127,7 @@ func init() { rootCmd.Flags().Bool("version", false, "Application version and NeoFS API compatibility") rootCmd.AddCommand(acl.Cmd) - rootCmd.AddCommand(tokenCli.Cmd) + rootCmd.AddCommand(bearerCli.Cmd) } func entryPoint(cmd *cobra.Command, _ []string) {