mirror of
https://github.com/simonmichael/hledger.git
synced 2024-11-07 21:15:19 +03:00
;tools: make justfiles compatible with just 1.28+
This commit is contained in:
parent
b4e96c8f0e
commit
098acb422b
2
Justfile
2
Justfile
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user