(cmd *Command)
| 69 | } |
| 70 | |
| 71 | func 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 | |
| 84 | func addConfigFlag(cmd *Command) { |
| 85 | cmd.CommonFlag.StringVar(&configFile, "config", "~/.cql/config.yaml", |
no test coverage detected