Update cheatsheets

This commit is contained in:
ivuorinen
2025-09-08 00:20:21 +00:00
parent 15906413e1
commit ad2dc48e1b
11 changed files with 43 additions and 7 deletions

View File

@@ -7,11 +7,11 @@ source: https://github.com/tldr-pages/tldr.git
> Make glamorous shell scripts.
> See also: `whiptail`, `dialog`.
> More information: <https://github.com/charmbracelet/gum>.
> More information: <https://github.com/charmbracelet/gum#tutorial>.
- Interactively pick a specific option to print to `stdout`:
`gum choose "{{option_1}}" "{{option_2}}" "{{option_3}}"`
`gum choose {{"option1" "option2" "..."}}`
- Open an interactive prompt for the user to input a string with a specific placeholder:
@@ -23,12 +23,12 @@ source: https://github.com/tldr-pages/tldr.git
- Show a spinner while a command is taking place with text alongside:
`gum spin {{[-s|--spinner]}} {{dot|line|minidot|jump|pulse|points|globe|moon|monkey|meter|hamburger}} --title "{{loading...}}" -- {{command}}`
`gum spin {{[-s|--spinner]}} {{dot|line|minidot|jump|pulse|points|globe|moon|monkey|meter|hamburger}} --title "{{loading...}}" {{command}}`
- Format text to include emojis:
`gum format {{[-t|--type]}} {{emoji}} "{{:smile: :heart: hello}}"`
- Interactively prompt for multi-line text (`<Ctrl d>` to save) and write to `data.txt`:
- Interactively prompt for multi-line text and write the input to a file:
`gum write > {{data.txt}}`
`gum write > {{path/to/file}}`