You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// registerFlagsRootCmd registers the flags for the root command
14
+
funcregisterFlagsRootCmd(cmd*cobra.Command) {
15
+
cmd.PersistentFlags().String("log_level", rollkitconfig.DefaultLogLevel, "set the log level; default is info. other options include debug, info, error, none")
16
+
cmd.PersistentFlags().String("log_format", "plain", "set the log format; options include plain and json")
17
+
cmd.PersistentFlags().Bool("trace", false, "print out full stack trace on errors")
18
+
}
19
+
20
+
// RootCmd is the root command for Rollkit
21
+
varRootCmd=&cobra.Command{
22
+
Use: "rollkit",
23
+
Short: "The first sovereign rollup framework that allows you to launch a sovereign, customizable blockchain as easily as a smart contract.",
24
+
Long: `
25
+
Rollkit is the first sovereign rollup framework that allows you to launch a sovereign, customizable blockchain as easily as a smart contract.
26
+
The rollkit-cli uses the environment variable "RKHOME" to point to a file path where the node keys, config, and data will be stored.
27
+
If a path is not specified for RKHOME, the rollkit command will create a folder "~/.rollkit" where it will store said data.
0 commit comments