[#1216] neofs-cli: Rename token subcommand to bearer

It works only with the bearer token.

Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
Evgenii Stratonikov 2022-03-28 12:09:49 +03:00 committed by LeL
parent bd27837364
commit fd8c00400d
3 changed files with 5 additions and 5 deletions

View file

@ -1,4 +1,4 @@
package token
package bearer
import (
"context"

View file

@ -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",
}

View file

@ -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) {