feat: add ability to list one-off dynos

This commit is contained in:
Jose Diaz-Gonzalez
2021-07-27 02:54:52 -04:00
parent 3d913d89f6
commit 5a1a30efeb
6 changed files with 58 additions and 2 deletions

View File

@@ -75,3 +75,13 @@ cmd-run-detached() {
export DOKKU_RM_CONTAINER=1
fn-run "$@"
}
cmd-run-list() {
declare desc="list all run containers for an app"
declare cmd="run:list"
[[ "$1" == "$cmd" ]] && shift 1
declare APP="$1"
local DOKKU_SCHEDULER=$(get_app_scheduler "$APP")
plugn trigger scheduler-run-list "$DOKKU_SCHEDULER" "$APP"
}