generalized nim formatting

This commit is contained in:
Daylin Morgan 2024-10-16 18:47:53 -05:00
parent 982c6eca08
commit d7fd425a79
Signed by: daylin
GPG key ID: 950D13E9719334AD

View file

@ -42,7 +42,7 @@ proc formatNimCode(pattern = r"^[src|tests].*\.nim(s)?$") =
echo "Running $1 .." % [cmd] echo "Running $1 .." % [cmd]
exec(cmd) exec(cmd)
task fmt, "Run nimpretty on all git-managed .nim files in the current repo": task fmt, fmt"Run {formatter} on all git-managed .nim files in the current repo":
## Usage: nim fmt | nim fmt . ## Usage: nim fmt | nim fmt .
let dirs = forward_args("fmt") let dirs = forward_args("fmt")
if dirs.len == 0: if dirs.len == 0: