##// END OF EJS Templates
feat(status): added -v flag to print some useful info on the stack status
super-admin -
Show More
@@ -599,6 +599,11 b' rcstack_stack_status_usage() {'
599 599 printf " Display a detailed info about configuration files\n"
600 600 echo
601 601
602 # :flag.usage
603 printf " %s\n" "-v"
604 printf " Verbose output for details on the stack\n"
605 echo
606
602 607 # :command.usage_fixed_flags
603 608 printf " %s\n" "--help, -h"
604 609 printf " Show this help\n"
@@ -3236,11 +3241,24 b' rcstack_stack_status_command() {'
3236 3241 DEBUG=${args[--debug]}
3237 3242 DETAILED=${args[--detailed]}
3238 3243 CONFIGS=${args[--configs]}
3244 VERBOSE=${args[-v]}
3239 3245
3240 3246 .env --file $RUNTIME_ENV
3241 3247 .env get RC_APP_BASE_URL
3242 3248 RC_APP_BASE_URL=$REPLY
3243 3249
3250 .env get RC_VERSION
3251 RC_VERSION=$REPLY
3252
3253 .env get RC_SSH_PORT
3254 RC_SSH_PORT=$REPLY
3255
3256 .env get RC_EDITION
3257 RC_EDITION=$REPLY
3258
3259 .env get RC_LICENSE_TOKEN
3260 RC_LICENSE_TOKEN=$REPLY
3261
3244 3262 if [[ $DEBUG ]]; then
3245 3263 echo "---"
3246 3264 ps_cmd=$(docker ps --filter=name=rc_cluster --format="{{.ID}}")
@@ -3258,6 +3276,12 b' rcstack_stack_status_command() {'
3258 3276 fi
3259 3277
3260 3278 echo "Running hostname: $RC_APP_BASE_URL"
3279 if [[ $VERBOSE ]]; then
3280 printf "Edition: $RC_EDITION:$RC_VERSION\n"
3281 printf "License: $RC_LICENSE_TOKEN\n"
3282 printf "SSH Port: $RC_SSH_PORT\n"
3283 printf "\n"
3284 fi
3261 3285
3262 3286 if [[ $CONFIGS ]]; then
3263 3287 printf "RhodeCode:\n"
@@ -3591,7 +3615,7 b' rcstack_cli_cmd_command() {'
3591 3615 vcsserver"
3592 3616
3593 3617 if [[ $DEBUG ]]; then
3594 echo $CMD_RHODECODE
3618 echo $CMD_RHODECODE
3595 3619 echo ${other_args[*]}
3596 3620 fi
3597 3621
@@ -5283,6 +5307,14 b' rcstack_stack_status_parse_requirements() {'
5283 5307 shift
5284 5308 ;;
5285 5309
5310 # :flag.case
5311 -v)
5312
5313 # :flag.case_no_arg
5314 args['-v']=1
5315 shift
5316 ;;
5317
5286 5318 -?*)
5287 5319 printf "invalid option: %s\n" "$key" >&2
5288 5320 exit 1
@@ -5971,6 +6003,9 b' rcstack_cli_cmd_parse_requirements() {'
5971 6003 esac
5972 6004 done
5973 6005
6006 # :command.default_assignments
6007 [[ -n ${args['--env-file-path']:-} ]] || args['--env-file-path']="$PWD/.custom/.runtime.env"
6008
5974 6009 }
5975 6010
5976 6011 # :command.parse_requirements
General Comments 0
You need to be logged in to leave comments. Login now