mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-04 22:44:00 +00:00
Update cheatsheets
This commit is contained in:
41
tldr/depotdownloader
Normal file
41
tldr/depotdownloader
Normal file
@@ -0,0 +1,41 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# depotdownloader
|
||||
|
||||
> Content/depot downloader for Steam.
|
||||
> More information: <https://github.com/SteamRE/DepotDownloader>.
|
||||
|
||||
- Download an app:
|
||||
|
||||
`depotdownloader -app {{108600}}`
|
||||
|
||||
- Download a specific depot into a custom output directory:
|
||||
|
||||
`depotdownloader -app {{108600}} -depot {{108603}} -dir {{path/to/directory}}`
|
||||
|
||||
- Download using a Steam account:
|
||||
|
||||
`depotdownloader -app {{108600}} -depot {{108603}} -username "{{gabecube}}"`
|
||||
|
||||
- Download a depot and remember the password for future downloads:
|
||||
|
||||
`depotdownloader -app {{108600}} -depot {{108603}} -username "{{gabecube}}" -remember-password`
|
||||
|
||||
- Download a specific depot manifest:
|
||||
|
||||
`depotdownloader -app {{346110}} -depot {{346111}} -manifest {{6154025194991279746}}`
|
||||
|
||||
- Download from a specific branch:
|
||||
|
||||
`depotdownloader -app {{108600}} -depot {{108603}} -branch "{{unstable}}"`
|
||||
|
||||
- Download only the internal manifest excluding content:
|
||||
|
||||
`depotdownloader -app {{108600}} -depot {{108603}} -manifest-only`
|
||||
|
||||
- Download workshop content using the pubfile/workshop id:
|
||||
|
||||
`depotdownloader -app {{108600}} -pubfile {{2503622437}}`
|
||||
@@ -5,33 +5,37 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# git blame
|
||||
|
||||
> Show commit hash and last author on each line of a file.
|
||||
> Show what commit and author last modified each line of a file.
|
||||
> More information: <https://git-scm.com/docs/git-blame>.
|
||||
|
||||
- Print file with author name and commit hash on each line:
|
||||
- Print a file with authorship info (author name and commit hash):
|
||||
|
||||
`git blame {{path/to/file}}`
|
||||
|
||||
- Print file with author email and commit hash on each line:
|
||||
- Print the author's email instead of their name:
|
||||
|
||||
`git blame {{[-e|--show-email]}} {{path/to/file}}`
|
||||
|
||||
- Print file with author name and commit hash on each line at a specific commit:
|
||||
- Print a file with authorship info as of a specific commit:
|
||||
|
||||
`git blame {{commit}} {{path/to/file}}`
|
||||
|
||||
- Print file with author name and commit hash on each line before a specific commit:
|
||||
- Print a file with authorship info before a specific commit:
|
||||
|
||||
`git blame {{commit}}~ {{path/to/file}}`
|
||||
|
||||
- Jump to the parent of a specific commit and track a specific text and 10 of its following lines:
|
||||
- Print a file with authorship info starting at a given line:
|
||||
|
||||
`git blame -L '/{{text}}/',+10 {{a82812aa}}^ {{path/to/file}}`
|
||||
`git blame -L {{123}} {{path/to/file}}`
|
||||
|
||||
- Print author name and commit hash information for a specific line range:
|
||||
- Annotate a specific line range of a file:
|
||||
|
||||
`git blame -L {{start_line}},{{end_line}} {{path/to/file}}`
|
||||
|
||||
- Ignore whitespaces and line moves:
|
||||
- Annotate 10 lines of a file starting at the first line matching a given text:
|
||||
|
||||
`git blame -L '/{{text}}/',+10 {{path/to/file}}`
|
||||
|
||||
- Annotate a file ignoring whitespaces and line moves:
|
||||
|
||||
`git blame -w -C -C -C {{path/to/file}}`
|
||||
|
||||
33
tldr/ng-extract-i18n
Normal file
33
tldr/ng-extract-i18n
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# ng extract-i18n
|
||||
|
||||
> Extract i18n messages from source code.
|
||||
> More information: <https://angular.dev/cli/extract-i18n>.
|
||||
|
||||
- Extract i18n messages:
|
||||
|
||||
`ng extract-i18n`
|
||||
|
||||
- Extract i18n messages in a specific format:
|
||||
|
||||
`ng extract-i18n --format {{arb|json|xlf|...}}`
|
||||
|
||||
- Extract i18n messages to a specific output file:
|
||||
|
||||
`ng extract-i18n --out-file {{path/to/file}}`
|
||||
|
||||
- Extract i18n messages to a specific directory:
|
||||
|
||||
`ng extract-i18n --output-path {{path/to/directory}}`
|
||||
|
||||
- Control how duplicate translations are handled:
|
||||
|
||||
`ng extract-i18n --i18n-duplicate-translation {{error|ignore|warning}}`
|
||||
|
||||
- Log progress to the console:
|
||||
|
||||
`ng extract-i18n --progress`
|
||||
10
tldr/pytest
10
tldr/pytest
@@ -18,7 +18,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Exit as soon as a test fails or encounters an error:
|
||||
|
||||
`pytest --exitfirst`
|
||||
`pytest {{[-x|--exitfirst]}}`
|
||||
|
||||
- Run tests matching or excluding markers:
|
||||
|
||||
@@ -26,12 +26,12 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Run until a test failure, continuing from the last failing test:
|
||||
|
||||
`pytest --stepwise`
|
||||
`pytest {{[--sw|--stepwise]}}`
|
||||
|
||||
- Run tests without capturing output:
|
||||
|
||||
`pytest --capture=no`
|
||||
`pytest {{[-s|--capture=no]}}`
|
||||
|
||||
- Run tests with increased [v]erbosity, displaying individual test names:
|
||||
- Run tests with increased verbosity, displaying individual test names:
|
||||
|
||||
`pytest -v`
|
||||
`pytest {{[-v|--verbose]}}`
|
||||
|
||||
Reference in New Issue
Block a user