Commit graph

5 commits

Author SHA1 Message Date
Maas Lalani 2320f10278
feat: add stdin input handling and logging helpers 2022-07-07 13:29:10 -04:00
Maas Lalani 454040cf4d
feat: Add gum spin command
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.
2022-07-07 13:29:10 -04:00
Maas Lalani c906d1904d
feat: Add gum search command
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
```
2022-07-07 13:29:10 -04:00
Maas Lalani 2f07eacf50
feat: Add gum input command
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
````
2022-07-07 13:28:52 -04:00
Maas Lalani 92a2d31291
Initial commit 2022-07-06 12:05:45 -04:00