Update Spin on README.md

This commit is contained in:
Rose Thatcher 2023-03-10 13:10:45 -06:00 committed by GitHub
parent 27d235b03c
commit 28fa08424f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -294,10 +294,14 @@ gum pager < README.md
Display a spinner while running a script or command. The spinner will
automatically stop after the given command exits.
To view the command's output, use the `--show-output` flag.
To view output in real-time add the `--live-output` flag as well.
```bash
gum spin --spinner dot --title "Buying Bubble Gum..." -- sleep 5
```
<img src="https://stuff.charm.sh/gum/spin.gif" width="600" alt="Shell running gum spin while sleeping for 5 seconds" />
Available spinner types include: `line`, `dot`, `minidot`, `jump`, `pulse`, `points`, `globe`, `moon`, `monkey`, `meter`, `hamburger`.