mirror of
https://github.com/nushell/nushell
synced 2024-12-27 13:33:16 +00:00
4da7bbbb59
# Description
As another life improvement (and to avoid those `run cargo fmt` commits
😉), this PR adds a command to the toolkit for formatting and running
`clippy` when committing and pushing.
Thanks to @amtoine for the idea!
---------
Co-authored-by: Darren Schroeder <343840+fdncred@users.noreply.github.com>
6 lines
No EOL
90 B
Text
Executable file
6 lines
No EOL
90 B
Text
Executable file
#!/usr/bin/env nu
|
|
|
|
use ../toolkit.nu [fmt, clippy]
|
|
|
|
fmt --check --verbose
|
|
clippy --verbose |