mirror of
https://github.com/joshuaclayton/unused.git
synced 2024-09-11 04:45:28 +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
|
`unused` reads from a pipe expecting a series of tokens to search the codebase
|
||||||
for.
|
for.
|
||||||
|
|
||||||
This could be done with `echo`:
|
The recommended way to do this is to clean up your tags file and pipe it in:
|
||||||
|
|
||||||
```sh
|
|
||||||
echo "module\nimport" | unused
|
|
||||||
```
|
|
||||||
|
|
||||||
Or pulling in a ctags file:
|
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
cat .git/tags | cut -f1 | sort -u | unused
|
cat .git/tags | cut -f1 | sort -u | unused
|
||||||
|
Loading…
Reference in New Issue
Block a user