gum/spin
Aaron Korte 01c7d96945
feat: pass stderr (#64)
* feat: pass stderr

Pass stderr from the command run by gum spin analog to how stdout is passed.

#63

* Apply suggestions from code review

* Update spin/spin.go

* fix(spin): Add stderr to output

When `--show-output` is passed we should display all the output of the
command and allow scripters to control `stderr` and `stdout` how they
want.

For example, if a user wants only `stdout` they can redirect stderr to
`/dev/null`:

```
gum spin --show-output -- <action> 2> /dev/null
```

Co-authored-by: Maas Lalani <maas@lalani.dev>
2022-08-01 13:24:01 -04:00
..
command.go feat: pass stderr (#64) 2022-08-01 13:24:01 -04:00
options.go feat(spin): --show-output and exit code should match command's 2022-07-30 18:04:26 -04:00
spin.go feat: pass stderr (#64) 2022-08-01 13:24:01 -04:00
spinners.go feat: Add gum spin command 2022-07-07 13:29:10 -04:00