fixed some errors in examples

This commit is contained in:
Oliver Tzeng 2023-02-03 21:52:05 +08:00
parent e1e013cd3d
commit 3abc6af291
2 changed files with 3 additions and 3 deletions

View file

@ -16,7 +16,7 @@ clear; echo "What should I do with this information?"; sleep 1
READ="Read"; THINK="Think"; DISCARD="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 "$THINK" <<< "$ACTIONS" && gum spin -s pulse --title "Thinking about your secret..." -- sleep 1

View file

@ -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
# Table
gum table < table/example.csv
gum table < ~/gum/table/example.csv
# Pager
gum pager < README.md
gum pager < ~/gum/README.md
# File
gum file