MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / commonFlagsInit

Function commonFlagsInit

cmd/cql/internal/cfg.go:71–82  ·  view source on GitHub ↗
(cmd *Command)

Source from the content-addressed store, hash-verified

69}
70
71func commonFlagsInit(cmd *Command) {
72 if help {
73 printCommandHelp(cmd)
74 Exit()
75 }
76
77 if lvl, err := logrus.ParseLevel(consoleLogLevel); err != nil {
78 ConsoleLog.SetLevel(log.InfoLevel)
79 } else {
80 ConsoleLog.SetLevel(lvl)
81 }
82}
83
84func addConfigFlag(cmd *Command) {
85 cmd.CommonFlag.StringVar(&configFile, "config", "~/.cql/config.yaml",

Callers 11

runConsoleFunction · 0.85
runWalletFunction · 0.85
runMirrorFunction · 0.85
runDropFunction · 0.85
runTransferFunction · 0.85
runRPCFunction · 0.85
runGenerateFunction · 0.85
runGrantFunction · 0.85
runExplorerFunction · 0.85
runCreateFunction · 0.85
runAdapterFunction · 0.85

Calls 2

printCommandHelpFunction · 0.85
ExitFunction · 0.85

Tested by

no test coverage detected