Skip to content

Commit

Permalink
feat(#50,output): #comment added --format flag to ash
Browse files Browse the repository at this point in the history
  • Loading branch information
scrthq committed May 6, 2024
1 parent 0e4bebf commit 7a4f343
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ash
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export ASH_IMAGE_NAME=${ASH_IMAGE_NAME:-"automated-security-helper:local"}
SOURCE_DIR=""
OUTPUT_DIR=""
OUTPUT_DIR_SPECIFIED="NO"
OUTPUT_FORMAT="text"
DOCKER_EXTRA_ARGS=""
ASH_ARGS=""
NO_BUILD="NO"
Expand Down Expand Up @@ -46,6 +47,10 @@ while (("$#")); do
--debug)
DEBUG="YES"
;;
--format|-f)
shift
OUTPUT_FORMAT="$1"
;;
--help | -h)
source "${ASH_ROOT_DIR}/ash-multi" --help
exit 0
Expand All @@ -54,7 +59,7 @@ while (("$#")); do
source "${ASH_ROOT_DIR}/ash-multi" --version
exit 0
;;
--finch | -f)
--finch)
# Show colored deprecation warning from entrypoint script and exit 1
source "${ASH_ROOT_DIR}/ash-multi" --finch
exit 1
Expand Down

0 comments on commit 7a4f343

Please sign in to comment.