cosmos-sdk/client/snapshot/cmd.go
2023-06-22 15:35:51 +00:00

25 lines
486 B
Go

package snapshot
import (
"github.com/spf13/cobra"
servertypes "github.com/cosmos/cosmos-sdk/server/types"
)
// Cmd returns the snapshots group command
func Cmd(appCreator servertypes.AppCreator) *cobra.Command {
cmd := &cobra.Command{
Use: "snapshots",
Short: "Manage local snapshots",
}
cmd.AddCommand(
ListSnapshotsCmd,
RestoreSnapshotCmd(appCreator),
ExportSnapshotCmd(appCreator),
DumpArchiveCmd(),
LoadArchiveCmd(),
DeleteSnapshotCmd(),
)
return cmd
}