feat: implement link querystring flags. Refs dokku/dokku-redis#64

This commit is contained in:
Jose Diaz-Gonzalez
2018-04-24 01:40:27 -04:00
parent a66c040cbc
commit 527b3bc54b
4 changed files with 13 additions and 3 deletions

View File

@@ -41,13 +41,15 @@ service-link-cmd() {
#A app, app to run command against
declare desc="link the $PLUGIN_SERVICE service to the app"
local cmd="$PLUGIN_COMMAND_PREFIX:link" argv=("$@"); [[ ${argv[0]} == "$cmd" ]] && shift 1
declare SERVICE="$1" APP="$2"
declare SERVICE="$1" APP="$2" LINK_FLAGS_LIST="${@:3}"
APP=${APP:="$DOKKU_APP_NAME"}
[[ -z "$SERVICE" ]] && dokku_log_fail "Please specify a name for the service"
[[ -z "$APP" ]] && dokku_log_fail "Please specify an app to run the command on"
verify_app_name "$APP"
verify_service_name "$SERVICE"
service_parse_args "${@:3}"
service_link "$SERVICE" "$APP"
}