;tools: make justfiles compatible with just 1.28+

This commit is contained in:
Simon Michael 2024-07-14 09:44:54 +01:00
parent b4e96c8f0e
commit 098acb422b
2 changed files with 2 additions and 2 deletions

View File

@ -61,7 +61,7 @@ WATCHEXEC := 'watchexec --timings'
# list this justfile's recipes, optionally filtered by REGEX
@help *REGEX:
if [[ '{{ REGEX }}' =~ '' ]]; then just -lu; else just -lu | rg -i '{{ REGEX }}'; true; fi
if [[ '{{ REGEX }}' =~ '' ]]; then just -ul; else just -ul | rg -i '{{ REGEX }}'; true; fi
alias h := help

View File

@ -9,7 +9,7 @@ TODAY := `date +%Y-%m-%d`
# list the commands available
@help:
{{ just }} -lu --list-heading=$'{{ file_name(justfile()) }} commands:\n\
{{ just }} -ul --list-heading=$'{{ file_name(justfile()) }} commands:\n\
ARGS can be added to customise reports.\n\
'
# XXX we don't quote ARGS properly, so each one must be free of spaces