generalized nim formatting
This commit is contained in:
parent
982c6eca08
commit
d7fd425a79
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ proc formatNimCode(pattern = r"^[src|tests].*\.nim(s)?$") =
|
|||
echo "Running $1 .." % [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 .
|
||||
let dirs = forward_args("fmt")
|
||||
if dirs.len == 0:
|
||||
|
|
Loading…
Reference in a new issue