Style provides a shell script interface for Lip Gloss. It allows you to
use Lip Gloss to style text without needing to use Go. All of the
styling options are available as flags.
Let's make some text glamorous using bash:
```
gum style \
--foreground "#FF06B7" --border "double" \
--margin 2 --padding "2 4" --width 50 \
"And oh gosh, how delicious the fabulous frizzy frobscottle" \
"was! It was sweet and refreshing. It tasted of vanilla and" \
"cream, with just the faintest trace of raspberries on the" \
"edge of the flavour. And the bubbles were wonderful."
```
Output:
```
╔══════════════════════════════════════════════════╗
║ ║
║ ║
║ And oh gosh, how delicious the fabulous ║
║ frizzy frobscottle was It was sweet and ║
║ refreshing. It tasted of vanilla and ║
║ cream, with just the faintest trace of ║
║ raspberries on the edge of the flavour. ║
║ And the bubbles were wonderful. ║
║ ║
║ ║
╚══════════════════════════════════════════════════╝
```
Spin provides a shell script interface for the spinner bubble. It is
useful for displaying that some task is running in the background while
consuming it's output so that it is not shown to the user.
For example, let's do a long running task:
```
sleep 5
```
We can simply prepend a spinner to this task to show it to the user,
while performing the task / command in the background.
```
gum spin -t "Taking a nap..." -- sleep 5
```
The spinner will automatically exit when the task is complete.
Search provides a fuzzy searching text input to allow filtering a list
of options to select one option.
i.e. Let's pick from a list of gum flavors:
```
cat flavors.text | gum search
```
Input provides a shell script interface for the text input bubble. It
can be used to prompt the user for some input. The text the user entered
will be sent to `stdout`.
```
gum input --placeholder "What's your Bubble Gum flavor?" > answer.text
````