docs: clarify usage for multiple apps

This commit is contained in:
Jose Diaz-Gonzalez
2018-07-29 19:40:52 -04:00
parent 87ee233636
commit db29029653
2 changed files with 8 additions and 2 deletions

View File

@@ -2,7 +2,7 @@
```
logs <app> [-h] [-t] [-n num] [-q] [-p process] # Display recent log output
logs:failed <app> # Shows the last failed deploy logs for an app
logs:failed [<app>] # Shows the last failed deploy logs
```
## Usage
@@ -44,3 +44,9 @@ You can retrieve these logs by using the `logs:failed` command
```shell
dokku logs:failed node-js-app
```
You can also retrieve the failed logs for each app:
```shell
dokku logs:failed node-js-app
```

View File

@@ -5,7 +5,7 @@ source "$PLUGIN_AVAILABLE_PATH/config/functions"
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
cmd-logs-failed() {
declare desc="shows the last failed deploy logs for an app"
declare desc="shows the last failed deploy logs"
declare cmd="logs:failed" argv=("$@"); [[ ${argv[0]} == "$cmd" ]] && shift 1
declare APP="$1"
local DOKKU_SCHEDULER