Skip to content
Myr

test.sh

This file

Path

examples/test.sh

52 lines · 2.1 KiB · Shell

Last changed by

Not known.

History of this file

Take it

The walk stopped after 200 commits: lines older than 6837ed2 point at it.

feat(deps): bump github.com/charmbracelet/bubbletea from 0.27.0 to 1.0.0 (#661)dependabot[bot]before adoption6837ed2

lines 1–52why, one step back
1#!/bin/sh
23# Choose4gum choose Foo Bar Baz5gum choose Choose One Item --cursor "* " --cursor.foreground 99 --selected.foreground 996gum choose Pick Two Items Maximum --limit 2 --cursor "* " --cursor-prefix "(•) " --selected-prefix "(x) " --unselected-prefix "( ) " --cursor.foreground 99 --selected.foreground 997gum choose Unlimited Choice Of Items --no-limit --cursor "* " --cursor-prefix "(•) " --selected-prefix "(x) " --unselected-prefix "( ) " --cursor.foreground 99 --selected.foreground 9989# Confirm10gum confirm "Testing?"11gum confirm "No?" --default=false --affirmative "Okay." --negative "Cancel."1213# Filter14gum filter15echo {1..500} | sed 's/ /\n/g' | gum filter16echo {1..500} | sed 's/ /\n/g' | gum filter --indicator ">" --placeholder "Pick a number..." --indicator.foreground 1 --text.foreground 2 --match.foreground 3 --prompt.foreground 4 --height 51718# Format19echo "# Header\nBody" | gum format 20echo 'package main\n\nimport "fmt"\n\nfunc main() {\n\tfmt.Println("Hello, Gum!")\n}\n' | gum format -t code21echo ":candy:" | gum format -t emoji22echo '{{ Bold "Bold" }}' | gum format -t template2324# Input25gum input26gum input --prompt "Email: " --placeholder "john@doe.com" --prompt.foreground 99 --cursor.foreground 99 --width 5027gum input --password --prompt "Password: " --placeholder "hunter2" --prompt.foreground 99 --cursor.foreground 99 --width 502829# Join30gum join "Horizontal" "Join"31gum join --vertical "Vertical" "Join"3233# Spin34gum spin -- sleep 135gum spin --spinner minidot --title "Loading..." --title.foreground 99 -- sleep 136gum spin --show-output --spinner monkey --title "Loading..." --title.foreground 99 -- sh -c 'sleep 1; echo "Hello, Gum!"'3738# Style39gum style --foreground 99 --border double --border-foreground 99 --padding "1 2" --margin 1 "Hello, Gum."4041# Write42gum write43gum write --width 40 --height 6 --placeholder "Type whatever you want" --prompt "| " --show-cursor-line --show-line-numbers --value "Something..." --base.padding 1 --cursor.foreground 99 --prompt.foreground 994445# Table46gum table < table/example.csv4748# Pager49gum pager < README.md5051# File52gum file