demo.sh
This file
The walk stopped after 200 commits: lines older than 6837ed2 point at it.
feat(deps): bump github.com/charmbracelet/bubbletea from 0.27.0 to 1.0.0 (#661)dependabot[bot]before adoption6837ed2
lines 1–47why, one step back1#!/bin/bash23gum style --border normal --margin "1" --padding "1 2" --border-foreground 212 "Hello, there! Welcome to $(gum style --foreground 212 'Gum')."4NAME=$(gum input --placeholder "What is your name?")56echo -e "Well, it is nice to meet you, $(gum style --foreground 212 "$NAME")."78sleep 1; clear910echo -e "Can you tell me a $(gum style --italic --foreground 99 'secret')?\n"1112gum write --placeholder "I'll keep it to myself, I promise!" > /dev/null # we keep the secret to ourselves1314clear; echo "What should I do with this information?"; sleep 11516READ="Read"; THINK="Think"; DISCARD="Discard"17ACTIONS=$(gum choose --no-limit "$READ" "$THINK" "$DISCARD")1819clear; echo "One moment, please."2021grep -q "$READ" <<< "$ACTIONS" && gum spin -s line --title "Reading the secret..." -- sleep 122grep -q "$THINK" <<< "$ACTIONS" && gum spin -s pulse --title "Thinking about your secret..." -- sleep 123grep -q "$DISCARD" <<< "$ACTIONS" && gum spin -s monkey --title " Discarding your secret..." -- sleep 22425sleep 1; clear2627GUM=$(echo -e "Cherry\nGrape\nLime\nOrange" | gum filter --placeholder "Favorite flavor?")28echo "I'll keep that in mind!"2930sleep 1; clear3132echo "Do you like $(gum style --foreground "#04B575" "Bubble Gum?")"33sleep 13435CHOICE=$(gum choose --item.foreground 250 "Yes" "No" "It's complicated")3637[[ "$CHOICE" == "Yes" ]] && echo "I thought so, $(gum style --bold "Bubble Gum") is the best." || echo "I'm sorry to hear that."3839sleep 14041gum spin --title "Chewing some $(gum style --foreground "#04B575" "$GUM") bubble gum..." -- sleep 2.54243clear4445NICE_MEETING_YOU=$(gum style --height 5 --width 20 --padding '1 3' --border double --border-foreground 57 "Nice meeting you, $(gum style --foreground 212 "$NAME"). See you soon!")46CHEW_BUBBLE_GUM=$(gum style --width 17 --padding '1 3' --border double --border-foreground 212 "Go chew some $(gum style --foreground "#04B575" "$GUM") bubble gum.")47gum join --horizontal "$NICE_MEETING_YOU" "$CHEW_BUBBLE_GUM"