Skip to content

Commit

Permalink
infra: make --list for validation.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
romani committed May 7, 2024
1 parent 9dad799 commit ced6e0f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .ci/validation.sh
Expand Up @@ -18,6 +18,10 @@ addCheckstyleBundleToAntResolvers() {
ivysettings.xml
}

function list_tasks() {
cat "${0}" | sed -E -n 's/^([a-zA-Z0-9\-]*)\)$/\1/p' | sort
}

case $1 in

all-sevntu-checks)
Expand Down Expand Up @@ -1216,7 +1220,8 @@ check-wildcards-on-pitest-target-classes)

*)
echo "Unexpected argument: $1"
sleep 5s
echo "Supported tasks:"
list_tasks "${0}"
false
;;

Expand Down

0 comments on commit ced6e0f

Please sign in to comment.