1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-01 20:55:24 +02:00

common/*: add option placeholders part 2 (#16217)

This commit is contained in:
Managor 2025-04-22 15:48:30 +03:00 committed by GitHub
parent 3c34943422
commit 33a0189799
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
190 changed files with 563 additions and 547 deletions

View file

@ -29,4 +29,4 @@
- Display help: - Display help:
`a2ping -h` `a2ping {{[-h|--help]}}`

View file

@ -6,28 +6,28 @@
- Issue a certificate using webroot mode: - Issue a certificate using webroot mode:
`acme.sh --issue --domain {{example.com}} --webroot {{/path/to/webroot}}` `acme.sh --issue {{[-d|--domain]}} {{example.com}} {{[-w|--webroot]}} {{/path/to/webroot}}`
- Issue a certificate for multiple domains using standalone mode using port 80: - Issue a certificate for multiple domains using standalone mode using port 80:
`acme.sh --issue --standalone --domain {{example.com}} --domain {{www.example.com}}` `acme.sh --issue --standalone {{[-d|--domain]}} {{example.com}} {{[-d|--domain]}} {{www.example.com}}`
- Issue a certificate using standalone TLS mode using port 443: - Issue a certificate using standalone TLS mode using port 443:
`acme.sh --issue --alpn --domain {{example.com}}` `acme.sh --issue --alpn {{[-d|--domain]}} {{example.com}}`
- Issue a certificate using a working Nginx configuration: - Issue a certificate using a working Nginx configuration:
`acme.sh --issue --nginx --domain {{example.com}}` `acme.sh --issue --nginx {{[-d|--domain]}} {{example.com}}`
- Issue a certificate using a working Apache configuration: - Issue a certificate using a working Apache configuration:
`acme.sh --issue --apache --domain {{example.com}}` `acme.sh --issue --apache {{[-d|--domain]}} {{example.com}}`
- Issue a wildcard (\*) certificate using an automatic DNS API mode: - Issue a wildcard (\*) certificate using an automatic DNS API mode:
`acme.sh --issue --dns {{dns_cf}} --domain {{*.example.com}}` `acme.sh --issue --dns {{dns_cf}} {{[-d|--domain]}} {{*.example.com}}`
- Install certificate files into the specified locations (useful for automatic certificate renewal): - Install certificate files into the specified locations (useful for automatic certificate renewal):
`acme.sh --install-cert -d {{example.com}} --key-file {{/path/to/example.com.key}} --fullchain-file {{/path/to/example.com.cer}} --reloadcmd "{{systemctl force-reload nginx}}"` `acme.sh {{[-i|--install-cert]}} {{[-d|--domain]}} {{example.com}} --key-file {{/path/to/example.com.key}} --fullchain-file {{/path/to/example.com.cer}} --reloadcmd "{{systemctl force-reload nginx}}"`

View file

@ -13,4 +13,4 @@
- Display help: - Display help:
`agate -h` `agate {{[-h|--help]}}`

View file

@ -6,11 +6,11 @@
- List available action plugins (modules): - List available action plugins (modules):
`ansible-doc --list` `ansible-doc {{[-l|--list]}}`
- List available plugins of a specific type: - List available plugins of a specific type:
`ansible-doc --type {{become|cache|callback|cliconf|connection|...}} --list` `ansible-doc {{[-t|--type]}} {{become|cache|callback|cliconf|connection|...}} {{[-l|--list]}}`
- Show information about a specific action plugin (module): - Show information about a specific action plugin (module):
@ -18,12 +18,12 @@
- Show information about a plugin with a specific type: - Show information about a plugin with a specific type:
`ansible-doc --type {{become|cache|callback|cliconf|connection|...}} {{plugin_name}}` `ansible-doc {{[-t|--type]}} {{become|cache|callback|cliconf|connection|...}} {{plugin_name}}`
- Show the playbook snippet for action plugin (modules): - Show the playbook snippet for action plugin (modules):
`ansible-doc --snippet {{plugin_name}}` `ansible-doc {{[-s|--snippet]}} {{plugin_name}}`
- Show information about an action plugin (module) as JSON: - Show information about an action plugin (module) as JSON:
`ansible-doc --json {{plugin_name}}` `ansible-doc {{[-j|--json]}} {{plugin_name}}`

View file

@ -10,11 +10,11 @@
- Display a custom inventory: - Display a custom inventory:
`ansible-inventory --list --inventory {{path/to/file_or_script_or_directory}}` `ansible-inventory --list {{[-i|--inventory-file]}} {{path/to/file_or_script_or_directory}}`
- Display the default inventory in YAML: - Display the default inventory in YAML:
`ansible-inventory --list --yaml` `ansible-inventory --list {{[-y|--yaml]}}`
- Dump the default inventory to a file: - Dump the default inventory to a file:

View file

@ -5,16 +5,16 @@
- Pull a playbook from a VCS and execute a default local.yml playbook: - Pull a playbook from a VCS and execute a default local.yml playbook:
`ansible-pull -U {{repository_url}}` `ansible-pull {{[-U|--url]}} {{repository_url}}`
- Pull a playbook from a VCS and execute a specific playbook: - Pull a playbook from a VCS and execute a specific playbook:
`ansible-pull -U {{repository_url}} {{playbook}}` `ansible-pull {{[-U|--url]}} {{repository_url}} {{playbook}}`
- Pull a playbook from a VCS at a specific branch and execute a specific playbook: - Pull a playbook from a VCS at a specific branch and execute a specific playbook:
`ansible-pull -U {{repository_url}} -C {{branch}} {{playbook}}` `ansible-pull {{[-U|--url]}} {{repository_url}} {{[-C|--checkout]}} {{branch}} {{playbook}}`
- Pull a playbook from a VCS, specify hosts file and execute a specific playbook: - Pull a playbook from a VCS, specify hosts file and execute a specific playbook:
`ansible-pull -U {{repository_url}} -i {{hosts_file}} {{playbook}}` `ansible-pull {{[-U|--url]}} {{repository_url}} {{[-i|--inventory-file]}} {{hosts_file}} {{playbook}}`

View file

@ -9,12 +9,12 @@
- Convert a specific `.adoc` file to HTML and link a CSS stylesheet: - Convert a specific `.adoc` file to HTML and link a CSS stylesheet:
`asciidoctor -a stylesheet {{path/to/stylesheet.css}} {{path/to/file.adoc}}` `asciidoctor {{[-a|--attribute]}} stylesheet {{path/to/stylesheet.css}} {{path/to/file.adoc}}`
- Convert a specific `.adoc` file to embeddable HTML, removing everything except the body: - Convert a specific `.adoc` file to embeddable HTML, removing everything except the body:
`asciidoctor --embedded {{path/to/file.adoc}}` `asciidoctor {{[-e|--embedded]}} {{path/to/file.adoc}}`
- Convert a specific `.adoc` file to a PDF using the `asciidoctor-pdf` library: - Convert a specific `.adoc` file to a PDF using the `asciidoctor-pdf` library:
`asciidoctor --backend {{pdf}} --require {{asciidoctor-pdf}} {{path/to/file.adoc}}` `asciidoctor {{[-b|--backend]}} {{pdf}} {{[-r|--require ]}}{{asciidoctor-pdf}} {{path/to/file.adoc}}`

View file

@ -5,20 +5,20 @@
- Generate a bonsai in live mode: - Generate a bonsai in live mode:
`cbonsai -l` `cbonsai {{[-l|--live]}}`
- Generate a bonsai in infinite mode: - Generate a bonsai in infinite mode:
`cbonsai -i` `cbonsai {{[-i|--infinite]}}`
- Append a message to the bonsai: - Append a message to the bonsai:
`cbonsai -m "{{message}}"` `cbonsai {{[-m|--message]}} "{{message}}"`
- Display extra information about the bonsai: - Display extra information about the bonsai:
`cbonsai -v` `cbonsai {{[-v|--verbose]}}`
- Display help: - Display help:
`cbonsai -h` `cbonsai {{[-h|--help]}}`

View file

@ -9,7 +9,7 @@
- Backup Charm account keys to a specific location: - Backup Charm account keys to a specific location:
`charm backup-keys -o {{path/to/output_file.tar}}` `charm backup-keys {{[-o|--output]}} {{path/to/output_file.tar}}`
- Import previously backed up Charm account keys: - Import previously backed up Charm account keys:

View file

@ -9,16 +9,16 @@
- Edit the cheat sheet for a command: - Edit the cheat sheet for a command:
`cheat -e {{command}}` `cheat {{[-e|--edit]}} {{command}}`
- List the available cheat sheets: - List the available cheat sheets:
`cheat -l` `cheat {{[-l|--list]}}`
- Search available the cheat sheets for a specified command name: - Search available the cheat sheets for a specified command name:
`cheat -s {{command}}` `cheat {{[-s|--search]}} {{command}}`
- Display version: - Display version:
`cheat -v` `cheat {{[-v|--version]}}`

View file

@ -19,6 +19,6 @@
`circup freeze` `circup freeze`
- Save all libraries on a connected device in the current directory: - Save all libraries on a connected device in `requirements.txt` in current directory:
`circup freeze -r` `circup freeze {{[-r|--requirement]}}`

View file

@ -9,7 +9,7 @@
- Scan all files recursively in a specific directory: - Scan all files recursively in a specific directory:
`clamscan -r {{path/to/directory}}` `clamscan {{[-r|--recursive]}} {{path/to/directory}}`
- Scan data from `stdin`: - Scan data from `stdin`:
@ -17,15 +17,15 @@
- Specify a virus database file or directory of files: - Specify a virus database file or directory of files:
`clamscan --database {{path/to/database_file_or_directory}}` `clamscan {{[-d|--database]}} {{path/to/database_file_or_directory}}`
- Scan the current directory and output only infected files: - Scan the current directory and output only infected files:
`clamscan --infected` `clamscan {{[-i|--infected]}}`
- Print the scan report to a log file: - Print the scan report to a log file:
`clamscan --log {{path/to/log_file}}` `clamscan {{[-l|--log]}} {{path/to/log_file}}`
- Move infected files to a specific directory: - Move infected files to a specific directory:

View file

@ -14,7 +14,7 @@
- Run the main function of a specified namespace: - Run the main function of a specified namespace:
`clj -M -m {{namespace}} {{args}}` `clj -M {{[-m|--main]}} {{namespace}} {{args}}`
- Prepare a project by resolving dependencies, downloading libraries, and making/caching classpaths: - Prepare a project by resolving dependencies, downloading libraries, and making/caching classpaths:
@ -22,8 +22,8 @@
- Start an nREPL server with the CIDER middleware: - Start an nREPL server with the CIDER middleware:
`clj -Sdeps '{:deps {nrepl {:mvn/version "0.7.0"} cider/cider-nrepl {:mvn/version "0.25.2"}}}' -m nrepl.cmdline --middleware '["cider.nrepl/cider-middleware"]' --interactive` `clj -Sdeps '{:deps {nrepl {:mvn/version "0.7.0"} cider/cider-nrepl {:mvn/version "0.25.2"}}}' {{[-m|--main]}} nrepl.cmdline --middleware '["cider.nrepl/cider-middleware"]' --interactive`
- Start a REPL for ClojureScript and open a web browser: - Start a REPL for ClojureScript and open a web browser:
`clj -Sdeps '{:deps {org.clojure/clojurescript {:mvn/version "1.10.758"}}}' --main cljs.main --repl` `clj -Sdeps '{:deps {org.clojure/clojurescript {:mvn/version "1.10.758"}}}' {{[-m|--main]}} cljs.main {{[-r|--repl]}}`

View file

@ -5,12 +5,12 @@
- Create a new environment named `py39`, and install Python 3.9 and NumPy v1.11 or above in it: - Create a new environment named `py39`, and install Python 3.9 and NumPy v1.11 or above in it:
`conda create --yes --name {{py39}} python={{3.9}} "{{numpy>=1.11}}"` `conda create {{[-y|--yes]}} {{[-n|--name]}} {{py39}} python={{3.9}} "{{numpy>=1.11}}"`
- Make exact copy of an environment: - Make exact copy of an environment:
`conda create --clone {{py39}} --name {{py39-copy}}` `conda create --clone {{py39}} {{[-n|--name]}} {{py39-copy}}`
- Create a new environment with a specified name and install a given package: - Create a new environment with a specified name and install a given package:
`conda create --name {{env_name}} {{package}}` `conda create {{[-n|--name]}} {{env_name}} {{package}}`

View file

@ -9,11 +9,11 @@
- Install a single package into the currently active conda environment using channel conda-forge: - Install a single package into the currently active conda environment using channel conda-forge:
`conda install -c conda-forge {{package}}` `conda install {{[-c|--channel]}} conda-forge {{package}}`
- Install a single package into the currently active conda environment using channel conda-forge and ignoring other channels: - Install a single package into the currently active conda environment using channel conda-forge and ignoring other channels:
`conda install -c conda-forge --override-channels {{package}}` `conda install {{[-c|--channel]}} conda-forge --override-channels {{package}}`
- Install a specific version of a package: - Install a specific version of a package:
@ -21,7 +21,7 @@
- Install a package into a specific environment: - Install a package into a specific environment:
`conda install --name {{environment}} {{package}}` `conda install {{[-n|--name]}} {{environment}} {{package}}`
- Update a package in the current environment: - Update a package in the current environment:
@ -29,4 +29,4 @@
- Install a package and agree to the transactions without prompting: - Install a package and agree to the transactions without prompting:
`conda install --yes {{package}}` `conda install {{[-y|--yes]}} {{package}}`

View file

@ -2,15 +2,15 @@
> Package, dependency and environment management for any programming language. > Package, dependency and environment management for any programming language.
> Some subcommands such as `create` have their own usage documentation. > Some subcommands such as `create` have their own usage documentation.
> More information: <https://github.com/conda/conda>. > More information: <https://docs.conda.io/projects/conda/en/latest/commands/index.html>.
- Create a new environment, installing named packages into it: - Create a new environment, installing named packages into it:
`conda create --name {{environment_name}} {{python=3.9 matplotlib}}` `conda create {{[-n|--name]}} {{environment_name}} {{python=3.9 matplotlib}}`
- List all environments: - List all environments:
`conda info --envs` `conda info {{[-e|--envs]}}`
- Load an environment: - Load an environment:
@ -22,7 +22,7 @@
- Delete an environment (remove all packages): - Delete an environment (remove all packages):
`conda remove --name {{environment_name}} --all` `conda remove {{[-n|--name]}} {{environment_name}} --all`
- Install packages into the current environment: - Install packages into the current environment:
@ -34,4 +34,4 @@
- Delete unused packages and caches: - Delete unused packages and caches:
`conda clean --all` `conda clean {{[-a|--all]}}`

View file

@ -17,16 +17,16 @@
- List all validation rules: - List all validation rules:
`core-validate-commit --list` `core-validate-commit {{[-l|--list]}}`
- List all valid Node.js subsystems: - List all valid Node.js subsystems:
`core-validate-commit --list-subsystem` `core-validate-commit {{[-ls|--list-subsystem]}}`
- Validate the current commit formatting the output in tap format: - Validate the current commit formatting the output in tap format:
`core-validate-commit --tap` `core-validate-commit {{[-t|--tap]}}`
- Display help: - Display help:
`core-validate-commit --help` `core-validate-commit {{[-h|--help]}}`

View file

@ -1,7 +1,7 @@
# cowsay # cowsay
> Print ASCII art (by default a cow) saying or thinking something. > Print ASCII art (by default a cow) saying or thinking something.
> More information: <https://github.com/tnalpgge/rank-amateur-cowsay>. > More information: <https://manned.org/cowsay>.
- Print an ASCII cow saying "hello, world": - Print an ASCII cow saying "hello, world":

View file

@ -1,7 +1,7 @@
# crunch # crunch
> Wordlist generator. > Wordlist generator.
> More information: <https://sourceforge.net/projects/crunch-wordlist/>. > More information: <https://manned.org/crunch>.
- Output a list of words of length 1 to 3 with only lowercase characters: - Output a list of words of length 1 to 3 with only lowercase characters:

View file

@ -6,16 +6,16 @@
- Print indices and names of all columns: - Print indices and names of all columns:
`csvcut -n {{data.csv}}` `csvcut {{[-n|--names]}} {{data.csv}}`
- Extract the first and third columns: - Extract the first and third columns:
`csvcut -c {{1,3}} {{data.csv}}` `csvcut {{[-c|--columns]}} {{1,3}} {{data.csv}}`
- Extract all columns except the fourth one: - Extract all columns except the fourth one:
`csvcut -C {{4}} {{data.csv}}` `csvcut {{[-C|--not-columns]}} {{4}} {{data.csv}}`
- Extract the columns named "id" and "first name" (in that order): - Extract the columns named "id" and "first name" (in that order):
`csvcut -c {{id,"first name"}} {{data.csv}}` `csvcut {{[-c|--columns]}} {{id,"first name"}} {{data.csv}}`

View file

@ -6,20 +6,20 @@
- Convert to a tab-delimited file (TSV): - Convert to a tab-delimited file (TSV):
`csvformat -T {{data.csv}}` `csvformat {{[-T|--out-tabs]}} {{data.csv}}`
- Convert delimiters to a custom character: - Convert delimiters to a custom character:
`csvformat -D "{{custom_character}}" {{data.csv}}` `csvformat {{[-D|--out-delimiter]}} "{{custom_character}}" {{data.csv}}`
- Convert line endings to carriage return (^M) + line feed: - Convert line endings to carriage return (^M) + line feed:
`csvformat -M "{{\r\n}}" {{data.csv}}` `csvformat {{[-M|--out-lineterminator]}} "{{\r\n}}" {{data.csv}}`
- Minimize use of quote characters: - Minimize use of quote characters:
`csvformat -U 0 {{data.csv}}` `csvformat {{[-U|--out-quoting]}} 0 {{data.csv}}`
- Maximize use of quote characters: - Maximize use of quote characters:
`csvformat -U 1 {{data.csv}}` `csvformat {{[-U|--out-quoting]}} 1 {{data.csv}}`

View file

@ -6,12 +6,12 @@
- Find rows that have a certain string in column 1: - Find rows that have a certain string in column 1:
`csvgrep -c {{1}} -m {{string_to_match}} {{data.csv}}` `csvgrep {{[-c|--columns]}} {{1}} {{[-m|--match]}} {{string_to_match}} {{data.csv}}`
- Find rows in which columns 3 or 4 match a certain regular expression: - Find rows in which columns 3 or 4 match a certain regular expression:
`csvgrep -c {{3,4}} -r {{regular_expression}} {{data.csv}}` `csvgrep {{[-c|--columns]}} {{3,4}} {{[-r|--regex]}} {{regular_expression}} {{data.csv}}`
- Find rows in which the "name" column does NOT include the string "John Doe": - Find rows in which the "name" column does NOT include the string "John Doe":
`csvgrep -i -c {{name}} -m "{{John Doe}}" {{data.csv}}` `csvgrep {{[-i|--invert-match]}} {{[-c|--columns]}} {{name}} {{[-m|--match]}} "{{John Doe}}" {{data.csv}}`

View file

@ -2,20 +2,20 @@
> Manipulation toolkit for CSV files. > Manipulation toolkit for CSV files.
> See also: `csvclean`, `csvcut`, `csvformat`, `csvgrep`, `csvlook`, `csvpy`, `csvsort`, `csvstat`. > See also: `csvclean`, `csvcut`, `csvformat`, `csvgrep`, `csvlook`, `csvpy`, `csvsort`, `csvstat`.
> More information: <https://csvkit.readthedocs.io/en/0.9.1/cli.html>. > More information: <https://csvkit.readthedocs.io/en/latest/cli.html>.
- Run a command on a CSV file with a custom delimiter: - Run a command on a CSV file with a custom delimiter:
`{{command}} -d {{delimiter}} {{path/to/file.csv}}` `{{command}} {{[-d|--delimiter]}} {{delimiter}} {{path/to/file.csv}}`
- Run a command on a CSV file with a tab as a delimiter (overrides -d): - Run a command on a CSV file with a tab as a delimiter (overrides -d):
`{{command}} -t {{path/to/file.csv}}` `{{command}} {{[-t|--tabs]}} {{path/to/file.csv}}`
- Run a command on a CSV file with a custom quote character: - Run a command on a CSV file with a custom quote character:
`{{command}} -q {{quote_char}} {{path/to/file.csv}}` `{{command}} {{[-q|--quotechar]}} {{quote_char}} {{path/to/file.csv}}`
- Run a command on a CSV file with no header row: - Run a command on a CSV file with no header row:
`{{command}} -H {{path/to/file.csv}}` `{{command}} {{[-H|--no-header-row]}} {{path/to/file.csv}}`

View file

@ -6,16 +6,16 @@
- Sort a CSV file by column 9: - Sort a CSV file by column 9:
`csvsort -c {{9}} {{data.csv}}` `csvsort {{[-c|--columns]}} {{9}} {{data.csv}}`
- Sort a CSV file by the "name" column in descending order: - Sort a CSV file by the "name" column in descending order:
`csvsort -r -c {{name}} {{data.csv}}` `csvsort {{[-r|--reverse]}} {{[-c|--columns]}} {{name}} {{data.csv}}`
- Sort a CSV file by column 2, then by column 4: - Sort a CSV file by column 2, then by column 4:
`csvsort -c {{2,4}} {{data.csv}}` `csvsort {{[-c|--columns]}} {{2,4}} {{data.csv}}`
- Sort a CSV file without inferring data types: - Sort a CSV file without inferring data types:
`csvsort --no-inference -c {{columns}} {{data.csv}}` `csvsort {{[-I|--no-inference]}} {{[-c|--columns]}} {{columns}} {{data.csv}}`

View file

@ -10,7 +10,7 @@
- Show all stats for columns 2 and 4: - Show all stats for columns 2 and 4:
`csvstat -c {{2,4}} {{data.csv}}` `csvstat {{[-c|--columns]}} {{2,4}} {{data.csv}}`
- Show sums for all columns: - Show sums for all columns:
@ -18,8 +18,8 @@
- Show the max value length for column 3: - Show the max value length for column 3:
`csvstat -c {{3}} --len {{data.csv}}` `csvstat {{[-c|--columns]}} {{3}} --len {{data.csv}}`
- Show the number of unique values in the "name" column: - Show the number of unique values in the "name" column:
`csvstat -c {{name}} --unique {{data.csv}}` `csvstat {{[-c|--columns]}} {{name}} --unique {{data.csv}}`

View file

@ -3,14 +3,14 @@
> CMake test driver program. > CMake test driver program.
> More information: <https://gitlab.kitware.com/cmake/community/wikis/doc/ctest/Testing-With-CTest>. > More information: <https://gitlab.kitware.com/cmake/community/wikis/doc/ctest/Testing-With-CTest>.
- Run all tests defined in the CMake project, executing 4 jobs at a time in parallel: - Run all tests defined in the CMake project, executing 4 [j]obs at a time in parallel:
`ctest -j{{4}} --output-on-failure` `ctest {{[-j|--parallel]}} {{4}} --output-on-failure`
- List available tests: - List available tests:
`ctest -N` `ctest {{[-N|--show-only]}}`
- Run a single test based on its name, or filter on a regular expression: - Run a single test based on its name, or filter on a regular expression:
`ctest --output-on-failure -R '^{{test_name}}$'` `ctest --output-on-failure {{[-R|--tests-regex]}} '^{{test_name}}$'`

View file

@ -5,19 +5,19 @@
- Check if a DocBook XML file is valid: - Check if a DocBook XML file is valid:
`daps -d {{path/to/file.xml}} validate` `daps {{[-d|--docconfig]}} {{path/to/file.xml}} validate`
- Convert a DocBook XML file into PDF: - Convert a DocBook XML file into PDF:
`daps -d {{path/to/file.xml}} pdf` `daps {{[-d|--docconfig]}} {{path/to/file.xml}} pdf`
- Convert a DocBook XML file into a single HTML file: - Convert a DocBook XML file into a single HTML file:
`daps -d {{path/to/file.xml}} html --single` `daps {{[-d|--docconfig]}} {{path/to/file.xml}} html --single`
- Display help: - Display help:
`daps --help` `daps {{[-h|--help]}}`
- Display version: - Display version:

View file

@ -1,7 +1,7 @@
# deluge # deluge
> A command-line BitTorrent client. > A command-line BitTorrent client.
> More information: <https://deluge-torrent.org>. > More information: <https://manned.org/deluge>.
- Download a torrent: - Download a torrent:
@ -9,7 +9,7 @@
- Download a torrent using a specific configuration file: - Download a torrent using a specific configuration file:
`deluge -c {{path/to/configuration_file}} {{url|magnet|path/to/file}}` `deluge {{[-c|--config]}} {{path/to/configuration_file}} {{url|magnet|path/to/file}}`
- Download a torrent and launch the specified user interface: - Download a torrent and launch the specified user interface:
@ -17,4 +17,4 @@
- Download a torrent and output the log to a file: - Download a torrent and output the log to a file:
`deluge -l {{path/to/log_file}} {{url|magnet|path/to/file}}` `deluge {{[-l|--logfile]}} {{path/to/log_file}} {{url|magnet|path/to/file}}`

View file

@ -1,7 +1,7 @@
# deluged # deluged
> A daemon process for the Deluge BitTorrent client. > A daemon process for the Deluge BitTorrent client.
> More information: <https://deluge-torrent.org>. > More information: <https://manned.org/deluged>.
- Start the Deluge daemon: - Start the Deluge daemon:
@ -9,12 +9,12 @@
- Start the Deluge daemon on a specific port: - Start the Deluge daemon on a specific port:
`deluged -p {{port}}` `deluged {{[-p|--port]}} {{port}}`
- Start the Deluge daemon using a specific configuration file: - Start the Deluge daemon using a specific configuration file:
`deluged -c {{path/to/configuration_file}}` `deluged {{[-c|--config]}} {{path/to/configuration_file}}`
- Start the Deluge daemon and output the log to a file: - Start the Deluge daemon and output the log to a file:
`deluged -l {{path/to/log_file}}` `deluged {{[-l|--logfile]}} {{path/to/log_file}}`

View file

@ -2,7 +2,7 @@
> Renames files to make them easier to work with. > Renames files to make them easier to work with.
> It removes spaces and other such annoyances like duplicate underline characters. > It removes spaces and other such annoyances like duplicate underline characters.
> More information: <https://github.com/dharple/detox>. > More information: <https://manned.org/detox>.
- Remove spaces and other undesirable characters from a file's name: - Remove spaces and other undesirable characters from a file's name:
@ -10,7 +10,7 @@
- Show how detox would rename all the files in a directory tree: - Show how detox would rename all the files in a directory tree:
`detox --dry-run -r {{path/to/directory}}` `detox {{[-n|--dry-run]}} -r {{path/to/directory}}`
- Remove spaces and other undesirable characters from all files in a directory tree: - Remove spaces and other undesirable characters from all files in a directory tree:

View file

@ -1,7 +1,7 @@
# dexdump # dexdump
> Display information about Android DEX files. > Display information about Android DEX files.
> More information: <https://manned.org/dexdump>. > More information: <https://manned.org/man/debian-stretch/dexdump>.
- Extract classes and methods from an APK file: - Extract classes and methods from an APK file:

View file

@ -5,8 +5,8 @@
- Create and authenticate a user with Google OIDC: - Create and authenticate a user with Google OIDC:
`dexter auth -i {{client_id}} -s {{client_secret}}` `dexter auth {{[-i|--client-id]}} {{client_id}} {{[-s|--client-secret]}} {{client_secret}}`
- Override the default kube configuration file location: - Override the default kube configuration file location:
`dexter auth -i {{client_id}} -s {{client_secret}} --kube-config {{sample/config}}` `dexter auth {{[-i|--client-id]}} {{client_id}} {{[-s|--client-secret]}} {{client_secret}} {{[-k|--kube-config]}} {{sample/config}}`

View file

@ -10,24 +10,24 @@
- Exhaust IPv6 addresses using eth1 interface: - Exhaust IPv6 addresses using eth1 interface:
`sudo ./pig.py -6 {{eth1}}` `sudo ./pig.py {{[-6|--ipv6]}} {{eth1}}`
- Send fuzzed/malformed data packets using the interface: - Send fuzzed/malformed data packets using the interface:
`sudo ./pig.py --fuzz {{eth1}}` `sudo ./pig.py {{[-f|--fuzz]}} {{eth1}}`
- Enable color output: - Enable color output:
`sudo ./pig.py -c {{eth1}}` `sudo ./pig.py {{[-c|--color]}} {{eth1}}`
- Enable minimal verbosity and color output: - Enable minimal verbosity and color output:
`sudo ./pig.py -c --verbosity=1 {{eth1}}` `sudo ./pig.py {{[-c|--color]}} {{[-v|--verbosity]}} 1 {{eth1}}`
- Use a debug verbosity of 100 and scan network of neighboring devices using ARP packets: - Use a debug verbosity of 100 and scan network of neighboring devices using ARP packets:
`sudo ./pig.py -c --verbosity=100 --neighbors-scan-arp {{eth1}}` `sudo ./pig.py {{[-c|--color]}} {{[-v|--verbosity]}} 100 {{[-n|--neighbors-scan-arp]}} {{eth1}}`
- Enable printing lease information, attempt to scan and release all neighbor IP addresses: - Enable printing lease information, attempt to scan and release all neighbor IP addresses:
`sudo ./pig.py --neighbors-scan-arp -r --show-options {{eth1}}` `sudo ./pig.py {{[-n|--neighbors-scan-arp]}} {{[-r|--neighbors-attack-release]}} {{[-o|--show-options]}} {{eth1}}`

View file

@ -5,15 +5,15 @@
- List available databases: - List available databases:
`dict -D` `dict {{[-D|--dbs]}}`
- Get information about a database: - Get information about a database:
`dict -i {{database_name}}` `dict {{[-i|--info]}} {{database_name}}`
- Look up a word in a specific database: - Look up a word in a specific database:
`dict -d {{database_name}} {{word}}` `dict {{[-d|--database]}} {{database_name}} {{word}}`
- Look up a word in all available databases: - Look up a word in all available databases:
@ -21,4 +21,4 @@
- Show information about the DICT server: - Show information about the DICT server:
`dict -I` `dict {{[-I|--serverinfo]}}`

View file

@ -13,19 +13,19 @@
- Build a Docker image and tag it: - Build a Docker image and tag it:
`docker build --tag {{name:tag}} .` `docker build {{[-t|--tag]}} {{name:tag}} .`
- Build a Docker image with no build context: - Build a Docker image with no build context:
`docker build --tag {{name:tag}} - < {{Dockerfile}}` `docker build {{[-t|--tag]}} {{name:tag}} - < {{Dockerfile}}`
- Do not use the cache when building the image: - Do not use the cache when building the image:
`docker build --no-cache --tag {{name:tag}} .` `docker build --no-cache {{[-t|--tag]}} {{name:tag}} .`
- Build a Docker image using a specific Dockerfile: - Build a Docker image using a specific Dockerfile:
`docker build --file {{Dockerfile}} .` `docker build {{[-f|--file]}} {{Dockerfile}} .`
- Build with custom build-time variables: - Build with custom build-time variables:

View file

@ -9,23 +9,23 @@
- Apply a `CMD` Dockerfile instruction to the created image: - Apply a `CMD` Dockerfile instruction to the created image:
`docker commit --change "CMD {{command}}" {{container}} {{image}}:{{tag}}` `docker commit {{[-c|--change]}} "CMD {{command}}" {{container}} {{image}}:{{tag}}`
- Apply an `ENV` Dockerfile instruction to the created image: - Apply an `ENV` Dockerfile instruction to the created image:
`docker commit --change "ENV {{name}}={{value}}" {{container}} {{image}}:{{tag}}` `docker commit {{[-c|--change]}} "ENV {{name}}={{value}}" {{container}} {{image}}:{{tag}}`
- Create an image with a specific author in the metadata: - Create an image with a specific author in the metadata:
`docker commit --author "{{author}}" {{container}} {{image}}:{{tag}}` `docker commit {{[-a|--author]}} "{{author}}" {{container}} {{image}}:{{tag}}`
- Create an image with a specific comment in the metadata: - Create an image with a specific comment in the metadata:
`docker commit --message "{{comment}}" {{container}} {{image}}:{{tag}}` `docker commit {{[-m|--message]}} "{{comment}}" {{container}} {{image}}:{{tag}}`
- Create an image without pausing the container during commit: - Create an image without pausing the container during commit:
`docker commit --pause {{false}} {{container}} {{image}}:{{tag}}` `docker commit {{[-p|--pause]}} {{false}} {{container}} {{image}}:{{tag}}`
- Display help: - Display help:

View file

@ -9,7 +9,7 @@
- Create and start all containers in the background using a `docker-compose.yml` file from the current directory: - Create and start all containers in the background using a `docker-compose.yml` file from the current directory:
`docker compose up --detach` `docker compose up {{[-d|--detach]}}`
- Start all containers, rebuild if necessary: - Start all containers, rebuild if necessary:
@ -17,7 +17,7 @@
- Start all containers by specifying a project name and using an alternate compose file: - Start all containers by specifying a project name and using an alternate compose file:
`docker compose -p {{project_name}} --file {{path/to/file}} up` `docker compose {{[-p|--project-name]}} {{project_name}} {{[-f|--file]}} {{path/to/file}} up`
- Stop all running containers: - Stop all running containers:
@ -25,12 +25,12 @@
- Stop and remove all containers, networks, images, and volumes: - Stop and remove all containers, networks, images, and volumes:
`docker compose down --rmi all --volumes` `docker compose down --rmi all {{[-v|--volumes]}}`
- Follow logs for all containers: - Follow logs for all containers:
`docker compose logs --follow` `docker compose logs {{[-f|--follow]}}`
- Follow logs for a specific container: - Follow logs for a specific container:
`docker compose logs --follow {{container_name}}` `docker compose logs {{[-f|--follow]}} {{container_name}}`

View file

@ -13,4 +13,4 @@
- Copy a file or directory from the host to a container, following symlinks (copies the symlinked files directly, not the symlinks themselves): - Copy a file or directory from the host to a container, following symlinks (copies the symlinked files directly, not the symlinks themselves):
`docker cp --follow-link {{path/to/symlink_on_host}} {{container_name}}:{{path/to/file_or_directory_in_container}}` `docker cp {{[-L|--follow-link]}} {{path/to/symlink_on_host}} {{container_name}}:{{path/to/file_or_directory_in_container}}`

View file

@ -14,7 +14,7 @@
- Delete all unused images (not just those without a tag): - Delete all unused images (not just those without a tag):
`docker image prune --all` `docker image prune {{[-a|--all]}}`
- Show the history of a local Docker image: - Show the history of a local Docker image:

View file

@ -25,4 +25,4 @@
- Sort images by size: - Sort images by size:
`docker images --format "\{\{.ID\}\}\t\{\{.Size\}\}\t\{\{.Repository\}\}:\{\{.Tag\}\}" | sort -k 2 -h` `docker images --format "\{\{.ID\}\}\t\{\{.Size\}\}\t\{\{.Repository\}\}:\{\{.Tag\}\}" | sort {{[-k|--key]}} 2 {{[-h|--human-numeric-sort]}}`

View file

@ -13,20 +13,20 @@
- Display a container's IP address: - Display a container's IP address:
`docker inspect --format '\{\{range.NetworkSettings.Networks\}\}\{\{.IPAddress\}\}\{\{end\}\}' {{container}}` `docker inspect {{[-f|--format]}} '\{\{range.NetworkSettings.Networks\}\}\{\{.IPAddress\}\}\{\{end\}\}' {{container}}`
- Display the path to the container's log file: - Display the path to the container's log file:
`docker inspect --format='\{\{.LogPath\}\}' {{container}}` `docker inspect {{[-f|--format]}} '\{\{.LogPath\}\}' {{container}}`
- Display the image name of the container: - Display the image name of the container:
`docker inspect --format='\{\{.Config.Image\}\}' {{container}}` `docker inspect {{[-f|--format]}} '\{\{.Config.Image\}\}' {{container}}`
- Display the configuration information as JSON: - Display the configuration information as JSON:
`docker inspect --format='\{\{json .Config\}\}' {{container}}` `docker inspect {{[-f|--format]}} '\{\{json .Config\}\}' {{container}}`
- Display all port bindings: - Display all port bindings:
`docker inspect --format='\{\{range $p, $conf := .NetworkSettings.Ports\}\} \{\{$p\}\} -> \{\{(index $conf 0).HostPort\}\} \{\{end\}\}' {{container}}` `docker inspect {{[-f|--format]}} '\{\{range $p, $conf := .NetworkSettings.Ports\}\} \{\{$p\}\} -> \{\{(index $conf 0).HostPort\}\} \{\{end\}\}' {{container}}`

View file

@ -9,8 +9,8 @@
- Load a Docker image from a specific file: - Load a Docker image from a specific file:
`docker load --input {{path/to/image_file.tar}}` `docker load {{[-i|--input]}} {{path/to/image_file.tar}}`
- Load a Docker image from a specific file in quiet mode: - Load a Docker image from a specific file in quiet mode:
`docker load --quiet --input {{path/to/image_file.tar}}` `docker load {{[-q|--quiet]}} {{[-i|--input]}} {{path/to/image_file.tar}}`

View file

@ -9,12 +9,12 @@
- Log into a registry with a specific username (user will be prompted for a password): - Log into a registry with a specific username (user will be prompted for a password):
`docker login --username {{username}}` `docker login {{[-u|--username]}} {{username}}`
- Log into a registry with username and password: - Log into a registry with username and password:
`docker login --username {{username}} --password {{password}} {{server}}` `docker login {{[-u|--username]}} {{username}} {{[-p|--password]}} {{password}} {{server}}`
- Log into a registry with password from `stdin`: - Log into a registry with password from `stdin`:
`echo "{{password}}" | docker login --username {{username}} --password-stdin` `echo "{{password}}" | docker login {{[-u|--username]}} {{username}} --password-stdin`

View file

@ -9,7 +9,7 @@
- Create a user-defined network: - Create a user-defined network:
`docker network create --driver {{driver_name}} {{network_name}}` `docker network create {{[-d|--driver]}} {{driver_name}} {{network_name}}`
- Display detailed information about one or more networks: - Display detailed information about one or more networks:

View file

@ -13,7 +13,7 @@
- Force remove an image: - Force remove an image:
`docker rmi --force {{image}}` `docker rmi {{[-f|--force]}} {{image}}`
- Remove an image without deleting untagged parents: - Remove an image without deleting untagged parents:

View file

@ -9,12 +9,12 @@
- Save an image to a tar archive: - Save an image to a tar archive:
`docker save --output {{path/to/file.tar}} {{image}}:{{tag}}` `docker save {{[-o|--output]}} {{path/to/file.tar}} {{image}}:{{tag}}`
- Save all tags of the image: - Save all tags of the image:
`docker save --output {{path/to/file.tar}} {{image_name}}` `docker save {{[-o|--output]}} {{path/to/file.tar}} {{image_name}}`
- Cherry-pick particular tags of an image to save: - Cherry-pick particular tags of an image to save:
`docker save --output {{path/to/file.tar}} {{image_name:tag1 image_name:tag2 ...}}` `docker save {{[-o|--output]}} {{path/to/file.tar}} {{image_name:tag1 image_name:tag2 ...}}`

View file

@ -17,7 +17,7 @@
- Display statistics for all containers (both running and stopped): - Display statistics for all containers (both running and stopped):
`docker stats --all` `docker stats {{[-a|--all]}}`
- Disable streaming stats and only pull the current stats: - Disable streaming stats and only pull the current stats:

View file

@ -13,7 +13,7 @@
- Show detailed information on disk usage: - Show detailed information on disk usage:
`docker system df --verbose` `docker system df {{[-v|--verbose]}}`
- Remove unused data (append `--volumes` to remove unused volumes as well): - Remove unused data (append `--volumes` to remove unused volumes as well):
@ -29,7 +29,7 @@
- Display real-time events from containers streamed as valid JSON Lines: - Display real-time events from containers streamed as valid JSON Lines:
`docker system events --filter 'type=container' --format '{{json .}}'` `docker system events {{[-f|--filter]}} 'type=container' --format '{{json .}}'`
- Display system-wide information: - Display system-wide information:

View file

@ -13,7 +13,7 @@
- Create a `tmpfs` volume a size of 100 MiB and an uid of 1000: - Create a `tmpfs` volume a size of 100 MiB and an uid of 1000:
`docker volume create --opt {{type}}={{tmpfs}} --opt {{device}}={{tmpfs}} --opt {{o}}={{size=100m,uid=1000}} {{volume_name}}` `docker volume create {{[-o|--opt]}} {{type}}={{tmpfs}} {{[-o|--opt]}} {{device}}={{tmpfs}} {{[-o|--opt]}} {{o}}={{size=100m,uid=1000}} {{volume_name}}`
- List all volumes: - List all volumes:

View file

@ -9,4 +9,4 @@
- Stage all tables: - Stage all tables:
`dolt add --all` `dolt add {{[-A|--all]}}`

View file

@ -9,7 +9,7 @@
- List all local and remote branches: - List all local and remote branches:
`dolt branch --all` `dolt branch {{[-A|--all]}}`
- Create a new branch based on the current branch: - Create a new branch based on the current branch:
@ -21,15 +21,15 @@
- Rename a branch: - Rename a branch:
`dolt branch --move {{branch_name1}} {{branch_name2}}` `dolt branch {{[-m|--move]}} {{branch_name1}} {{branch_name2}}`
- Duplicate a branch: - Duplicate a branch:
`dolt branch --copy {{branch_name1}} {{branch_name2}}` `dolt branch {{[-c|--copy]}} {{branch_name1}} {{branch_name2}}`
- Delete a branch: - Delete a branch:
`dolt branch --delete {{branch_name}}` `dolt branch {{[-d|--delete]}} {{branch_name}}`
- Display the name of the current branch: - Display the name of the current branch:

View file

@ -1,7 +1,7 @@
# dolt clone # dolt clone
> Clone a repository into a new directory. > Clone a repository into a new directory.
> More information: <https://docs.dolthub.com/interfaces/cli#dolt-clone>. > More information: <https://docs.dolthub.com/cli-reference/cli#dolt-clone>.
- Clone an existing repository into a specific directory (defaults to the repository name): - Clone an existing repository into a specific directory (defaults to the repository name):
@ -13,7 +13,7 @@
- Clone an existing repository only fetching a specific branch (defaults to all branches): - Clone an existing repository only fetching a specific branch (defaults to all branches):
`dolt clone --branch {{branch_name}} {{repository_url}}` `dolt clone {{[-b|--branch]}} {{branch_name}} {{repository_url}}`
- Clone a repository, using an AWS region (uses the profile's default region if none is provided): - Clone a repository, using an AWS region (uses the profile's default region if none is provided):

View file

@ -9,11 +9,11 @@
- Commit all staged changes with the specified message: - Commit all staged changes with the specified message:
`dolt commit --message "{{commit_message}}"` `dolt commit {{[-m|--message]}} "{{commit_message}}"`
- Stage all unstaged changes to tables before committing: - Stage all unstaged changes to tables before committing:
`dolt commit --all` `dolt commit {{[-a|--all]}}`
- Use the specified ISO 8601 commit date (defaults to current date and time): - Use the specified ISO 8601 commit date (defaults to current date and time):
@ -29,4 +29,4 @@
- Ignore foreign key warnings: - Ignore foreign key warnings:
`dolt commit --force` `dolt commit {{[-f|--force]}}`

View file

@ -9,4 +9,4 @@
- Initiate a faster but less thorough garbage collection process: - Initiate a faster but less thorough garbage collection process:
`dolt gc --shallow` `dolt gc {{[-s|--shallow]}}`

View file

@ -9,4 +9,4 @@
- Initialize a new Dolt data repository creating a commit with the specified metadata: - Initialize a new Dolt data repository creating a commit with the specified metadata:
`dolt init --name "{{name}}" --email "{{email}}" --date "{{2021-12-31T00:00:00}}" -b "{{branch_name}}"` `dolt init --name "{{name}}" --email "{{email}}" --date "{{2021-12-31T00:00:00}}" {{[-b|--initial-branch]}} "{{branch_name}}"`

View file

@ -17,7 +17,7 @@
- Merge a branch and create a merge commit with a specific commit message: - Merge a branch and create a merge commit with a specific commit message:
`dolt merge --no-ff -m "{{message}}" {{branch_name}}` `dolt merge --no-ff {{[-m|--message]}} "{{message}}" {{branch_name}}`
- Abort the current conflict resolution process: - Abort the current conflict resolution process:

View file

@ -5,8 +5,8 @@
- Run a single query: - Run a single query:
`dolt sql --query "{{INSERT INTO t values (1, 3);}}"` `dolt sql {{[-q|--query]}} "{{INSERT INTO t values (1, 3);}}"`
- List all saved queries: - List all saved queries:
`dolt sql --list-saved` `dolt sql {{[-l|--list-saved]}}`

View file

@ -13,15 +13,15 @@
- Add a specific version of a package to the project: - Add a specific version of a package to the project:
`dotnet add package {{package}} --version {{1.0.0}}` `dotnet add package {{package}} {{[-v|--version]}} {{1.0.0}}`
- Add a package using a specific NuGet source: - Add a package using a specific NuGet source:
`dotnet add package {{package}} --source {{https://api.nuget.org/v3/index.json}}` `dotnet add package {{package}} {{[-s|--source]}} {{https://api.nuget.org/v3/index.json}}`
- Add a package only when targeting a specific framework: - Add a package only when targeting a specific framework:
`dotnet add package {{package}} --framework {{net7.0}}` `dotnet add package {{package}} {{[-f|--framework]}} {{net7.0}}`
- Add and specify the directory where to restore packages (`~/.nuget/packages` by default): - Add and specify the directory where to restore packages (`~/.nuget/packages` by default):

View file

@ -13,7 +13,7 @@
- Compile in release mode: - Compile in release mode:
`dotnet build --configuration {{Release}}` `dotnet build {{[-c|--configuration]}} {{Release}}`
- Compile without restoring dependencies: - Compile without restoring dependencies:
@ -21,12 +21,12 @@
- Compile with a specific verbosity level: - Compile with a specific verbosity level:
`dotnet build --verbosity {{quiet|minimal|normal|detailed|diagnostic}}` `dotnet build {{[-v|--verbosity]}} {{quiet|minimal|normal|detailed|diagnostic}}`
- Compile for a specific runtime: - Compile for a specific runtime:
`dotnet build --runtime {{runtime_identifier}}` `dotnet build {{[-r|--runtime]}} {{runtime_identifier}}`
- Specify the output directory: - Specify the output directory:
`dotnet build --output {{path/to/directory}}` `dotnet build {{[-o|--output]}} {{path/to/directory}}`

View file

@ -5,19 +5,19 @@
- Compile a .NET project in release mode: - Compile a .NET project in release mode:
`dotnet publish --configuration Release {{path/to/project_file}}` `dotnet publish {{[-c|--configuration]}} Release {{path/to/project_file}}`
- Publish the .NET Core runtime with your application for the specified runtime: - Publish the .NET Core runtime with your application for the specified runtime:
`dotnet publish --self-contained true --runtime {{runtime_identifier}} {{path/to/project_file}}` `dotnet publish {{[-sc|--self-contained]}} true {{[-r|--runtime]}} {{runtime_identifier}} {{path/to/project_file}}`
- Package the application into a platform-specific single-file executable: - Package the application into a platform-specific single-file executable:
`dotnet publish --runtime {{runtime_identifier}} -p:PublishSingleFile=true {{path/to/project_file}}` `dotnet publish {{[-r|--runtime]}} {{runtime_identifier}} -p:PublishSingleFile=true {{path/to/project_file}}`
- Trim unused libraries to reduce the deployment size of an application: - Trim unused libraries to reduce the deployment size of an application:
`dotnet publish --self-contained true --runtime {{runtime_identifier}} -p:PublishTrimmed=true {{path/to/project_file}}` `dotnet publish {{[-sc|--self-contained]}} true {{[-r|--runtime]}} {{runtime_identifier}} -p:PublishTrimmed=true {{path/to/project_file}}`
- Compile a .NET project without restoring dependencies: - Compile a .NET project without restoring dependencies:
@ -25,4 +25,4 @@
- Specify the output directory: - Specify the output directory:
`dotnet publish --output {{path/to/directory}} {{path/to/project_file}}` `dotnet publish {{[-o|--output]}} {{path/to/directory}} {{path/to/project_file}}`

View file

@ -25,4 +25,4 @@
- Restore dependencies with a specific verbosity level: - Restore dependencies with a specific verbosity level:
`dotnet restore --verbosity {{quiet|minimal|normal|detailed|diagnostic}}` `dotnet restore {{[-v|--verbosity]}} {{quiet|minimal|normal|detailed|diagnostic}}`

View file

@ -17,8 +17,8 @@
- Run the project using a target framework moniker: - Run the project using a target framework moniker:
`dotnet run --framework {{net7.0}}` `dotnet run {{[-f|--framework]}} {{net7.0}}`
- Specify architecture and OS, available since .NET 6 (Don't use `--runtime` with these options): - Specify architecture and OS, available since .NET 6 (Don't use `--runtime` with these options):
`dotnet run --arch {{x86|x64|arm|arm64}} --os {{win|win7|osx|linux|ios|android}}` `dotnet run {{[-a|--arch]}} {{x86|x64|arm|arm64}} --os {{win|win7|osx|linux|ios|android}}`

View file

@ -5,7 +5,7 @@
- Install a global tool (don't use `--global` for local tools): - Install a global tool (don't use `--global` for local tools):
`dotnet tool install --global {{dotnetsay}}` `dotnet tool install {{[-g|--global]}} {{dotnetsay}}`
- Install tools defined in the local tool manifest: - Install tools defined in the local tool manifest:
@ -13,15 +13,15 @@
- Update a specific global tool (don't use `--global` for local tools): - Update a specific global tool (don't use `--global` for local tools):
`dotnet tool update --global {{tool_name}}` `dotnet tool update {{[-g|--global]}} {{tool_name}}`
- Uninstall a global tool (don't use `--global` for local tools): - Uninstall a global tool (don't use `--global` for local tools):
`dotnet tool uninstall --global {{tool_name}}` `dotnet tool uninstall {{[-g|--global]}} {{tool_name}}`
- List installed global tools (don't use `--global` for local tools): - List installed global tools (don't use `--global` for local tools):
`dotnet tool list --global` `dotnet tool list {{[-g|--global]}}`
- Search tools in NuGet: - Search tools in NuGet:
@ -29,4 +29,4 @@
- Display help: - Display help:
`dotnet tool --help` `dotnet tool {{[-h|--help]}}`

View file

@ -9,7 +9,7 @@
- Non-interactively create a new D project: - Non-interactively create a new D project:
`dub init {{project_name}} -n` `dub init {{project_name}} {{[-n|--non-interactive]}}`
- Build and run a D project: - Build and run a D project:
@ -25,4 +25,4 @@
- Display help: - Display help:
`dub --help` `dub {{[-h|--help]}}`

View file

@ -5,16 +5,16 @@
- Display available interfaces: - Display available interfaces:
`dumpcap --list-interfaces` `dumpcap {{[-D|--list-interfaces]}}`
- Capture packets on a specific interface: - Capture packets on a specific interface:
`dumpcap --interface {{1}}` `dumpcap {{[-i|--interface]}} {{1}}`
- Capture packets to a specific location: - Capture packets to a specific location:
`dumpcap --interface {{1}} -w {{path/to/output_file.pcapng}}` `dumpcap {{[-i|--interface]}} {{1}} -w {{path/to/output_file.pcapng}}`
- Write to a ring buffer with a specific max file limit of a specific size: - Write to a ring buffer with a specific max file limit of a specific size:
`dumpcap --interface {{1}} -w {{path/to/output_file.pcapng}} --ring-buffer filesize:{{500000}} --ring-buffer files:{{10}}` `dumpcap {{[-i|--interface]}} {{1}} -w {{path/to/output_file.pcapng}} {{[-b|--ring-buffer]}} filesize:{{500000}} {{[-b|--ring-buffer]}} files:{{10}}`

View file

@ -5,7 +5,7 @@
- Use current directory as the repository, initialize a SFTP storage and encrypt the storage with a password: - Use current directory as the repository, initialize a SFTP storage and encrypt the storage with a password:
`duplicacy init -e {{snapshot_id}} {{sftp://user@192.168.2.100/path/to/storage/}}` `duplicacy init {{[-e|-encrypt]}} {{snapshot_id}} {{sftp://user@192.168.2.100/path/to/storage/}}`
- Save a snapshot of the repository to the default storage: - Save a snapshot of the repository to the default storage:

View file

@ -5,15 +5,15 @@
- Create a new wallet: - Create a new wallet:
`electrum -w {{new_wallet.dat}} create` `electrum {{[-w|--wallet]}} {{path/to/new_wallet.dat}} create`
- Restore an existing wallet from seed offline: - Restore an existing wallet from seed offline:
`electrum -w {{recovery_wallet.dat}} restore -o` `electrum {{[-w|--wallet]}} {{path/to/recovery_wallet.dat}} restore {{[-o|--offline]}}`
- Create a signed transaction offline: - Create a signed transaction offline:
`electrum mktx {{recipient}} {{amount}} -f 0.0000001 -F {{from}} -o` `electrum mktx {{recipient}} {{amount}} {{[-f|--fee]}} 0.0000001 {{[-F|--from-addr]}} {{from}} {{[-o|--offline]}}`
- Display all wallet receiving addresses: - Display all wallet receiving addresses:
@ -29,4 +29,4 @@
- Connect only to a specific electrum-server instance: - Connect only to a specific electrum-server instance:
`electrum -p socks5:{{127.0.0.1}}:9050 -s {{56ckl5obj37gypcu.onion}}:50001:t -1` `electrum {{[-p|--proxy]}} socks5:{{127.0.0.1}}:9050 {{[-s|--server]}} {{56ckl5obj37gypcu.onion}}:50001:t {{[-1|--oneserver]}}`

View file

@ -9,4 +9,4 @@
- Evaluate Elixir code by passing it as an argument: - Evaluate Elixir code by passing it as an argument:
`elixir -e "{{code}}"` `elixir {{[-e|--eval]}} "{{code}}"`

View file

@ -9,12 +9,12 @@
- Detect file(s) encoding specifying a language in the POSIX/C locale format (e.g. zh_CN, en_US): - Detect file(s) encoding specifying a language in the POSIX/C locale format (e.g. zh_CN, en_US):
`enca -L {{language}} {{path/to/file1 path/to/file2 ...}}` `enca {{[-L|--language]}} {{language}} {{path/to/file1 path/to/file2 ...}}`
- Convert file(s) to a specific encoding: - Convert file(s) to a specific encoding:
`enca -L {{language}} -x {{to_encoding}} {{path/to/file1 path/to/file2 ...}}` `enca {{[-L|--language]}} {{language}} {{[-x|--convert-to]}} {{to_encoding}} {{path/to/file1 path/to/file2 ...}}`
- Create a copy of an existing file using a different encoding: - Create a copy of an existing file using a different encoding:
`enca -L {{language}} -x {{to_encoding}} < {{original_file}} > {{new_file}}` `enca {{[-L|--language]}} {{language}} {{[-x|--convert-to]}} {{to_encoding}} < {{original_file}} > {{new_file}}`

View file

@ -5,7 +5,7 @@
- Rebuild with `make` if any file in any subdirectory changes: - Rebuild with `make` if any file in any subdirectory changes:
`{{ag -l}} | entr {{make}}` `{{ag --files-with-matches}} | entr {{make}}`
- Rebuild and test with `make` if any `.c` source files in the current directory change: - Rebuild and test with `make` if any `.c` source files in the current directory change:

View file

@ -17,4 +17,4 @@
- Lint using the specified configuration file: - Lint using the specified configuration file:
`eslint -c {{path/to/config_file}} {{path/to/file1.js path/to/file2.js}}` `eslint {{[-c|--config]}} {{path/to/config_file}} {{path/to/file1.js path/to/file2.js}}`

View file

@ -25,7 +25,7 @@
- Move the date at which all JPEG photos in the current directory were taken 1 day and 2 hours backward: - Move the date at which all JPEG photos in the current directory were taken 1 day and 2 hours backward:
`exiftool "-AllDates-=0:0:1 2:0:0" -ext jpg` `exiftool "-AllDates-=0:0:1 2:0:0" {{[-ext|-extension]}} jpg`
- Only change the `DateTimeOriginal` field subtracting 1.5 hours, without keeping backups: - Only change the `DateTimeOriginal` field subtracting 1.5 hours, without keeping backups:
@ -33,4 +33,4 @@
- Recursively rename all JPEG photos in a directory based on the `DateTimeOriginal` field: - Recursively rename all JPEG photos in a directory based on the `DateTimeOriginal` field:
`exiftool '-filename<DateTimeOriginal' -d %Y-%m-%d_%H-%M-%S%%lc.%%e {{path/to/directory}} -r -ext jpg` `exiftool '-filename<DateTimeOriginal' {{[-d|-dateFormat]}} %Y-%m-%d_%H-%M-%S%%lc.%%e {{path/to/directory}} {{[-r|-recurse]}} {{[-ext|-extension]}} jpg`

View file

@ -9,20 +9,20 @@
- Print all metadata (Exif, IPTC, XMP) with interpreted values: - Print all metadata (Exif, IPTC, XMP) with interpreted values:
`exiv2 -P kt {{path/to/file}}` `exiv2 {{[-P|-Print]}} kt {{path/to/file}}`
- Print all metadata with raw values: - Print all metadata with raw values:
`exiv2 -P kv {{path/to/file}}` `exiv2 {{[-P|-Print]}} kv {{path/to/file}}`
- Delete all metadata from an image: - Delete all metadata from an image:
`exiv2 -d a {{path/to/file}}` `exiv2 {{[-d|--delete]}} a {{path/to/file}}`
- Delete all metadata, preserving the file timestamp: - Delete all metadata, preserving the file timestamp:
`exiv2 -d a -k {{path/to/file}}` `exiv2 {{[-d|--delete]}} a {{[-k|--keep]}} {{path/to/file}}`
- Rename the file, prepending the date and time from metadata (not from the file timestamp): - Rename the file, prepending the date and time from metadata (not from the file timestamp):
`exiv2 -r {{'%Y%m%d_%H%M%S_:basename:'}} {{path/to/file}}` `exiv2 {{[-r|--rename]}} {{'%Y%m%d_%H%M%S_:basename:'}} {{path/to/file}}`

View file

@ -7,15 +7,15 @@
- Start `fastd` with a specific configuration file: - Start `fastd` with a specific configuration file:
`fastd --config {{path/to/fastd.conf}}` `fastd {{[-c|--config]}} {{path/to/fastd.conf}}`
- Start a Layer 3 VPN with an MTU of 1400, loading the rest of the configuration parameters from a file: - Start a Layer 3 VPN with an MTU of 1400, loading the rest of the configuration parameters from a file:
`fastd --mode {{tap}} --mtu {{1400}} --config {{path/to/fastd.conf}}` `fastd {{[-m|--mode]}} {{tap}} {{[-M|--mtu]}} {{1400}} {{[-c|--config]}} {{path/to/fastd.conf}}`
- Validate a configuration file: - Validate a configuration file:
`fastd --verify-config --config {{path/to/fastd.conf}}` `fastd --verify-config {{[-c|--config]}} {{path/to/fastd.conf}}`
- Generate a new keypair: - Generate a new keypair:
@ -23,8 +23,8 @@
- Show the public key to a private key in a configuration file: - Show the public key to a private key in a configuration file:
`fastd --show-key --config {{path/to/fastd.conf}}` `fastd --show-key {{[-c|--config]}} {{path/to/fastd.conf}}`
- Show the current version: - Show the current version:
`fastd -v` `fastd {{[-v|--version]}}`

View file

@ -9,8 +9,8 @@
- Force a rebuild of all font cache files, without checking if cache is up-to-date: - Force a rebuild of all font cache files, without checking if cache is up-to-date:
`fc-cache -f` `fc-cache {{[-f|--force]}}`
- Erase font cache files, then generate new font cache files: - Erase font cache files, then generate new font cache files:
`fc-cache -r` `fc-cache {{[-r|--really-force]}}`

View file

@ -13,7 +13,7 @@
- Return the number of installed fonts in your system: - Return the number of installed fonts in your system:
`fc-list | wc -l` `fc-list | wc {{[-l|--lines]}}`
- Return a list of installed fonts that support the language based on its locale code: - Return a list of installed fonts that support the language based on its locale code:

View file

@ -5,4 +5,4 @@
- Return a sorted list of best matching fonts: - Return a sorted list of best matching fonts:
`fc-match -s '{{DejaVu Serif}}'` `fc-match {{[-s|--sort]}} '{{DejaVu Serif}}'`

View file

@ -5,8 +5,8 @@
- Display default information about a font: - Display default information about a font:
`fc-pattern --default '{{DejaVu Serif}}'` `fc-pattern {{[-d|--default]}} '{{DejaVu Serif}}'`
- Display configuration information about a font: - Display configuration information about a font:
`fc-pattern --config '{{DejaVu Serif}}'` `fc-pattern {{[-c|--config]}} '{{DejaVu Serif}}'`

View file

@ -13,20 +13,20 @@
- Search a directory recursively: - Search a directory recursively:
`fdupes -r {{path/to/directory}}` `fdupes {{[-r|--recurse]}} {{path/to/directory}}`
- Search multiple directories, one recursively: - Search multiple directories, one recursively:
`fdupes {{directory1}} -R {{directory2}}` `fdupes {{path/to/irectory1}} {{[-R|--recurse:]}} {{path/to/directory2}}`
- Search recursively, considering hardlinks as duplicates: - Search recursively, considering hardlinks as duplicates:
`fdupes -rH {{path/to/directory}}` `fdupes {{[-rH|--recurse --hardlinks]}} {{path/to/directory}}`
- Search recursively for duplicates and display interactive prompt to pick which ones to keep, deleting the others: - Search recursively for duplicates and display interactive prompt to pick which ones to keep, deleting the others:
`fdupes -rd {{path/to/directory}}` `fdupes {{[-rd|--recurse --delete]}} {{path/to/directory}}`
- Search recursively and delete duplicates without prompting: - Search recursively and delete duplicates without prompting:
`fdupes -rdN {{path/to/directory}}` `fdupes {{[-rdN|--recurse --delete --noprompt]}} {{path/to/directory}}`

View file

@ -6,24 +6,24 @@
- Display all input data using the specified data configuration: - Display all input data using the specified data configuration:
`ffe --configuration={{path/to/config.ffe}} {{path/to/input}}` `ffe {{[-c|--configuration]}} {{path/to/config.ffe}} {{path/to/input}}`
- Convert an input file to an output file in a new format: - Convert an input file to an output file in a new format:
`ffe --output={{path/to/output}} -c {{path/to/config.ffe}} {{path/to/input}}` `ffe --output={{path/to/output}} {{[-c|--configuration]}} {{path/to/config.ffe}} {{path/to/input}}`
- Select input structure and print format from definitions in `~/.fferc` configuration file: - Select input structure and print format from definitions in `~/.fferc` configuration file:
`ffe --structure={{structure}} --print={{format}} {{path/to/input}}` `ffe {{[-s|--structure]}} {{structure}} {{[-p|--print]}} {{format}} {{path/to/input}}`
- Write only the selected fields: - Write only the selected fields:
`ffe --field-list="{{FirstName,LastName,Age}}" -c {{path/to/config.ffe}} {{path/to/input}}` `ffe {{[-f|--field-list]}} "{{FirstName,LastName,Age}}" {{[-c|--configuration]}} {{path/to/config.ffe}} {{path/to/input}}`
- Write only the records that match an expression: - Write only the records that match an expression:
`ffe -e "{{LastName=Smith}}" -c {{path/to/config.ffe}} {{path/to/input}}` `ffe {{[-e|--expression]}} "{{LastName=Smith}}" {{[-c|--configuration]}} {{path/to/config.ffe}} {{path/to/input}}`
- Display help: - Display help:
`ffe --help` `ffe {{[-?|--help]}}`

View file

@ -5,20 +5,20 @@
- Display all available stream info for a media file: - Display all available stream info for a media file:
`ffprobe -v error -show_streams {{input.mp4}}` `ffprobe {{[-v|-loglevel]}} error -show_streams {{input.mp4}}`
- Display media duration: - Display media duration:
`ffprobe -v error -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 {{input.mp4}}` `ffprobe {{[-v|-loglevel]}} error -show_entries format=duration {{[-of|-output_format]}} default=noprint_wrappers=1:nokey=1 {{input.mp4}}`
- Display the frame rate of a video: - Display the frame rate of a video:
`ffprobe -v error -select_streams v:0 -show_entries stream=avg_frame_rate -of default=noprint_wrappers=1:nokey=1 {{input.mp4}}` `ffprobe {{[-v|-loglevel]}} error -select_streams v:0 -show_entries stream=avg_frame_rate {{[-of|-output_format]}} default=noprint_wrappers=1:nokey=1 {{input.mp4}}`
- Display the width or height of a video: - Display the width or height of a video:
`ffprobe -v error -select_streams v:0 -show_entries stream={{width|height}} -of default=noprint_wrappers=1:nokey=1 {{input.mp4}}` `ffprobe {{[-v|-loglevel]}} error -select_streams v:0 -show_entries stream={{width|height}} {{[-of|-output_format]}} default=noprint_wrappers=1:nokey=1 {{input.mp4}}`
- Display the average bit rate of a video: - Display the average bit rate of a video:
`ffprobe -v error -select_streams v:0 -show_entries stream=bit_rate -of default=noprint_wrappers=1:nokey=1 {{input.mp4}}` `ffprobe {{[-v|-loglevel]}} error -select_streams v:0 -show_entries stream=bit_rate {{[-of|-output_format]}} default=noprint_wrappers=1:nokey=1 {{input.mp4}}`

View file

@ -5,20 +5,20 @@
- Convert a compressed FIASCO file to a PNM file or in the case of video streams multiple PNM files: - Convert a compressed FIASCO file to a PNM file or in the case of video streams multiple PNM files:
`fiascotopnm {{path/to/file.fiasco}} -o {{output_file_basename}}` `fiascotopnm {{path/to/file.fiasco}} {{[-o|--output]}} {{output_file_basename}}`
- Use fast decompression, resulting in a slightly decreased quality of the output file(s): - Use fast decompression, resulting in a slightly decreased quality of the output file(s):
`fiascotopnm --fast {{path/to/file.fiasco}} -o {{output_file_basename}}` `fiascotopnm {{[-z|--fast]}} {{path/to/file.fiasco}} {{[-o|--output]}} {{output_file_basename}}`
- Load the options to be used from the specified configuration file: - Load the options to be used from the specified configuration file:
`fiascotopnm --config {{path/to/fiascorc}} {{path/to/file.fiasco}} -o {{output_file_basename}}` `fiascotopnm {{[-f|--config]}} {{path/to/fiascorc}} {{path/to/file.fiasco}} {{[-o|--output]}} {{output_file_basename}}`
- Magnify the decompressed image(s) by a factor of 2^n: - Magnify the decompressed image(s) by a factor of 2^n:
`fiascotopnm --magnify {{n}} {{path/to/file.fiasco}} -o {{output_file_basename}}` `fiascotopnm {{[-m|--magnify]}} {{n}} {{path/to/file.fiasco}} {{[-o|--output]}} {{output_file_basename}}`
- Smooth the decompressed image by the specified amount: - Smooth the decompressed image by the specified amount:
`fiascotopnm --smooth {{n}} {{path/to/file.fiasco}} -o {{output_file_basename}}` `fiascotopnm {{[-s|--smoothing]}} {{n}} {{path/to/file.fiasco}} {{[-o|--output]}} {{output_file_basename}}`

View file

@ -21,4 +21,4 @@
- Display logs of a specific container and follow the log: - Display logs of a specific container and follow the log:
`fin logs -f {{container_name}}` `fin logs {{[-f|--follow]}} {{container_name}}`

View file

@ -9,12 +9,12 @@
- Encode a WAV file to FLAC, specifying the output file: - Encode a WAV file to FLAC, specifying the output file:
`flac -o {{path/to/output.flac}} {{path/to/file.wav}}` `flac {{[-o|--output-name]}} {{path/to/output.flac}} {{path/to/file.wav}}`
- Decode a FLAC file to WAV, specifying the output file: - Decode a FLAC file to WAV, specifying the output file:
`flac -d -o {{path/to/output.wav}} {{path/to/file.flac}}` `flac {{[-d|--decode]}} {{[-o|--output-name]}} {{path/to/output.wav}} {{path/to/file.flac}}`
- Test a FLAC file for the correct encoding: - Test a FLAC file for the correct encoding:
`flac -t {{path/to/file.flac}}` `flac {{[-t|--test]}} {{path/to/file.flac}}`

View file

@ -5,7 +5,7 @@
- Authenticate with and save concourse target: - Authenticate with and save concourse target:
`fly --target {{target_name}} login --team-name {{team_name}} -c {{https://ci.example.com}}` `fly {{[-t|--target]}} {{target_name}} login {{[-n|--team-name]}} {{team_name}} {{[-c|--concourse-url]}} {{https://ci.example.com}}`
- List targets: - List targets:
@ -13,24 +13,24 @@
- List pipelines: - List pipelines:
`fly -t {{target_name}} pipelines` `fly {{[-t|--target]}} {{target_name}} pipelines`
- Upload or update a pipeline: - Upload or update a pipeline:
`fly -t {{target_name}} set-pipeline --config {{pipeline.yml}} --pipeline {{pipeline_name}}` `fly {{[-t|--target]}} {{target_name}} set-pipeline {{[-c|--config]}} {{pipeline.yml}} {{[-p|--pipeline]}} {{pipeline_name}}`
- Unpause pipeline: - Unpause pipeline:
`fly -t {{target_name}} unpause-pipeline --pipeline {{pipeline_name}}` `fly {{[-t|--target]}} {{target_name}} unpause-pipeline {{[-p|--pipeline]}} {{pipeline_name}}`
- Show pipeline configuration: - Show pipeline configuration:
`fly -t {{target_name}} get-pipeline --pipeline {{pipeline_name}}` `fly {{[-t|--target]}} {{target_name}} get-pipeline {{[-p|--pipeline]}} {{pipeline_name}}`
- Update local copy of fly: - Update local copy of fly:
`fly -t {{target_name}} sync` `fly {{[-t|--target]}} {{target_name}} sync`
- Destroy pipeline: - Destroy pipeline:
`fly -t {{target_name}} destroy-pipeline --pipeline {{pipeline_name}}` `fly {{[-t|--target]}} {{target_name}} destroy-pipeline {{[-p|--pipeline]}} {{pipeline_name}}`

View file

@ -5,16 +5,16 @@
- Run a Bash command on file creation, update or deletion: - Run a Bash command on file creation, update or deletion:
`fswatch {{path/to/file}} | xargs -n 1 {{bash_command}}` `fswatch {{path/to/file}} | xargs {{[-n|--max-args]}} 1 {{bash_command}}`
- Watch one or more files and/or directories: - Watch one or more files and/or directories:
`fswatch {{path/to/file}} {{path/to/directory}} {{path/to/another_directory/**/*.js}} | xargs -n 1 {{bash_command}}` `fswatch {{path/to/file}} {{path/to/directory}} {{path/to/another_directory/**/*.js}} | xargs {{[-n|--max-args]}} 1 {{bash_command}}`
- Print the absolute paths of the changed files: - Print the absolute paths of the changed files:
`fswatch {{path/to/directory}} | xargs -n 1 -I {} echo {}` `fswatch {{path/to/directory}} | xargs {{[-n|--max-args]}} 1 -I _ echo _`
- Filter by event type: - Filter by event type:
`fswatch --event {{Updated|Removed|Created|...}} {{path/to/directory}} | xargs -n 1 {{bash_command}}` `fswatch --event {{Updated|Removed|Created|...}} {{path/to/directory}} | xargs {{[-n|--max-args]}} 1 {{bash_command}}`

View file

@ -9,11 +9,11 @@
- Take a picture with custom resolution: - Take a picture with custom resolution:
`fswebcam -r {{width}}x{{height}} {{filename}}` `fswebcam {{[-r|--resolution]}} {{width}}x{{height}} {{filename}}`
- Take a picture from selected device(Default is `/dev/video0`): - Take a picture from selected device(Default is `/dev/video0`):
`fswebcam -d {{device}} {{filename}}` `fswebcam {{[-d|--device]}} {{device}} {{filename}}`
- Take a picture with timestamp(timestamp string is formatted by strftime): - Take a picture with timestamp(timestamp string is formatted by strftime):

View file

@ -6,7 +6,7 @@
- Upload a local path to the parent folder with the specified ID: - Upload a local path to the parent folder with the specified ID:
`gdrive upload -p {{id}} {{path/to/file_or_folder}}` `gdrive upload {{[-p|--parent]}} {{id}} {{path/to/file_or_folder}}`
- Download file or directory by ID to current directory: - Download file or directory by ID to current directory:

View file

@ -1,7 +1,7 @@
# gendesk # gendesk
> Specifies the command to generate a `.desktop` file and a download icon with minimal information. > Specifies the command to generate a `.desktop` file and a download icon with minimal information.
> More information: <https://gendesk.roboticoverlords.org>. > More information: <https://manned.org/gendesk>.
- Create a `.desktop` file named `app`: - Create a `.desktop` file named `app`:
@ -13,4 +13,4 @@
- Display help: - Display help:
`gendesk -h` `gendesk {{[-h|--help]}}`

View file

@ -21,7 +21,7 @@
- Switch to an existing remote branch: - Switch to an existing remote branch:
`git checkout --track {{remote_name}}/{{branch_name}}` `git checkout {{[-t|--track]}} {{remote_name}}/{{branch_name}}`
- Discard all unstaged changes in the current directory (see `git reset` for more undo-like commands): - Discard all unstaged changes in the current directory (see `git reset` for more undo-like commands):

View file

@ -10,8 +10,8 @@
- Clone a Git repository into a new directory, checking out an specific branch: - Clone a Git repository into a new directory, checking out an specific branch:
`git force-clone -b {{branch_name}} {{remote_repository_location}} {{path/to/directory}}` `git force-clone {{[-b|--branch]}} {{branch_name}} {{remote_repository_location}} {{path/to/directory}}`
- Clone a Git repository into an existing directory of a Git repository, performing a force-reset to resemble it to the remote and checking out an specific branch: - Clone a Git repository into an existing directory of a Git repository, performing a force-reset to resemble it to the remote and checking out an specific branch:
`git force-clone -b {{branch_name}} {{remote_repository_location}} {{path/to/directory}}` `git force-clone {{[-b|--branch]}} {{branch_name}} {{remote_repository_location}} {{path/to/directory}}`

View file

@ -14,15 +14,15 @@
- Show author emails instead of names: - Show author emails instead of names:
`git guilt --email` `git guilt {{[-e|--email]}}`
- Ignore whitespace only changes when attributing blame: - Ignore whitespace only changes when attributing blame:
`git guilt --ignore-whitespace` `git guilt {{[-w|--ignore-whitespace]}}`
- Find blame delta over the last three weeks: - Find blame delta over the last three weeks:
`git guilt 'git log --until="3 weeks ago" --format="%H" -n 1'` `git guilt 'git log --until="3 weeks ago" --format="%H" {{[-n|--max-count]}} 1'`
- Find blame delta over the last three weeks (git 1.8.5+): - Find blame delta over the last three weeks (git 1.8.5+):

View file

@ -2,7 +2,7 @@
> Replace patterns in git-controlled files using sed. > Replace patterns in git-controlled files using sed.
> Part of `git-extras`. > Part of `git-extras`.
> More information: <https://github.com/tj/git-extras/blob/master/Commands.md#git-sed>. > More information: <https://manned.org/git-sed>.
- Replace the specified text in the current repository: - Replace the specified text in the current repository:

View file

@ -21,7 +21,7 @@
- Show a commit's message in a single line, suppressing the diff output: - Show a commit's message in a single line, suppressing the diff output:
`git show --oneline -s {{commit}}` `git show --oneline {{[-s|--no-patch]}} {{commit}}`
- Show only statistics (added/removed characters) about the changed files: - Show only statistics (added/removed characters) about the changed files:

View file

@ -2,7 +2,7 @@
> See commits from a specified user. > See commits from a specified user.
> Part of `git-extras`. > Part of `git-extras`.
> More information: <https://github.com/tj/git-extras/blob/master/Commands.md#git-standup>. > More information: <https://manned.org/git-standup>.
- Show a given author's commits from the last 10 days: - Show a given author's commits from the last 10 days:

View file

@ -1,24 +1,24 @@
# git subtree # git subtree
> Manage project dependencies as subprojects. > Manage project dependencies as subprojects.
> More information: <https://manpages.debian.org/latest/git-man/git-subtree.1.html>. > More information: <https://manned.org/git-subtree>.
- Add a Git repository as a subtree: - Add a Git repository as a subtree:
`git subtree add --prefix={{path/to/directory/}} --squash {{repository_url}} {{branch_name}}` `git subtree add {{[-P|--prefix]}} {{path/to/directory/}} --squash {{repository_url}} {{branch_name}}`
- Update subtree repository to its latest commit: - Update subtree repository to its latest commit:
`git subtree pull --prefix={{path/to/directory/}} {{repository_url}} {{branch_name}}` `git subtree pull {{[-P|--prefix]}} {{path/to/directory/}} {{repository_url}} {{branch_name}}`
- Merge recent changes up to the latest subtree commit into the subtree: - Merge recent changes up to the latest subtree commit into the subtree:
`git subtree merge --prefix={{path/to/directory/}} --squash {{repository_url}} {{branch_name}}` `git subtree merge {{[-P|--prefix]}} {{path/to/directory/}} --squash {{repository_url}} {{branch_name}}`
- Push commits to a subtree repository: - Push commits to a subtree repository:
`git subtree push --prefix={{path/to/directory/}} {{repository_url}} {{branch_name}}` `git subtree push {{[-P|--prefix]}} {{path/to/directory/}} {{repository_url}} {{branch_name}}`
- Extract a new project history from the history of a subtree: - Extract a new project history from the history of a subtree:
`git subtree split --prefix={{path/to/directory/}} {{repository_url}} -b {{branch_name}}` `git subtree split {{[-P|--prefix]}} {{path/to/directory/}} {{repository_url}} {{[-b|--branch]}} {{branch_name}}`

View file

@ -17,8 +17,8 @@
- Delete a reference by name: - Delete a reference by name:
`git symbolic-ref --delete refs/{{name}}` `git symbolic-ref {{[-d|--delete]}} refs/{{name}}`
- For scripting, hide errors with `--quiet` and use `--short` to simplify ("refs/heads/X" prints as "X"): - For scripting, hide errors with `--quiet` and use `--short` to simplify ("refs/heads/X" prints as "X"):
`git symbolic-ref --quiet --short refs/{{name}}` `git symbolic-ref {{[-q|--quiet]}} --short refs/{{name}}`

View file

@ -2,7 +2,7 @@
> Sync local branches with remote branches. > Sync local branches with remote branches.
> Part of `git-extras`. > Part of `git-extras`.
> More information: <https://github.com/tj/git-extras/blob/master/Commands.md#git-sync>. > More information: <https://manned.org/git-sync>.
- Sync the current local branch with its remote branch: - Sync the current local branch with its remote branch:
@ -14,4 +14,4 @@
- Sync without cleaning untracked files: - Sync without cleaning untracked files:
`git sync -s {{remote_name}} {{branch_name}}` `git sync {{[-s|--soft]}} {{remote_name}} {{branch_name}}`

View file

@ -18,7 +18,7 @@
- Display help: - Display help:
`git --help` `git {{[-h|--help]}}`
- Display help for a specific subcommand (like `clone`, `add`, `push`, `log`, etc.): - Display help for a specific subcommand (like `clone`, `add`, `push`, `log`, etc.):
@ -26,4 +26,4 @@
- Display version: - Display version:
`git --version` `git {{[-v|--version]}}`

View file

@ -13,12 +13,12 @@
- Fork and clone a repository: - Fork and clone a repository:
`glab repo fork {{owner}}/{{repository}} --clone` `glab repo fork {{owner}}/{{repository}} {{[-c|--clone]}}`
- View a repository in the default web browser: - View a repository in the default web browser:
`glab repo view {{owner}}/{{repository}} --web` `glab repo view {{owner}}/{{repository}} {{[-w|--web]}}`
- Search some repositories in the GitLab instance: - Search some repositories in the GitLab instance:
`glab repo search -s {{search_string}}` `glab repo search {{[-s|--search]}} {{search_string}}`

Some files were not shown because too many files have changed in this diff Show more