feat: implement apps:list

Also deprecate the `apps` command in favor of `apps:list`
This commit is contained in:
Jose Diaz-Gonzalez
2017-02-20 17:18:29 -07:00
parent 05bf33805f
commit 9614f7dca2
4 changed files with 24 additions and 14 deletions

14
plugins/apps/internal-functions Executable file
View File

@@ -0,0 +1,14 @@
#!/usr/bin/env bash
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
apps_list_cmd() {
declare desc="lists all apps"
local cmd="apps"
local app
dokku_log_info2_quiet "My Apps"
for app in $(dokku_apps); do
echo "$app"
done
}