fix: add missing help output

This commit is contained in:
Jose Diaz-Gonzalez committed 2020-11-22 15:01:36 -05:00
1 parent 9a02f3f1dc
commit 9882c94eec
1 file changed
+10
+10
View File
@@ -55,6 +55,16 @@ func main() {
} }
case "logs:help": case "logs:help":
usage() usage()
case "help":
command := common.NewShellCmd(fmt.Sprintf("ps -o command= %d", os.Getppid()))
command.ShowOutput = false
output, err := command.Output()
if err == nil && strings.Contains(string(output), "--all") {
fmt.Println(helpContent)
} else {
fmt.Print("\n logs, Manage log integration for an app\n")
}
default: default:
dokkuNotImplementExitCode, err := strconv.Atoi(os.Getenv("DOKKU_NOT_IMPLEMENTED_EXIT")) dokkuNotImplementExitCode, err := strconv.Atoi(os.Getenv("DOKKU_NOT_IMPLEMENTED_EXIT"))
if err != nil { if err != nil {