mirror of
https://github.com/NixOS/nix
synced 2025-06-24 22:11:15 +02:00
doc/rl-next: nix-formatter
This commit is contained in:
parent
c3684efa95
commit
44ca04b944
1 changed files with 16 additions and 0 deletions
16
doc/manual/rl-next/nix-formatter.md
Normal file
16
doc/manual/rl-next/nix-formatter.md
Normal file
|
@ -0,0 +1,16 @@
|
|||
---
|
||||
synopsis: "Add `nix formatter build` and `nix formatter run` commands"
|
||||
issues:
|
||||
prs: [13063]
|
||||
---
|
||||
|
||||
`nix formatter run` is an alias for `nix fmt`. Nothing new there.
|
||||
|
||||
`nix formatter build` is sort of like `nix build`: it builds, links, and prints a path to the formatter program:
|
||||
|
||||
```
|
||||
$ nix formatter build
|
||||
/nix/store/cb9w44vkhk2x4adfxwgdkkf5gjmm856j-treefmt/bin/treefmt
|
||||
```
|
||||
|
||||
Note that unlike `nix build`, this prints the full path to the program, not just the store path (in the example above that would be `/nix/store/cb9w44vkhk2x4adfxwgdkkf5gjmm856j-treefmt`).
|
Loading…
Add table
Add a link
Reference in a new issue