forked from TrueCloudLab/frostfs-node
[#1379] neofs-cli: Move common flags to a separate package
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
parent
4be5dce848
commit
cbc4ca800d
15 changed files with 151 additions and 135 deletions
|
@ -3,6 +3,7 @@ package cmd
|
|||
import (
|
||||
"github.com/mr-tron/base58"
|
||||
"github.com/nspcc-dev/neofs-api-go/v2/rpc/client"
|
||||
"github.com/nspcc-dev/neofs-node/cmd/neofs-cli/internal/commonflags"
|
||||
"github.com/nspcc-dev/neofs-node/pkg/services/control"
|
||||
controlSvc "github.com/nspcc-dev/neofs-node/pkg/services/control/server"
|
||||
"github.com/spf13/cobra"
|
||||
|
@ -58,7 +59,7 @@ func dumpShard(cmd *cobra.Command, _ []string) {
|
|||
}
|
||||
|
||||
func initControlDumpShardCmd() {
|
||||
initCommonFlagsWithoutRPC(dumpShardCmd)
|
||||
commonflags.InitWithoutRPC(dumpShardCmd)
|
||||
|
||||
flags := dumpShardCmd.Flags()
|
||||
flags.String(controlRPC, controlRPCDefault, controlRPCUsage)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue