*: fix quotations in placeholders (#18972)

This commit is contained in:
Managor
2025-10-22 17:19:14 +03:00
committed by GitHub
parent e529af287f
commit aef7c44a46
36 changed files with 57 additions and 57 deletions
+3 -3
View File
@@ -6,12 +6,12 @@
- Observe the first parameter and return value of method, and expand the nested attributes of the object to 4 levels:
`watch {{class-pattern}} {{method-pattern}} {{'{ params[0],returnObj }'}} -x 4`
`watch {{class-pattern}} {{method-pattern}} '{{{ params[0],returnObj }}}' -x 4`
- When the value of the first parameter of the method is 5, the second parameter and return value are output, and the object is expanded 4 layers:
`watch {{class-pattern}} {{method-pattern}} {{'{ params[1],returnObj }'}} {{'"5".equals(params[0])'}} -x 4`
`watch {{class-pattern}} {{method-pattern}} '{{{ params[1],returnObj }}}' '{{"5".equals(params[0])}}' -x 4`
- When the method returns or an exception occurs, observe the count property of the second parameter:
`watch {{class-pattern}} {{method-pattern}} {{'{ params[1].count }'}} -e -s`
`watch {{class-pattern}} {{method-pattern}} '{{{ params[1].count }}}' -e -s`
+1 -1
View File
@@ -13,7 +13,7 @@
- Specify a [C]onfiguration command:
`babeld -C {{'redistribute metric 256'}}`
`babeld -C '{{redistribute metric 256}}'`
- Specify on which interfaces to operate:
+2 -2
View File
@@ -9,8 +9,8 @@
- Print a phrase formatted as [i]mperative verb + past tense [v]erb + [a]djective + plural [N]oun:
`buzzphrase {{'{i} {v} {a} {N}'}}`
`buzzphrase '{{{i} {v} {a} {N}}}'`
- Print `k` phrases formatted as present participle [V]erb + [a]djective + singular [n]oun + [f]inal:
`buzzphrase {{k}} {{'{V} {a} {n} {f}'}}`
`buzzphrase {{k}} '{{{V} {a} {n} {f}}}'`
+1 -1
View File
@@ -17,7 +17,7 @@
- Continue to the next pattern's commands without checking the pattern:
`case {{$ANIMAL}} in {{cat}}) echo {{"It's a cat"}} ;& {{dog}}) {{echo "It's either a dog or cat fell through"}} ;& *) {{echo "Fallback"}} ;; esac`
`case {{$ANIMAL}} in {{cat}}) {{echo "It's a cat"}} ;& {{dog}}) {{echo "It's either a dog or cat fell through"}} ;& *) {{echo "Fallback"}} ;; esac`
- Display help:
+4 -4
View File
@@ -17,19 +17,19 @@
- Create a `www` subdomain pointing to a relative record in the same zone:
`cli53 {{[rc|rrcreate]}} {{example.com}} {{'www 300 CNAME lb'}}`
`cli53 {{[rc|rrcreate]}} {{example.com}} '{{www 300 CNAME lb}}'`
- Create a `www` subdomain pointing to an external address (must end with a dot):
`cli53 {{[rc|rrcreate]}} {{example.com}} {{'www 300 CNAME lb.example.com.'}}`
`cli53 {{[rc|rrcreate]}} {{example.com}} '{{www 300 CNAME lb.example.com.}}'`
- Create a `www` subdomain pointing to an IP address:
`cli53 {{[rc|rrcreate]}} {{example.com}} {{'www 300 A 150.130.110.1'}}`
`cli53 {{[rc|rrcreate]}} {{example.com}} '{{www 300 A 150.130.110.1}}'`
- Replace a `www` subdomain pointing to a different IP:
`cli53 {{[rc|rrcreate]}} --replace {{'www 300 A 150.130.110.2'}}`
`cli53 {{[rc|rrcreate]}} --replace '{{www 300 A 150.130.110.2}}'`
- Delete a record A:
+3 -3
View File
@@ -19,15 +19,15 @@
- Send form-encoded data (POST request of type `application/x-www-form-urlencoded`). Use `--data @file_name` or `--data @'-'` to read from `stdin`:
`curl {{[-X|--request]}} POST {{[-d|--data]}} {{'name=bob'}} {{http://example.com/form}}`
`curl {{[-X|--request]}} POST {{[-d|--data]}} '{{name=bob}}' {{http://example.com/form}}`
- Send a request with an extra header, using a custom HTTP method and over a proxy (such as BurpSuite), ignoring insecure self-signed certificates:
`curl {{[-k|--insecure]}} {{[-x|--proxy]}} {{http://127.0.0.1:8080}} {{[-H|--header]}} {{'Authorization: Bearer token'}} {{[-X|--request]}} {{GET|PUT|POST|DELETE|PATCH|...}} {{https://example.com}}`
`curl {{[-k|--insecure]}} {{[-x|--proxy]}} {{http://127.0.0.1:8080}} {{[-H|--header]}} '{{Authorization: Bearer token}}' {{[-X|--request]}} {{GET|PUT|POST|DELETE|PATCH|...}} {{https://example.com}}`
- Send data in JSON format, specifying the appropriate Content-Type header:
`curl {{[-d|--data]}} {{'{"name":"bob"}'}} {{[-H|--header]}} {{'Content-Type: application/json'}} {{http://example.com/users/1234}}`
`curl {{[-d|--data]}} '{{{"name":"bob"}}}' {{[-H|--header]}} '{{Content-Type: application/json}}' {{http://example.com/users/1234}}`
- Pass client certificate and private key for the request, skipping certificate validation:
+1 -1
View File
@@ -9,7 +9,7 @@
- Scan a URL using a header for authentication:
`dalfox url {{http://example.com}} {{[-H|--header]}} {{'X-My-Header: 123'}}`
`dalfox url {{http://example.com}} {{[-H|--header]}} '{{X-My-Header: 123}}'`
- Scan a list of URLs from a file:
+1 -1
View File
@@ -25,4 +25,4 @@
- Add custom headers as JSON (e.g., '{"X-Custom": "Value"}'):
`dockdiver -url {{https://example.com}} -list -headers {{'{"X-Custom": "Value"}'}}`
`dockdiver -url {{https://example.com}} -list -headers '{{{"X-Custom": "Value"}}}'`
+2 -2
View File
@@ -9,7 +9,7 @@
- Rebuild and test with `make` if any `.c` source files in the current directory change:
`{{ls *.c}} | entr {{'make && make test'}}`
`{{ls *.c}} | entr '{{make && make test}}'`
- Send a `SIGTERM` to any previously spawned ruby subprocesses before executing `ruby main.rb`:
@@ -25,7 +25,7 @@
- Rebuild the project if source files change, limiting output to the first few lines:
`{{find src/}} | entr -s {{'make | sed 10q'}}`
`{{find src/}} | entr -s '{{make | sed 10q}}'`
- Launch and auto-[r]eload a Node.js server:
+1 -1
View File
@@ -17,7 +17,7 @@
- Publish an Electrode Native container to a local Maven repository:
`ern publish-container --publisher {{maven}} --platform {{android}} --extra {{'{"groupId":"com.walmart.ern","artifactId":"quickstart"}'}}`
`ern publish-container --publisher {{maven}} --platform {{android}} --extra '{{{"groupId":"com.walmart.ern","artifactId":"quickstart"}}}'`
- Transform an iOS container into a pre-compiled binary framework:
+1 -1
View File
@@ -25,4 +25,4 @@
- Rename the file, prepending the date and time from metadata (not from the file timestamp):
`exiv2 {{[-r|--rename]}} {{'%Y%m%d_%H%M%S_:basename:'}} {{path/to/file}}`
`exiv2 {{[-r|--rename]}} '{{%Y%m%d_%H%M%S_:basename:}}' {{path/to/file}}`
+1 -1
View File
@@ -14,7 +14,7 @@
- Replace a `regex` in a specific directory in files filtered with a case-insensitive glob pattern:
`fastmod {{regex}} {{replacement}} --dir {{path/to/directory}} --iglob {{'**/*.{js,json}'}}`
`fastmod {{regex}} {{replacement}} --dir {{path/to/directory}} --iglob '{{**/*.{js,json}}}'`
- Replace for an exact string in `.js` or JSON files:
+1 -1
View File
@@ -9,7 +9,7 @@
- Specify an editor to open with:
`fc -e {{'emacs'}}`
`fc -e '{{emacs}}'`
- List recent commands from history:
+2 -2
View File
@@ -21,11 +21,11 @@
- Sign a new session cookie with a secret key:
`flask-unsign {{[-s|--sign]}} {{[-c|--cookie]}} {{"{'logged_in': False}"}} {{[-S|--secret]}} {{secret}}`
`flask-unsign {{[-s|--sign]}} {{[-c|--cookie]}} "{{{'logged_in': False}}}" {{[-S|--secret]}} {{secret}}`
- Sign a session cookie using legacy timestamp (useful for old versions):
`flask-unsign {{[-s|--sign]}} {{[-c|--cookie]}} {{"{'logged_in': False}"}} {{[-S|--secret]}} {{secret}} {{[-l|--legacy]}}`
`flask-unsign {{[-s|--sign]}} {{[-c|--cookie]}} "{{{'logged_in': False}}}" {{[-S|--secret]}} {{secret}} {{[-l|--legacy]}}`
- Brute-force a session cookie with custom threads and no literal evaluation:
+1 -1
View File
@@ -5,7 +5,7 @@
- Select full path and size from temporary or configuration files in a given directory:
`fselect size, path from {{path/to/directory}} where name = {{'*.cfg'}} or name = {{'*.tmp'}}`
`fselect size, path from {{path/to/directory}} where name = '{{*.cfg}}' or name = {{'*.tmp'}}`
- Find square images:
+1 -1
View File
@@ -10,7 +10,7 @@
- Send a request with a header and a body:
`grpcurl -H "{{Authorization: Bearer $token}}" -d {{'{"foo": "bar"}'}} {{grpc.server.com:443}} {{my.custom.server.Service/Method}}`
`grpcurl -H "{{Authorization: Bearer $token}}" -d '{{{"foo": "bar"}}}' {{grpc.server.com:443}} {{my.custom.server.Service/Method}}`
- List all services exposed by a server:
+1 -1
View File
@@ -9,7 +9,7 @@
- Join two files using a comma (instead of a space) as the field separator:
`join -t {{','}} {{path/to/file1}} {{path/to/file2}}`
`join -t '{{,}}' {{path/to/file1}} {{path/to/file2}}`
- Join field3 of file1 with field1 of file2:
+1 -1
View File
@@ -13,7 +13,7 @@
- Provide a custom filename template:
`pageres {{https://example.com/}} {{1024x768}} --filename={{'<%= date %> - <%= url %>'}}`
`pageres {{https://example.com/}} {{1024x768}} --filename='{{<%= date %> - <%= url %>}}'`
- Capture a specific element on a page:
+2 -2
View File
@@ -13,7 +13,7 @@
- Do a case-insensitive search for lines that begin with "foo" and return the first 3 matches:
`pdfgrep {{[-m|--max-count]}} {{3}} {{[-i|--ignore-case]}} {{'^foo'}} {{file.pdf}}`
`pdfgrep {{[-m|--max-count]}} {{3}} {{[-i|--ignore-case]}} '{{^foo}}' {{file.pdf}}`
- Find pattern in files with a `.pdf` extension in the current directory recursively:
@@ -21,4 +21,4 @@
- Find pattern on files that match a specific glob in the current directory recursively:
`pdfgrep {{[-r|--recursive]}} --include {{'*book.pdf'}} {{pattern}}`
`pdfgrep {{[-r|--recursive]}} --include '{{*book.pdf}}' {{pattern}}`
+4 -4
View File
@@ -10,16 +10,16 @@
- Output a WAV [f]ile using a [m]odel and specifying its JSON [c]onfig file:
`echo {{'Thing to say'}} | piper -m {{path/to/model.onnx}} -c {{path/to/model.onnx.json}} -f {{outputfile.wav}}`
`echo {{Thing to say}} | piper -m {{path/to/model.onnx}} -c {{path/to/model.onnx.json}} -f {{outputfile.wav}}`
- Select a particular speaker in a voice with multiple speakers by specifying the speaker's ID number:
`echo {{'Warum?'}} | piper -m {{de_DE-thorsten_emotional-medium.onnx}} --speaker {{1}} -f {{angry.wav}}`
`echo {{Warum?}} | piper -m {{de_DE-thorsten_emotional-medium.onnx}} --speaker {{1}} -f {{angry.wav}}`
- Stream the output to the mpv media player:
`echo {{'Hello world'}} | piper -m {{en_GB-northern_english_male-medium.onnx}} --output-raw -f - | mpv -`
`echo {{Hello world}} | piper -m {{en_GB-northern_english_male-medium.onnx}} --output-raw -f - | mpv -`
- Speak twice as fast, with huge gaps between sentences:
`echo {{'Speaking twice the speed. With added drama!'}} | piper -m {{foo.onnx}} --length_scale {{0.5}} --sentence_silence {{2}} -f {{drama.wav}}`
`echo {{Speaking twice the speed. With added drama!}} | piper -m {{foo.onnx}} --length_scale {{0.5}} --sentence_silence {{2}} -f {{drama.wav}}`
+1 -1
View File
@@ -14,7 +14,7 @@
- Send data to a task's `stdin`:
`pueue send {{task_id}} {{"hello"}}`
`pueue send {{task_id}} "{{hello}}"`
- View a task's `stdout` and `stderr`, as well as basic information about that task:
+1 -1
View File
@@ -17,7 +17,7 @@
- Search for resources in Pulumi Cloud using Pulumi AI with a plaintext natural language query:
`pulumi org search ai {{[-q|--query]}} {{"show me all load balancers in my organization"}}`
`pulumi org search ai {{[-q|--query]}} "{{show me all load balancers in my organization}}"`
- Display help:
+6 -6
View File
@@ -9,24 +9,24 @@
- Connect to a database (e.g. PostgreSQL):
`rsql --url {{"postgresql://user:pass@localhost/mydb"}}`
`rsql --url "{{postgresql://user:pass@localhost/mydb}}"`
- Connect to a PostgreSQL database with SSL:
`rsql --url {{"postgresql://user:pass@localhost/db?sslmode=require"}}`
`rsql --url "{{postgresql://user:pass@localhost/db?sslmode=require}}"`
- Connect to a MySQL database with a specified charset:
`rsql --url {{"mysql://user:pass@localhost/db?charset=utf8mb4"}}`
`rsql --url "{{mysql://user:pass@localhost/db?charset=utf8mb4}}"`
- Run a query and exit:
`rsql --url {{"sqlite://database.db"}} -- "SELECT * FROM users LIMIT 10"`
`rsql --url "{{sqlite://database.db}}" -- "{{SELECT * FROM users LIMIT 10}}"`
- Set default format:
`rsql --url {{"sqlite://db.sqlite"}} --format json`
`rsql --url "{{sqlite://db.sqlite}}" --format json`
- Connect to file and use custom line separator:
`rsql --url {{"delimited://data.txt?separator=|&has_header=true"}}`
`rsql --url "{{delimited://data.txt?separator=|&has_header=true}}"`
+2 -2
View File
@@ -13,8 +13,8 @@
- Find and replace in a specific file (output stream: `stdout`):
`sd {{[-p|--preview]}} {{'window.fetch'}} {{'fetch'}} {{path/to/file.js}}`
`sd {{[-p|--preview]}} '{{window.fetch}}' '{{fetch}}' {{path/to/file.js}}`
- Find and replace in all files in the current project (output stream: `stdout`):
`sd {{'from "react"'}} {{'from "preact"'}} "$(find . -type f)"`
`sd '{{from "react"}}' '{{from "preact"}}' "$(find . -type f)"`
+1 -1
View File
@@ -13,7 +13,7 @@
- Send parameters via POST body with JSON format:
`x8 {{[-u|--url]}} {{https://example.com/}} {{[-X|--method]}} {{POST}} {{[-b|--body]}} {{'{"x":{%s\}\}'}} {{[-w|--wordlist]}} {{path/to/wordlist.txt}}`
`x8 {{[-u|--url]}} {{https://example.com/}} {{[-X|--method]}} {{POST}} {{[-b|--body]}} '{{{"x":{%s\}\}}}' {{[-w|--wordlist]}} {{path/to/wordlist.txt}}`
- Check parameters with a custom template (`%k` for key, `%v` for value):
+1 -1
View File
@@ -13,4 +13,4 @@
- View a CSV file with unconventional delimiters:
`x_x {{[-d|--delimiter]}} {{';'}} {{[-q|--quotechar]}} {{'|'}} {{file.csv}}`
`x_x {{[-d|--delimiter]}} '{{;}}' {{[-q|--quotechar]}} '{{|}}' {{file.csv}}`
+1 -1
View File
@@ -17,7 +17,7 @@
- Delete all files with a `.backup` extension:
`find . -name {{'*.backup'}} | xe rm -v`
`find . -name '{{*.backup}}' | xe rm -v`
- Run up to `max-jobs` processes in parallel; the default is 1. If `max-jobs` is 0, xe will run as many processes as cpu cores:
+1 -1
View File
@@ -9,7 +9,7 @@
- Print the title of all pages found by a Google search and download them:
`xidel {{https://www.google.com/search?q=test}} {{[-f|--follow]}} "{{//a/extract(@href, 'url[?]q=([^&]+)&', 1)[. != '']}}" {{[-e|--extract]}} {{//title}} --download {{'{$host}/'}}`
`xidel {{https://www.google.com/search?q=test}} {{[-f|--follow]}} "{{//a/extract(@href, 'url[?]q=([^&]+)&', 1)[. != '']}}" {{[-e|--extract]}} {{//title}} --download '{{{$host}/}}'`
- Follow all links on a page and print the titles, with XPath:
+1 -1
View File
@@ -13,7 +13,7 @@
- Align two or more sequences, custom tabular output format, output to file:
`blastn -query {{query.fa}} -subject {{subject.fa}} -outfmt {{'6 qseqid qlen qstart qend sseqid slen sstart send bitscore evalue pident'}} -out {{output.tsv}}`
`blastn -query {{query.fa}} -subject {{subject.fa}} -outfmt '{{6 qseqid qlen qstart qend sseqid slen sstart send bitscore evalue pident}}' -out {{output.tsv}}`
- Search nucleotide databases using a nucleotide query, 16 threads (CPUs) to use in the BLAST search, with a maximum number of 10 aligned sequences to keep:
+1 -1
View File
@@ -10,7 +10,7 @@
- Search the protein database using a query and `regex`:
`esearch -db {{protein}} -query {{'Escherichia*'}}`
`esearch -db {{protein}} -query '{{Escherichia*}}'`
- Search the nucleotide database for sequences whose metadata contain insulin and rodents:
+1 -1
View File
@@ -17,7 +17,7 @@
- Set MPV as the default application for all audio files:
`handlr set {{'audio/*'}} {{mpv.desktop}}`
`handlr set '{{audio/*}}' {{mpv.desktop}}`
- List all default apps:
+1 -1
View File
@@ -23,7 +23,7 @@
- Prepend "foo" to all filenames in the current directory:
`rename {{''}} {{'foo'}} {{*}}`
`rename '' '{{foo}}' {{*}}`
- Rename a group of increasingly numbered files zero-padding the numbers up to 3 digits:
+2 -2
View File
@@ -14,11 +14,11 @@
- Add a user-defined rule that labels any path which matches a PCRE `regex`:
`sudo semanage fcontext {{[-a|--add]}} {{[-t|--type]}} {{samba_share_t}} {{'/mnt/share(/.*)?'}}`
`sudo semanage fcontext {{[-a|--add]}} {{[-t|--type]}} {{samba_share_t}} '{{/mnt/share(/.*)?}}'`
- Delete a user-defined rule using its PCRE `regex`:
`sudo semanage fcontext {{[-d|--delete]}} {{'/mnt/share(/.*)?'}}`
`sudo semanage fcontext {{[-d|--delete]}} '{{/mnt/share(/.*)?}}'`
- Relabel a directory recursively by applying the new rules:
+1 -1
View File
@@ -9,7 +9,7 @@
- Set multiple keyboard layouts, their variants and switching option:
`setxkbmap -layout {{us,de}} -variant {{,qwerty}} -option {{'grp:alt_caps_toggle'}}`
`setxkbmap -layout {{us,de}} -variant {{,qwerty}} -option '{{grp:alt_caps_toggle}}'`
- List all layouts:
+1 -1
View File
@@ -21,4 +21,4 @@
- Open the terminal using a Serif font and a font size equal to 20:
`xterm -fa {{'Serif'}} -fs {{20}}`
`xterm -fa '{{Serif}}' -fs {{20}}`
+1 -1
View File
@@ -18,7 +18,7 @@
- Send data in JSON format, specifying the appropriate content-type header:
`Invoke-WebRequest -Body {{'{"name":"bob"}'}} -ContentType 'application/json' {{http://example.com/users/1234}}`
`Invoke-WebRequest -Body '{{{"name":"bob"}}}' -ContentType 'application/json' {{http://example.com/users/1234}}`
- Pass a username and password for server authentication: