*: standardize filepaths (#18569)

This commit is contained in:
Managor
2025-10-09 06:57:08 +03:00
committed by GitHub
parent a8811cbb75
commit f734fa1c82
25 changed files with 43 additions and 43 deletions
+1 -1
View File
@@ -13,4 +13,4 @@
- Read image from `stdin`:
`crane export - {{path/to/filename}}`
`crane export - {{path/to/file}}`
+1 -1
View File
@@ -9,7 +9,7 @@
- Path to file with list of published image references:
`crane push {{path/to/tarball}} {{image_name}} --image-refs {{path/to/filename}}`
`crane push {{path/to/tarball}} {{image_name}} --image-refs {{path/to/file}}`
- Push a collection of images as a single index (required if path has multiple images):
+1 -1
View File
@@ -9,7 +9,7 @@
- Specify the output filename:
`csc /out:{{path/to/filename}} {{path/to/input_file.cs}}`
`csc /out:{{path/to/file}} {{path/to/input_file.cs}}`
- Compile into a `.dll` library instead of an executable:
+1 -1
View File
@@ -9,7 +9,7 @@
- Upload a file to a bucket:
`exo storage put {{file_path}} {{bucket_name}}/{{prefix/}}`
`exo storage put {{path/to/file}} {{bucket_name}}/{{prefix/}}`
- List the objects within a bucket:
+1 -1
View File
@@ -6,4 +6,4 @@
- Create a new repository in a named file:
`fossil init {{path/to/filename}}`
`fossil init {{path/to/file}}`
+1 -1
View File
@@ -21,7 +21,7 @@
- Path to a file containing a commit-msg:
`gitlint --msg-filename {{path/to/filename}}`
`gitlint --msg-filename {{path/to/file}}`
- Read staged commit meta-info from the local repository:
+4 -4
View File
@@ -5,16 +5,16 @@
- Update the value of a path:
`gnmic {{[-a|--address]}} {{ip:port}} set --update-path {{path}} --update-value {{value}}`
`gnmic {{[-a|--address]}} {{ip:port}} set --update-path {{path/to/directory}} --update-value {{value}}`
- Update the value of a path to match the contents of a JSON file:
`gnmic {{[-a|--address]}} {{ip:port}} set --update-path {{path}} --update-file {{filepath}}`
`gnmic {{[-a|--address]}} {{ip:port}} set --update-path {{path/to/directory}} --update-file {{path/to/file}}`
- Replace the value of a path to match the contents of a JSON file:
`gnmic {{[-a|--address]}} {{ip:port}} set --replace-path {{path}} --replace-file {{filepath}}`
`gnmic {{[-a|--address]}} {{ip:port}} set --replace-path {{path/to/directory}} --replace-file {{path/to/file}}`
- Delete the node at a given path:
`gnmic {{[-a|--address]}} {{ip:port}} set --delete {{path}}`
`gnmic {{[-a|--address]}} {{ip:port}} set --delete {{path/to/directory}}`
+1 -1
View File
@@ -13,7 +13,7 @@
- Set the output format by executing a command before loading the definition file:
`gnuplot -e "{{set output "path/to/filename.png" size 1024,768}}" {{path/to/definition.plt}}`
`gnuplot -e "{{set output "path/to/file.png" size 1024,768}}" {{path/to/definition.plt}}`
- Persist the graph plot preview window after gnuplot exits:
+4 -4
View File
@@ -10,15 +10,15 @@
- Export an SVG file into a bitmap with the default format (PNG) and the default resolution (96 DPI):
`inkscape {{path/to/file.svg}} {{[-o|--export-filename]}} {{path/to/filename.png}}`
`inkscape {{path/to/file.svg}} {{[-o|--export-filename]}} {{path/to/file.png}}`
- Export an SVG file into a bitmap of 600x400 pixels (aspect ratio distortion may occur):
`inkscape {{path/to/file.svg}} {{[-o|--export-filename]}} {{path/to/filename.png}} {{[-w|--export-width]}} 600 {{[-h|--export-height]}} 400`
`inkscape {{path/to/file.svg}} {{[-o|--export-filename]}} {{path/to/file.png}} {{[-w|--export-width]}} 600 {{[-h|--export-height]}} 400`
- Export the drawing (bounding box of all objects) of an SVG file into a bitmap:
`inkscape {{path/to/file.svg}} {{[-o|--export-filename]}} {{path/to/filename.png}} {{[-D|--export-area-drawing]}}`
`inkscape {{path/to/file.svg}} {{[-o|--export-filename]}} {{path/to/file.png}} {{[-D|--export-area-drawing]}}`
- Export a single object, given its ID, into a bitmap:
@@ -26,7 +26,7 @@
- Export an SVG document to PDF, converting all texts to paths:
`inkscape {{path/to/file.svg}} {{[-o|--export-filename]}} {{path/to/filename.pdf}} {{[-T|--export-text-to-path]}}`
`inkscape {{path/to/file.svg}} {{[-o|--export-filename]}} {{path/to/file.pdf}} {{[-T|--export-text-to-path]}}`
- Duplicate the object with id="path123", rotate the duplicate 90 degrees, save the file, and quit Inkscape:
+4 -4
View File
@@ -5,19 +5,19 @@
- Analyze the dependencies of a `.jar` or `.class` file:
`jdeps {{path/to/filename.class}}`
`jdeps {{path/to/file.class}}`
- Print a summary of all dependencies of a specific `.jar` file:
`jdeps {{path/to/filename.jar}} -summary`
`jdeps {{path/to/file.jar}} -summary`
- Print all class-level dependencies of a `.jar` file:
`jdeps {{path/to/filename.jar}} -verbose`
`jdeps {{path/to/file.jar}} -verbose`
- Output the results of the analysis in a DOT file into a specific directory:
`jdeps {{path/to/filename.jar}} -dotoutput {{path/to/directory}}`
`jdeps {{path/to/file.jar}} -dotoutput {{path/to/directory}}`
- Display help:
+4 -4
View File
@@ -6,7 +6,7 @@
- Apply a configuration to a resource by file name:
`kubectl apply {{[-f|--filename]}} {{path/to/filename}}`
`kubectl apply {{[-f|--filename]}} {{path/to/file}}`
- Apply a configuration to a resource from `kustomization.yaml` in a directory:
@@ -18,12 +18,12 @@
- Edit the latest last-applied-configuration annotations of resources from the default editor:
`kubectl apply edit-last-applied {{[-f|--filename]}} {{path/to/filename}}`
`kubectl apply edit-last-applied {{[-f|--filename]}} {{path/to/file}}`
- Set the latest last-applied-configuration annotations by setting it to match the contents of a file:
`kubectl apply set-last-applied {{[-f|--filename]}} {{path/to/filename}}`
`kubectl apply set-last-applied {{[-f|--filename]}} {{path/to/file}}`
- View the latest last-applied-configuration annotations by type/name or file:
`kubectl apply view-last-applied {{[-f|--filename]}} {{path/to/filename}}`
`kubectl apply view-last-applied {{[-f|--filename]}} {{path/to/file}}`
+4 -4
View File
@@ -9,19 +9,19 @@
- Print a file to the default printer:
`lp {{path/to/filename}}`
`lp {{path/to/file}}`
- Print a file to a named printer (see `lpstat` command):
`lp -d {{printer_name}} {{path/to/filename}}`
`lp -d {{printer_name}} {{path/to/file}}`
- Print `n` copies of a file to the default printer:
`lp -n {{n}} {{path/to/filename}}`
`lp -n {{n}} {{path/to/file}}`
- Print only certain pages to the default printer (print pages 1, 3-5, and 16):
`lp -P 1,3-5,16 {{path/to/filename}}`
`lp -P 1,3-5,16 {{path/to/file}}`
- Resume printing a job:
+1 -1
View File
@@ -14,7 +14,7 @@
- Send an email that contains file content:
`mail --subject "{{$HOSTNAME filename.txt}}" {{to_user@example.com}} < {{path/to/filename.txt}}`
`mail < {{path/to/file.txt}} --subject "{{$HOSTNAME filename.txt}}" {{to_user@example.com}}`
- Send a `tar.gz` file as an attachment:
+1 -1
View File
@@ -26,7 +26,7 @@
- Load a database from a specified archive file through `stdin`:
`neo4j-admin database load --from-stdin {{database_name}} --overwrite-destination=true < {{path/to/filename.dump}}`
`neo4j-admin < {{path/to/file.dump}} database load --from-stdin {{database_name}} --overwrite-destination=true`
- Display help:
+1 -1
View File
@@ -14,7 +14,7 @@
- Build the default package from a flake in some directory:
`nix build {{./path/to/directory}}`
`nix build {{path/to/directory}}`
- Build a package without making the `result` symlink, instead printing the store path to the `stdout`:
+1 -1
View File
@@ -9,7 +9,7 @@
- Install a package from a flake on GitHub into a custom profile:
`nix profile install {{github:owner/repo/pkg}} --profile {{./path/to/directory}}`
`nix profile install {{github:owner/repo/pkg}} --profile {{path/to/directory}}`
- List packages currently installed in the default profile:
+1 -1
View File
@@ -25,4 +25,4 @@
- Capture a screenshot of a local file:
`pageres {{local_file_path.html}} {{1366x768}}`
`pageres {{path/to/local_file.html}} {{1366x768}}`
+1 -1
View File
@@ -21,7 +21,7 @@
- Restore world data from a backup:
`papermc restore {{path/to/filename}}`
`papermc restore {{path/to/file}}`
- Display help:
+1 -1
View File
@@ -5,7 +5,7 @@
- Import an existing patch from a file:
`quilt import {{path/to/filename.patch}}`
`quilt import {{path/to/file.patch}}`
- Create a new patch:
+1 -1
View File
@@ -5,7 +5,7 @@
- Specify the target OVA file:
`VBoxManage export --output {{path/to/filename.ova}}`
`VBoxManage export --output {{path/to/file.ova}}`
- Export in OVF 0.9 legacy mode:
+3 -3
View File
@@ -5,12 +5,12 @@
- Register an existing VM:
`VBoxManage registervm {{path/to/filename.vbox}}`
`VBoxManage registervm {{path/to/file.vbox}}`
- Supply the encryption password file of the VM:
`VBoxManage registervm {{path/to/filename.vbox}} --password {{path/to/password_file}}`
`VBoxManage registervm {{path/to/file.vbox}} --password {{path/to/password_file}}`
- Prompt for the encryption password on the command-line:
`VBoxManage registervm {{path/to/filename.vbox}} --password -`
`VBoxManage registervm {{path/to/file.vbox}} --password -`
+1 -1
View File
@@ -13,4 +13,4 @@
- Read a man page in a `.deb` [f]ile:
`debman -f {{path/to/filename.deb}} {{command}}`
`debman -f {{path/to/file.deb}} {{command}}`
+1 -1
View File
@@ -9,7 +9,7 @@
- Create a NixOS container with a specific configuration file:
`sudo nixos-container create {{container_name}} --config-file {{nix_config_file_path}}`
`sudo nixos-container create {{container_name}} --config-file {{path/to/nix_config_file}}`
- Start, stop, terminate, or destroy a specific container:
+1 -1
View File
@@ -17,7 +17,7 @@
- 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/file}}`
- Print comments on Zip archive in the self-extracting binary:
+2 -2
View File
@@ -9,7 +9,7 @@
- Verify cryptographic signatures of a package file:
`pkgutil --check-signature {{path/to/filename.pkg}}`
`pkgutil --check-signature {{path/to/file.pkg}}`
- List all the files for an installed package given its ID:
@@ -17,4 +17,4 @@
- Extract the contents of a package file into a directory:
`pkgutil --expand-full {{path/to/filename.pkg}} {{path/to/directory}}`
`pkgutil --expand-full {{path/to/file.pkg}} {{path/to/directory}}`