diff --git a/tldr/depotdownloader b/tldr/depotdownloader new file mode 100644 index 00000000..1cafa6f1 --- /dev/null +++ b/tldr/depotdownloader @@ -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: . + +- 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}}` diff --git a/tldr/git-blame b/tldr/git-blame index 8300658c..ff3622f4 100644 --- a/tldr/git-blame +++ b/tldr/git-blame @@ -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: . -- 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}}` diff --git a/tldr/ng-extract-i18n b/tldr/ng-extract-i18n new file mode 100644 index 00000000..97ec89ab --- /dev/null +++ b/tldr/ng-extract-i18n @@ -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: . + +- 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` diff --git a/tldr/pytest b/tldr/pytest index ccfc0ebb..e82821a1 100644 --- a/tldr/pytest +++ b/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]}}`