mirror of
https://github.com/astro/deadnix.git
synced 2024-10-05 14:17:15 +03:00
README: remove dollar sign from commands
that way copying the command and pasting it in shell works. With the dollar sign it doesn't work
This commit is contained in:
parent
c58c368210
commit
cf799690a7
@ -12,7 +12,7 @@ See [deadnix-action](https://github.com/astro/deadnix-action)
|
|||||||
### Help
|
### Help
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ nix run github:astro/deadnix -- --help
|
nix run github:astro/deadnix -- --help
|
||||||
Find dead code in .nix files
|
Find dead code in .nix files
|
||||||
|
|
||||||
Usage: deadnix [OPTIONS] [FILE_PATHS]...
|
Usage: deadnix [OPTIONS] [FILE_PATHS]...
|
||||||
@ -43,7 +43,7 @@ The `--exclude` parameter accepts multiple paths. Separate them with
|
|||||||
### Scan for unused code
|
### Scan for unused code
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ nix run github:astro/deadnix example.nix
|
nix run github:astro/deadnix example.nix
|
||||||
Warning: Unused declarations were found.
|
Warning: Unused declarations were found.
|
||||||
╭─[example.nix:1:1]
|
╭─[example.nix:1:1]
|
||||||
1 │unusedArgs@{ unusedArg, usedArg, ... }:
|
1 │unusedArgs@{ unusedArg, usedArg, ... }:
|
||||||
@ -68,7 +68,7 @@ Warning: Unused declarations were found.
|
|||||||
**Do commit** your changes into version control **before!**
|
**Do commit** your changes into version control **before!**
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ nix run github:astro/deadnix -- -eq test.nix
|
nix run github:astro/deadnix -- -eq test.nix
|
||||||
```
|
```
|
||||||
|
|
||||||
## Usage with [pre-commit](https://pre-commit.com/)
|
## Usage with [pre-commit](https://pre-commit.com/)
|
||||||
|
Loading…
Reference in New Issue
Block a user