Update 'Better CLI tools'

Hamcha 2021-04-26 09:43:38 +00:00
parent 45368510a5
commit 40efa4435f

@ -7,11 +7,11 @@
| What | OG | Better | Lang | Multi | How to install | | What | OG | Better | Lang | Multi | How to install |
| ------------------------- | -------- | --------- | ---- | ------------- | ---------------------------------- | | ------------------------- | -------- | --------- | ---- | ------------- | ---------------------------------- |
| Find text in files | grep | [ripgrep] | Rust | ✔️ | `cargo install ripgrep` | | Find text in files | grep | [ripgrep] | Rust | ✔️ | `cargo install ripgrep` |
| List files in a directory | ls | [exa] | Rust | ❌<sup>1</sup> | `cargo install exa` | | List files in a directory | ls | [exa] | Rust | ❌<sup>1</sup>| `cargo install exa` |
| Read file content | cat | [bat] | Rust | ✔️ | Package manager (+ choco) | | Read file content | cat | [bat] | Rust | ✔️ | Package manager (+ choco) |
| Find files by name | find | [fzf] | Go | ✔️ | Package manager (+ choco) | | Find files by name | find | [fzf] | Go | ✔️ | Package manager (+ choco) |
| Count lines of code | cloc | [loc] | Rust | ✔️ | `cargo install loc` | | Count lines of code | cloc | [loc] | Rust | ✔️ | `cargo install loc` |
| Navigate/manipulate JSON | _N/A_ | [jq] | C | ✔️ | Package manager (+ choco) | | Navigate/manipulate JSON | *jq?* | [yq] | Go | ✔️ | `go get github.com/mikefarah/yq/v4`|
| Navigate/manipulate HTML | _N/A_ | [pup] | Go | ✔️ | `go get github.com/ericchiang/pup` | | Navigate/manipulate HTML | _N/A_ | [pup] | Go | ✔️ | `go get github.com/ericchiang/pup` |
| Static HTTP file server | _[many]_ | [ran] | Go | ✔️ | `go get -u github.com/m3ng9i/ran` | | Static HTTP file server | _[many]_ | [ran] | Go | ✔️ | `go get -u github.com/m3ng9i/ran` |
@ -24,5 +24,6 @@
[exa]: https://the.exa.website/ [exa]: https://the.exa.website/
[many]: https://gist.github.com/willurd/5720255 [many]: https://gist.github.com/willurd/5720255
[ran]: https://github.com/m3ng9i/ran [ran]: https://github.com/m3ng9i/ran
[yq]: https://github.com/mikefarah/yq
1. `exa` doesn't compile on Windows 1. `exa` doesn't compile on Windows