mirror of
https://github.com/charmbracelet/gum
synced 2024-06-20 06:25:08 +02:00
fixed some errors in examples
This commit is contained in:
parent
e1e013cd3d
commit
3abc6af291
|
@ -16,7 +16,7 @@ clear; echo "What should I do with this information?"; sleep 1
|
||||||
READ="Read"; THINK="Think"; DISCARD="Discard"
|
READ="Read"; THINK="Think"; DISCARD="Discard"
|
||||||
ACTIONS=$(gum choose --cursor-prefix "[ ] " --selected-prefix "[✓] " --no-limit "$READ" "$THINK" "$DISCARD")
|
ACTIONS=$(gum choose --cursor-prefix "[ ] " --selected-prefix "[✓] " --no-limit "$READ" "$THINK" "$DISCARD")
|
||||||
|
|
||||||
clear; echo "One moment, please."
|
clear; echo "One moment, please."; sleep 1
|
||||||
|
|
||||||
grep -q "$READ" <<< "$ACTIONS" && gum spin -s line --title "Reading the secret..." -- sleep 1
|
grep -q "$READ" <<< "$ACTIONS" && gum spin -s line --title "Reading the secret..." -- sleep 1
|
||||||
grep -q "$THINK" <<< "$ACTIONS" && gum spin -s pulse --title "Thinking about your secret..." -- sleep 1
|
grep -q "$THINK" <<< "$ACTIONS" && gum spin -s pulse --title "Thinking about your secret..." -- sleep 1
|
||||||
|
|
|
@ -43,10 +43,10 @@ gum write
|
||||||
gum write --width 40 --height 3 --placeholder "Type whatever you want" --prompt "| " --show-cursor-line --show-line-numbers --value "Something..." --base.padding 1 --cursor.foreground 99 --prompt.foreground 99
|
gum write --width 40 --height 3 --placeholder "Type whatever you want" --prompt "| " --show-cursor-line --show-line-numbers --value "Something..." --base.padding 1 --cursor.foreground 99 --prompt.foreground 99
|
||||||
|
|
||||||
# Table
|
# Table
|
||||||
gum table < table/example.csv
|
gum table < ~/gum/table/example.csv
|
||||||
|
|
||||||
# Pager
|
# Pager
|
||||||
gum pager < README.md
|
gum pager < ~/gum/README.md
|
||||||
|
|
||||||
# File
|
# File
|
||||||
gum file
|
gum file
|
||||||
|
|
Loading…
Reference in a new issue