Try printing modules in two columns

This commit is contained in:
2024-08-04 00:35:41 -04:00
parent 76546333bf
commit 26a4f3a800

View File

@@ -361,8 +361,8 @@ interactive_header() {
EOF
echo ""
echo "Using scans directory: $SCANS_DIR"
echo "Using output directory: $OUT_DIR"
echo "Scans directory: $SCANS_DIR"
echo "Output directory: $OUT_DIR"
echo "Change the SCANS_DIR or OUT_DIR environment variable(s) to override"
echo "Example: SCANS_DIR=/path/to/scans OUT_DIR=/path/to/out ./qhtcp-workflow $*"
echo ""
@@ -387,9 +387,10 @@ interactive_header() {
echo ""
echo "Available Modules:"
for i in "${!ALL_MODULES[@]}"; do
printf "%d. %s\n" "$((i+1))" "${ALL_MODULES[i]}"
done
# Print the array with item numbers in two columns
for ((i=0; i<${#ALL_MODULES[@]}; i++)); do
printf "%d\t%s\n" $((i+1)) "${ALL_MODULES[i]}"
done | column -t -s $'\t'
echo ""
echo "Available Submodules:"