Show More
@@ -1187,6 +1187,12 b' rcstack_cli_image_list_usage() {' | |||||
1187 | printf " pull images listed\n" |
|
1187 | printf " pull images listed\n" | |
1188 | echo |
|
1188 | echo | |
1189 |
|
1189 | |||
|
1190 | # :flag.usage | |||
|
1191 | printf " %s\n" "--env-file-path ENV_FILE_PATH" | |||
|
1192 | printf " Set custom env file\n" | |||
|
1193 | printf " Default: $PWD/.custom/.runtime.env\n" | |||
|
1194 | echo | |||
|
1195 | ||||
1190 | # :command.usage_fixed_flags |
|
1196 | # :command.usage_fixed_flags | |
1191 | printf " %s\n" "--help, -h" |
|
1197 | printf " %s\n" "--help, -h" | |
1192 | printf " Show this help\n" |
|
1198 | printf " Show this help\n" | |
@@ -4549,6 +4555,7 b' rcstack_cli_image_list_command() {' | |||||
4549 |
|
4555 | |||
4550 | DEBUG=${args[--debug]} |
|
4556 | DEBUG=${args[--debug]} | |
4551 | PULL=${args[--pull]} |
|
4557 | PULL=${args[--pull]} | |
|
4558 | ENV_FILE=${args[--env-file-path]} | |||
4552 |
|
4559 | |||
4553 | .env --file $RUNTIME_ENV |
|
4560 | .env --file $RUNTIME_ENV | |
4554 | .env get_or_error RC_VERSION |
|
4561 | .env get_or_error RC_VERSION | |
@@ -7441,6 +7448,26 b' rcstack_cli_image_list_parse_requirements() {' | |||||
7441 | shift |
|
7448 | shift | |
7442 | ;; |
|
7449 | ;; | |
7443 |
|
7450 | |||
|
7451 | # :flag.case | |||
|
7452 | --env-file-path) | |||
|
7453 | ||||
|
7454 | # :flag.case_arg | |||
|
7455 | if [[ -n ${2+x} ]]; then | |||
|
7456 | # :flag.validations | |||
|
7457 | if [[ -n $(validate_file_exists "$2") ]]; then | |||
|
7458 | printf "validation error in %s:\n%s\n" "--env-file-path ENV_FILE_PATH" "$(validate_file_exists "$2")" >&2 | |||
|
7459 | exit 1 | |||
|
7460 | fi | |||
|
7461 | ||||
|
7462 | args['--env-file-path']="$2" | |||
|
7463 | shift | |||
|
7464 | shift | |||
|
7465 | else | |||
|
7466 | printf "%s\n" "--env-file-path requires an argument: --env-file-path ENV_FILE_PATH" >&2 | |||
|
7467 | exit 1 | |||
|
7468 | fi | |||
|
7469 | ;; | |||
|
7470 | ||||
7444 | -?*) |
|
7471 | -?*) | |
7445 | printf "invalid option: %s\n" "$key" >&2 |
|
7472 | printf "invalid option: %s\n" "$key" >&2 | |
7446 | exit 1 |
|
7473 | exit 1 | |
@@ -7457,6 +7484,9 b' rcstack_cli_image_list_parse_requirements() {' | |||||
7457 | esac |
|
7484 | esac | |
7458 | done |
|
7485 | done | |
7459 |
|
7486 | |||
|
7487 | # :command.default_assignments | |||
|
7488 | [[ -n ${args['--env-file-path']:-} ]] || args['--env-file-path']="$PWD/.custom/.runtime.env" | |||
|
7489 | ||||
7460 | } |
|
7490 | } | |
7461 |
|
7491 | |||
7462 | # :command.parse_requirements |
|
7492 | # :command.parse_requirements |
General Comments 0
You need to be logged in to leave comments.
Login now