docs: update flags --color to --x.foreground

This commit is contained in:
Maas Lalani 2022-07-16 00:23:05 -04:00
commit 3e950970bb
No known key found for this signature in database
GPG key ID: 5A6ED5CBF1A0A000
2 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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!"\