forked from TrueCloudLab/frostfs-node
Alex Vanin
20de74a505
Due to source code relocation from GitHub. Signed-off-by: Alex Vanin <a.vanin@yadro.com>
32 lines
619 B
Go
32 lines
619 B
Go
package netmap
|
|
|
|
import (
|
|
"git.frostfs.info/TrueCloudLab/frostfs-node/cmd/frostfs-cli/internal/commonflags"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var Cmd = &cobra.Command{
|
|
Use: "netmap",
|
|
Short: "Operations with Network Map",
|
|
Long: `Operations with Network Map`,
|
|
PersistentPreRun: func(cmd *cobra.Command, args []string) {
|
|
// bind exactly that cmd's flags to
|
|
// the viper before execution
|
|
commonflags.Bind(cmd)
|
|
commonflags.BindAPI(cmd)
|
|
},
|
|
}
|
|
|
|
func init() {
|
|
Cmd.AddCommand(
|
|
getEpochCmd,
|
|
nodeInfoCmd,
|
|
netInfoCmd,
|
|
snapshotCmd,
|
|
)
|
|
|
|
initGetEpochCmd()
|
|
initNetInfoCmd()
|
|
initNodeInfoCmd()
|
|
initSnapshotCmd()
|
|
}
|