Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ExportCommand = &cobra.Command{
Use: "export",
Short: "Minter export command",
RunE: export,
}
)
View Source
var ManagerCommand = &cobra.Command{ Use: "manager", Short: "Minter manager execute command", DisableFlagParsing: true, RunE: func(cmd *cobra.Command, args []string) error { newArgs := setParentFlags(cmd, args) console, err := service.NewCLI(utils.GetMinterHome() + "/manager.sock") if err != nil { return nil } err = console.Execute(newArgs) if err != nil { _, _ = fmt.Fprintln(os.Stderr, err) os.Exit(1) } return nil }, }
View Source
var ManagerConsole = &cobra.Command{ Use: "console", Short: "Minter CLI manager", DisableFlagParsing: true, RunE: func(cmd *cobra.Command, args []string) error { _ = setParentFlags(cmd, args) console, err := service.NewCLI(utils.GetMinterHome() + "/manager.sock") if err != nil { return nil } err = console.Cli(cmd.Context()) if err != nil { _, _ = fmt.Fprintln(os.Stderr, err) os.Exit(1) } return nil }, }
View Source
var RootCmd = &cobra.Command{ Use: "minter", Short: "Minter Go Node", PersistentPreRun: func(cmd *cobra.Command, args []string) { v := viper.New() v.SetConfigFile(utils.GetMinterConfigPath()) cfg = config.GetConfig() if err := v.ReadInConfig(); err != nil { panic(err) } if err := v.Unmarshal(cfg); err != nil { panic(err) } if cfg.KeepLastStates < 1 { panic("keep_last_states field should be greater than 0") } isTestnet, _ := cmd.Flags().GetBool("testnet") if isTestnet { types.CurrentChainID = types.ChainTestnet version.Version += "-testnet" } }, }
View Source
var RunNode = &cobra.Command{ Use: "node", Short: "Run the Minter node", RunE: func(cmd *cobra.Command, _ []string) error { return runNode(cmd) }, }
RunNode is the command that allows the CLI to start a node.
View Source
var ShowNodeId = &cobra.Command{
Use: "show_node_id",
Short: "Show this node's ID",
RunE: showNodeId,
}
View Source
var ShowValidator = &cobra.Command{
Use: "show_validator",
Short: "Show this node's validator public key",
RunE: showValidator,
}
View Source
var VerifyGenesis = &cobra.Command{
Use: "verify_genesis",
Short: "Verify genesis file",
RunE: verifyGenesis,
}
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.