Update cheatsheets

This commit is contained in:
ivuorinen
2025-04-28 00:20:19 +00:00
parent 5bf37ece1a
commit 2c0f4bfdb2
88 changed files with 330 additions and 253 deletions

View File

@@ -10,12 +10,12 @@ source: https://github.com/tldr-pages/tldr.git
- Display a diff of the changes that would be made, without making them (dry-run):
`yapf --diff {{path/to/file}}`
`yapf {{[-d|--diff]}} {{path/to/file}}`
- Format the file in-place and display a diff of the changes:
`yapf --diff --in-place {{path/to/file}}`
`yapf {{[-d|--diff]}} {{[-i|--in-place]}} {{path/to/file}}`
- Recursively format all Python files in a directory, concurrently:
`yapf --recursive --in-place --style {{pep8}} --parallel {{path/to/directory}}`
`yapf {{[-r|--recursive]}} {{[-i|--in-place]}} --style {{pep8}} {{[-p|--parallel]}} {{path/to/directory}}`