mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-02 20:54:57 +00:00
Update cheatsheets
This commit is contained in:
@@ -24,6 +24,10 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
|
|
||||||
`cargo clippy --package {{package}}`
|
`cargo clippy --package {{package}}`
|
||||||
|
|
||||||
|
- Run checks for a lint group (see <https://rust-lang.github.io/rust-clippy/stable/index.html#?groups=cargo,complexity,correctness,deprecated,nursery,pedantic,perf,restriction,style,suspicious>):
|
||||||
|
|
||||||
|
`cargo clippy -- --warn clippy::{{lint_group}}`
|
||||||
|
|
||||||
- Treat warnings as errors:
|
- Treat warnings as errors:
|
||||||
|
|
||||||
`cargo clippy -- --deny warnings`
|
`cargo clippy -- --deny warnings`
|
||||||
|
|||||||
@@ -32,3 +32,7 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
- [l]ist all pages for the current platform and `common`:
|
- [l]ist all pages for the current platform and `common`:
|
||||||
|
|
||||||
`tldr --list`
|
`tldr --list`
|
||||||
|
|
||||||
|
- [l]ist all available subcommand pages for a command:
|
||||||
|
|
||||||
|
`tldr --list | grep {{command}} | column`
|
||||||
|
|||||||
Reference in New Issue
Block a user