gum Command Examples

Make glamorous shell scripts. More information: https://github.com/charmbracelet/gum.

gum choose "{{option_1}}" "{{option_2}}" "{{option_3}}"

gum input --placeholder "{{value}}"

gum confirm "{{Continue?}}" --default=false --affirmative "{{Yes}}" --negative "{{No}}" {{&& echo "Yes selected" || echo "No selected"}}

gum spin --spinner {{dot|line|minidot|jump|pulse|points|globe|moon|monkey|meter|hamburger}} --title "{{loading...}}" -- {{command}}

gum format -t {{emoji}} "{{:smile: :heart: hello}}"

gum write > {{data.txt}}