forked from TrueCloudLab/frostfs-node
[#1381] neofs-cli: Move control
command to a separate module
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
parent
71d823f192
commit
d9c5ca5e77
14 changed files with 638 additions and 590 deletions
23
cmd/neofs-cli/modules/control/shards.go
Normal file
23
cmd/neofs-cli/modules/control/shards.go
Normal file
|
@ -0,0 +1,23 @@
|
|||
package control
|
||||
|
||||
import (
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
var shardsCmd = &cobra.Command{
|
||||
Use: "shards",
|
||||
Short: "Operations with storage node's shards",
|
||||
Long: "Operations with storage node's shards",
|
||||
}
|
||||
|
||||
func initControlShardsCmd() {
|
||||
shardsCmd.AddCommand(listShardsCmd)
|
||||
shardsCmd.AddCommand(setShardModeCmd)
|
||||
shardsCmd.AddCommand(dumpShardCmd)
|
||||
shardsCmd.AddCommand(restoreShardCmd)
|
||||
|
||||
initControlShardsListCmd()
|
||||
initControlSetShardModeCmd()
|
||||
initControlDumpShardCmd()
|
||||
initControlRestoreShardCmd()
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue