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

*: fix curly brace syntax, nested placeholders and mismatched brackets (#17210)

* Update rpicam-still.md

* Update jello.md

* Update dropdb.md

* Update aws-eks.md

* Update sfdisk.md

* Update hyperfine.md

* Update quarto.md

* Update for.md

* Update coproc.md

* Update vagrant-validate.md

* Update kubetail.md

* Update kubetail.md

* Update pstoedit.md

* Update highlight.md

* Update linode-cli-linodes.md

* Update swig.md

* Update phpcbf.md

* Update unzipsfx.md

* Update d8.md

* Update trdsql.md

* Update keyd.md

* Update mamba-repoquery.md

* Update pages/common/jello.md

* Update coproc.md

* Apply suggestions from code review

Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>

* Update pages/common/for.md

Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>

* Update for.md

---------

Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
This commit is contained in:
Managor 2025-07-15 21:17:54 +03:00 committed by GitHub
parent 5b6cadaaed
commit 7b752dc4d3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
21 changed files with 25 additions and 25 deletions

View file

@ -6,7 +6,7 @@
- Create an EKS Cluster:
`aws eks create-cluster --name {{cluster_name}} --role-arn {{eks_service_role_arn}} --resources-vpc-config {{subnetIds={{subnet_ids}},securityGroupIds={{security_group_ids}}}}`
`aws eks create-cluster --name {{cluster_name}} --role-arn {{eks_service_role_arn}} --resources-vpc-config subnetIds={{subnet_ids}},securityGroupIds={{security_group_ids}}`
- Update kubeconfig to connect to the EKS Cluster:

View file

@ -13,11 +13,11 @@
- Write to a specific coprocess `stdin`:
`echo "{{input}}" >&"${{{name}}[1]}"`
`echo "{{input}}" >&"${{{name[1]}}}"`
- Read from a specific coprocess `stdout`:
`read {{variable}} <&"${{{name}}[0]}"`
`read {{variable}} <&"${{{name[0]}}}"`
- Create a coprocess which repeatedly reads `stdin` and runs some commands on the input:

View file

@ -13,4 +13,4 @@
- Evaluate a JavaScript expression:
`d8 -e "{{code}}`
`d8 -e "{{code}}"`

View file

@ -18,7 +18,7 @@
- Force a password prompt before connecting to the database:
`dropdb {{[-W|--password]}} {{dbname}}}}`
`dropdb {{[-W|--password]}} {{dbname}}`
- Suppress a password prompt before connecting to the database:

View file

@ -13,7 +13,7 @@
- Iterate over a given range of numbers:
`for {{variable}} in {{{from}}..{{to}}..{{step}}}; do {{echo "Loop is executed"}}; done`
`for {{variable}} in {{{from..to..step}}}; do {{echo "Loop is executed"}}; done`
- Iterate over a given list of files:

View file

@ -21,4 +21,4 @@
- Print a CSS stylesheet for a theme:
`highlight {{[-o|--out-format]}} {{html}} --print-style {{[-s|--style]}} {{theme_name}} {{[-S|--syntax]}} {{language}}] --stdout`
`highlight {{[-o|--out-format]}} {{html}} --print-style {{[-s|--style]}} {{theme_name}} {{[-S|--syntax]}} {{language}} --stdout`

View file

@ -25,4 +25,4 @@
- Run a benchmark where a single parameter changes for each run:
`hyperfine {{[-p|--prepare]}} '{{make clean}}' {{[-P|--parameter-scan]}} {{num_threads}} {{1}} {{10}} '{{make {{[-j|--jobs]}} {num_threads}}}'`
`hyperfine {{[-p|--prepare]}} '{{make clean}}' {{[-P|--parameter-scan]}} {{num_threads}} {{1}} {{10}} '{{make --jobs {num_threads}}}'`

View file

@ -25,7 +25,7 @@
- Output the value of multiple keys as a new JSON object (assuming the input JSON has the keys `key_name1` and `key_name2`):
`cat {{file.json}} | jello '{"{{key1}}": _.{{key_name1}}, "{{key_name}}": _.{{key_name2}}}'`
`cat {{file.json}} | jello '{{{"key1": _.key_name1, "key2": _.key_name2, ...}}}'`
- Output the value of a given key to a string (and disable JSON output):

View file

@ -13,7 +13,7 @@
- To tail multiple containers from multiple pods:
`kubetail {{my_app}} {{[-c|--container]}} {my_container_1}} {{[-c|--container]}} {my_container_2}}`
`kubetail {{my_app}} {{[-c|--container]}} {{my_container_1}} {{[-c|--container]}} {{my_container_2}}`
- To tail multiple applications at the same time separate them by comma:

View file

@ -18,7 +18,7 @@
- Update settings for a Linode:
`linode-cli linodes update {{linode_id}} --label {{[new_label}}`
`linode-cli linodes update {{linode_id}} --label {{new_label}}`
- Delete a Linode:

View file

@ -9,7 +9,7 @@
- Search for all packages satisfying specific constraints:
`mamba repoquery search {{sphinx<5}}`
`mamba repoquery search "{{sphinx<5}}"`
- List the dependencies of a package installed in the currently activated environment, in a tree format:

View file

@ -21,7 +21,7 @@
- A comma-separated list of files to load before processing:
`phpcbf {{path/to/directory}} --bootstrap {{path/to/file1,path/to/file2,...)}}`
`phpcbf {{path/to/directory}} --bootstrap {{path/to/file1,path/to/file2,...}}`
- Don't recurse into subdirectories:

View file

@ -13,7 +13,7 @@
- Render input file(s) to different formats:
`quarto render {{path/to/file.{{qmd|rmd|ipynb}}}} --to {{html|pdf|docx}}`
`quarto render {{path/to/file.[qmd|rmd|ipynb]}} --to {{html|pdf|docx}}`
- Render and preview a document or a website:

View file

@ -1,7 +1,7 @@
# swig
> Generate bindings between C/C++ code and various high level languages such as JavaScript, Python, C#, and more.
> It uses special `.i` or `.swg` files to generate the bindings (C/C++ with SWIG directives, then outputs a C/C++ file that contains all the wrapper code needed to build an extension module.
> It uses special `.i` or `.swg` files to generate the bindings (C/C++ with SWIG directives), then outputs a C/C++ file that contains all the wrapper code needed to build an extension module.
> More information: <https://www.swig.org>.
- Generate a binding between C++ and Python:

View file

@ -9,7 +9,7 @@
- Interpret JSON list as a table and put objects inside as columns (path/to/file.json: `{"list":[{"age":"26","name":"Tanaka"}]}`):
`trdsql "SELECT * FROM {{path/to/file.json}}::.list`
`trdsql "SELECT * FROM {{path/to/file.json}}::.list"`
- Manipulate complex SQL query with data from multiple CSV files with first line is header (`-ih`):

View file

@ -10,4 +10,4 @@
- Ensure that the Vagrantfile is correctly structured while ignoring provider-specific configuration options:
`vagrant validate {{[-p|--ignore-provider]}} {{docker|hypervlibvirt|parallels|qemu|virtualbox|vmware_desktop}`
`vagrant validate {{[-p|--ignore-provider]}} {{docker|hypervlibvirt|parallels|qemu|virtualbox|vmware_desktop}}`

View file

@ -21,4 +21,4 @@
- Create a temporary binding:
`sudo keyd bind "{{pressed_key}} = {{output_key}}`
`sudo keyd bind "{{pressed_key}} = {{output_key}}"`

View file

@ -5,7 +5,7 @@
- Convert a PDF page to PNG or JPEG format:
`pstoedit -page {{page_number}} -f magick {{path/to/file.pdf}} {{page.png|page.jpg]}}`
`pstoedit -page {{page_number}} -f magick {{path/to/file.pdf}} {{page.png|page.jpg}}`
- Convert multiple PDF pages to numbered images:

View file

@ -5,7 +5,7 @@
- Capture a photo with different encoding:
`rpicam-still {{[-e|--encoding]}} {{bmp|png|rgb|yuv420}} {{[-o|--output]}} {{path/to/file.{{bmp|png|rgb|yuv420}}}}`
`rpicam-still {{[-e|--encoding]}} {{bmp|png|rgb|yuv420}} {{[-o|--output]}} {{path/to/file.[bmp|png|rgb|yuv420]}}`
- Capture a raw image:

View file

@ -13,7 +13,7 @@
- Set the type of a partition:
`sfdisk --part-type {{path/to/device}}} {{partition_number}} {{swap}}`
`sfdisk --part-type {{path/to/device}} {{partition_number}} {{swap}}`
- Delete a partition:

View file

@ -9,16 +9,16 @@
- Extract a self-extracting binary in the current directory:
`{{./path/to/binary)}}`
`{{./path/to/binary}}`
- Test a self-extracting binary for errors:
`{{./path/to/binary)}} -t`
`{{./path/to/binary}} -t`
- Print content of a file in the self-extracting binary without extraction:
`{{./path/to/binary)}} -c {{path/to/filename}}`
`{{./path/to/binary}} -c {{path/to/filename}}`
- Print comments on Zip archive in the self-extracting binary:
`{{./path/to/binary)}} -z`
`{{./path/to/binary}} -z`