From 7a4f343ca0d0002dcf4591a69c69a0d3a3ea03a4 Mon Sep 17 00:00:00 2001 From: Nate Ferrell Date: Mon, 6 May 2024 14:33:18 -0500 Subject: [PATCH] feat(#50,output): #comment added --format flag to ash --- ash | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ash b/ash index a47a4b0..7154bd3 100755 --- a/ash +++ b/ash @@ -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" @@ -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 @@ -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