diff --git a/tldr/$ b/tldr/$ index bc3b1e7c..ff7a4f35 100644 --- a/tldr/$ +++ b/tldr/$ @@ -3,7 +3,7 @@ syntax: markdown tags: [tldr, common] source: https://github.com/tldr-pages/tldr.git --- -# Dollar sign +# $ > Expand a Bash variable. > More information: . diff --git a/tldr/% b/tldr/% index c3c60361..3ac83105 100644 --- a/tldr/% +++ b/tldr/% @@ -3,7 +3,7 @@ syntax: markdown tags: [tldr, common] source: https://github.com/tldr-pages/tldr.git --- -# Percent sign +# % > Manage jobs. > More information: . diff --git a/tldr/, b/tldr/, index ce6bbabd..c2009ec8 100644 --- a/tldr/, +++ b/tldr/, @@ -3,7 +3,7 @@ syntax: markdown tags: [tldr, common] source: https://github.com/tldr-pages/tldr.git --- -# Comma +# , > Run commands without installing them. > More information: . diff --git a/tldr/^ b/tldr/^ index 699f2ce2..488a4f2e 100644 --- a/tldr/^ +++ b/tldr/^ @@ -3,7 +3,7 @@ syntax: markdown tags: [tldr, common] source: https://github.com/tldr-pages/tldr.git --- -# Caret +# ^ > Bash builtin to quick substitute a string in the previous command and run the result. > Equivalent to `!!:s^string1^string2`. diff --git a/tldr/devpod b/tldr/devpod new file mode 100644 index 00000000..7e5cf6f6 --- /dev/null +++ b/tldr/devpod @@ -0,0 +1,37 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# devpod + +> Launch reproducible development environments using Docker, Kubernetes, or SSH. +> More information: . + +- Add a provider such as Docker or Kubernetes: + +`devpod provider add {{provider_name}}` + +- List all available providers: + +`devpod provider list-available` + +- Start a workspace from a GitHub repository with a specific IDE: + +`devpod up {{github.com/user/repo}} {{[-i|--ide]}} {{vscode}}` + +- Start a workspace from a local directory: + +`devpod up {{path/to/project}}` + +- Recreate an existing workspace: + +`devpod up {{workspace_name}} {{[-r|--recreate]}}` + +- Reset a workspace to a clean state: + +`devpod up {{workspace_name}} {{[-x|--reset]}}` + +- Add a custom provider from a GitHub repository: + +`devpod provider add {{org/provider-repo}}` diff --git a/tldr/rustfmt b/tldr/rustfmt index 2f3f6ec6..90b43347 100644 --- a/tldr/rustfmt +++ b/tldr/rustfmt @@ -19,3 +19,11 @@ source: https://github.com/tldr-pages/tldr.git - Backup any modified files before formatting (the original file is renamed with a `.bk` extension): `rustfmt --backup {{path/to/source.rs}}` + +- Format code using a specific Rust style edition (formatting rules) verbosely: + +`rustfmt --style-edition {{2015|2018|2021|2024}} {{[-v|--verbose]}} {{path/to/source1.rs path/to/source2.rs ...}}` + +- Format code using a specific Rust edition (language features and parsing): + +`rustfmt --edition {{2015|2018|2021|2024}} {{path/to/source1.rs path/to/source2.rs ...}}` diff --git a/tldr/vcluster b/tldr/vcluster new file mode 100644 index 00000000..52e1ef30 --- /dev/null +++ b/tldr/vcluster @@ -0,0 +1,41 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# vcluster + +> Create and manage lightweight virtual Kubernetes clusters in namespaces. +> More information: . + +- Create a virtual cluster in a specific namespace: + +`vcluster create {{vcluster_name}} {{[-n|--namespace]}} {{namespace}}` + +- Connect to a virtual cluster with a local port and insecure mode: + +`vcluster connect {{vcluster_name}} {{[-n|--namespace]}} {{namespace}} --local-port {{port}} --insecure` + +- List all virtual clusters: + +`vcluster list` + +- Delete a virtual cluster: + +`vcluster delete {{vcluster_name}}` + +- List platform-managed virtual clusters: + +`vcluster platform list` + +- Create a platform-managed virtual cluster: + +`vcluster platform create {{vcluster_name}} {{[-n|--namespace]}} {{namespace}}` + +- Connect to a platform-managed virtual cluster: + +`vcluster platform connect {{vcluster_name}} {{[-n|--namespace]}} {{namespace}}` + +- Delete a platform-managed virtual cluster: + +`vcluster platform delete {{vcluster_name}} {{[-n|--namespace]}} {{namespace}}` diff --git a/tldr/{ b/tldr/{ index 104d6048..304e26d0 100644 --- a/tldr/{ +++ b/tldr/{ @@ -3,7 +3,7 @@ syntax: markdown tags: [tldr, common] source: https://github.com/tldr-pages/tldr.git --- -# Curly brace +# { > Multipurpose shell syntax. > More information: . diff --git a/tldr/~ b/tldr/~ index 47aa8a8d..2458114a 100644 --- a/tldr/~ +++ b/tldr/~ @@ -3,7 +3,7 @@ syntax: markdown tags: [tldr, common] source: https://github.com/tldr-pages/tldr.git --- -# Tilde +# ~ > Expand to a directory. > More information: .