feat: broken support for lambda-builder

It's currently broken because there are flags in there that aren't actually implemented
This commit is contained in:
Jose Diaz-Gonzalez
2022-04-17 02:08:48 -04:00
parent 02d6813209
commit 92790b70e8
6 changed files with 63 additions and 27 deletions

View File

@@ -9,13 +9,13 @@ cmd-builder-lambda-set() {
declare cmd="builder-lambda:set"
[[ "$1" == "$cmd" ]] && shift 1
declare APP="$1" KEY="$2" VALUE="$3"
local VALID_KEYS=("language")
local VALID_KEYS=("lambdayml-path")
[[ "$APP" == "--global" ]] || verify_app_name "$APP"
[[ -z "$KEY" ]] && dokku_log_fail "No key specified"
if ! fn-in-array "$KEY" "${VALID_KEYS[@]}"; then
dokku_log_fail "Invalid key specified, valid keys include: language"
dokku_log_fail "Invalid key specified, valid keys include: lambdayml-path"
fi
if [[ -n "$VALUE" ]]; then