Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 27 commits into from
Jul 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pages/common/aws-eks.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
4 changes: 2 additions & 2 deletions pages/common/coproc.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
2 changes: 1 addition & 1 deletion pages/common/d8.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@

- Evaluate a JavaScript expression:

`d8 -e "{{code}}`
`d8 -e "{{code}}"`
2 changes: 1 addition & 1 deletion pages/common/dropdb.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
2 changes: 1 addition & 1 deletion pages/common/for.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
2 changes: 1 addition & 1 deletion pages/common/highlight.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
2 changes: 1 addition & 1 deletion pages/common/hyperfine.md
Original file line number Diff line number Diff line change
Expand Up @@ -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}}}'`
2 changes: 1 addition & 1 deletion pages/common/jello.md
Original file line number Diff line number Diff line change
Expand Up @@ -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):

Expand Down
2 changes: 1 addition & 1 deletion pages/common/kubetail.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
2 changes: 1 addition & 1 deletion pages/common/linode-cli-linodes.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
2 changes: 1 addition & 1 deletion pages/common/mamba-repoquery.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
2 changes: 1 addition & 1 deletion pages/common/phpcbf.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
2 changes: 1 addition & 1 deletion pages/common/quarto.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
2 changes: 1 addition & 1 deletion pages/common/swig.md
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
2 changes: 1 addition & 1 deletion pages/common/trdsql.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`):

Expand Down
2 changes: 1 addition & 1 deletion pages/common/vagrant-validate.md
Original file line number Diff line number Diff line change
Expand Up @@ -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}}`
2 changes: 1 addition & 1 deletion pages/linux/keyd.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@

- Create a temporary binding:

`sudo keyd bind "{{pressed_key}} = {{output_key}}`
`sudo keyd bind "{{pressed_key}} = {{output_key}}"`
2 changes: 1 addition & 1 deletion pages/linux/pstoedit.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
2 changes: 1 addition & 1 deletion pages/linux/rpicam-still.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
2 changes: 1 addition & 1 deletion pages/linux/sfdisk.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
8 changes: 4 additions & 4 deletions pages/linux/unzipsfx.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Loading