(args []string, message, command string)
| 19 | } |
| 20 | |
| 21 | func checkArgAndExit(args []string, message, command string) { |
| 22 | if len(args) == 0 { |
| 23 | fmt.Fprintln(os.Stderr, message) |
| 24 | fmt.Fprintln(os.Stderr, "\nTry hoverctl "+command+" --help for more information") |
| 25 | os.Exit(1) |
| 26 | } |
| 27 | } |
| 28 | |
| 29 | func checkTargetAndExit(target *configuration.Target) { |
| 30 | if target == nil { |
no outgoing calls
no test coverage detected