fix: add missing help output

This commit is contained in:
Jose Diaz-Gonzalez
2020-11-21 23:51:18 -05:00
parent 9a02f3f1dc
commit 9882c94eec

View File

@@ -55,6 +55,16 @@ func main() {
}
case "logs:help":
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:
dokkuNotImplementExitCode, err := strconv.Atoi(os.Getenv("DOKKU_NOT_IMPLEMENTED_EXIT"))
if err != nil {