(cmd *Command)
| 128 | } |
| 129 | |
| 130 | func addBgServerFlag(cmd *Command) { |
| 131 | cmd.Flag.StringVar(&tmpPath, "tmp-path", "", |
| 132 | "Background service temp file path, use \"dirname $(mktemp -u)\" to check it out") |
| 133 | cmd.Flag.StringVar(&bgLogLevel, "bg-log-level", "info", |
| 134 | "Background service log level: trace debug info warning error fatal panic") |
| 135 | } |
| 136 | |
| 137 | func bgServerInit() { |
| 138 | if tmpPath == "" { |