From 3abc6af291ede9a47c70a5653237a4d6427d1349 Mon Sep 17 00:00:00 2001 From: Oliver Tzeng Date: Fri, 3 Feb 2023 21:52:05 +0800 Subject: [PATCH] fixed some errors in examples --- examples/demo.sh | 2 +- examples/test.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/demo.sh b/examples/demo.sh index 9a7c3ca..ad31c86 100755 --- a/examples/demo.sh +++ b/examples/demo.sh @@ -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 diff --git a/examples/test.sh b/examples/test.sh index 626aadb..b7ffcef 100755 --- a/examples/test.sh +++ b/examples/test.sh @@ -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