mirror of
https://github.com/joshuaclayton/unused.git
synced 2024-10-26 05:07:35 +03:00
Outline the recommended way of using Unused
This commit is contained in:
parent
731381a0f8
commit
7d2caa3f2d
@ -67,13 +67,7 @@ your `$PATH`.
|
||||
`unused` reads from a pipe expecting a series of tokens to search the codebase
|
||||
for.
|
||||
|
||||
This could be done with `echo`:
|
||||
|
||||
```sh
|
||||
echo "module\nimport" | unused
|
||||
```
|
||||
|
||||
Or pulling in a ctags file:
|
||||
The recommended way to do this is to clean up your tags file and pipe it in:
|
||||
|
||||
```sh
|
||||
cat .git/tags | cut -f1 | sort -u | unused
|
||||
|
Loading…
Reference in New Issue
Block a user