mirror of
https://github.com/charmbracelet/gum
synced 2026-03-14 13:45:45 +01:00
docs: update flags --color to --x.foreground
This commit is contained in:
parent
00ba1f77a7
commit
3e950970bb
2 changed files with 3 additions and 3 deletions
|
|
@ -25,7 +25,7 @@ gum style --foreground 212 --padding "1 4" \
|
|||
"Nice to meet you, $NAME."
|
||||
|
||||
# Do some work while spinning
|
||||
gum spin --title "Taking a nap..." --color 212 -- sleep 5
|
||||
gum spin --title "Taking a nap..." --title.foreground 212 -- sleep 5
|
||||
|
||||
# Fuzzy find a file or directory
|
||||
find . -type f | gum filter
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ COLOR=$(gum input --placeholder "What is your favorite color? (#HEX)")
|
|||
|
||||
echo "Wait a moment, while I think of my favorite color..."
|
||||
|
||||
gum spin --title "Thinking..." --color 212 -- sleep 3
|
||||
gum spin --title "Thinking..." -- sleep 3
|
||||
|
||||
echo "I like $(gum style --padding "0 1" --background $COLOR $COLOR), too. In fact, it's my $(gum style --padding "0 1" --background $COLOR 'favorite color!')"
|
||||
|
||||
|
|
@ -31,7 +31,7 @@ Orange" | gum filter)
|
|||
|
||||
echo "One sec, while I finish my drink."
|
||||
|
||||
gum spin --title "Chewing some $GUM bubble gum..." --color 212 -- sleep 5
|
||||
gum spin --title "Chewing some $GUM bubble gum..." -- sleep 5
|
||||
|
||||
gum style --width 50 --padding "1 5" --margin "1 2" --border double --border-foreground 212 \
|
||||
"Well, it was nice meeting you, $(gum style --foreground 212 "$NAME"). Hope to see you soon!"\
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue