Maas Lalani
03e0c80b0c
docs(examples): Move to PR example to README instead of script
2022-08-01 16:09:45 -04:00
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
Maas Lalani
b95962f5b5
docs(examples): Add script to list and checkout PRs on GitHub
...
Allows listing all PRs on a repository and checkout the selected pull request.
2022-08-01 13:01:54 -04:00
Ayman Bagabas
252081b9ea
fix: man pages binary description ( #65 )
...
* fix: man pages binary description
* Update man/command.go
Co-authored-by: Maas Lalani <maas@lalani.dev>
2022-08-01 11:50:02 -04:00
Maas Lalani
e4c0a69618
fix(filter): Ctrl+H backspaces textinput
...
8f65160828
2022-07-31 13:22:41 -04:00
Christian Muehlhaeuser
0d938497ac
fix: AUR package description
2022-07-31 12:11:14 -04:00
Maas Lalani
b7f04e04ef
docs: brew install gum
2022-07-31 11:49:38 -04:00
Maas Lalani
5c6453b07c
fix(choose): ctrl+c aborts with exit 130
2022-07-30 22:12:59 -04:00
Maas Lalani
f0106b51ae
docs: delete branches example
2022-07-30 22:02:07 -04:00
Maas Lalani
b670c6d674
refactor: bubble up ErrAborted
2022-07-30 21:42:48 -04:00
Maas Lalani
0baa0b98bd
fix(input): ctrl+c exit status 130
2022-07-30 21:29:09 -04:00
Maas Lalani
d324abeab5
refactor: exit package
2022-07-30 21:23:25 -04:00
Christian Muehlhaeuser
6538d726d1
feat: ctrl-c & esc abort filtering
2022-07-30 21:23:25 -04:00
Wissam Youssef
fd788a4dd9
Fixes #23
2022-07-30 19:22:26 -04:00
Maas Lalani
75a10561fa
docs: add filter example with identification (key / value)
2022-07-30 18:14:29 -04:00
Maas Lalani
fd50224627
wip
2022-07-30 18:14:29 -04:00
Maas Lalani
cb590e324e
chore: fix linting
2022-07-30 18:04:26 -04:00
Maas Lalani
61a9219d0a
feat(spin): --show-output
and exit code should match command's
2022-07-30 18:04:26 -04:00
Maas Lalani
c17387b919
fix(choose): Ctrl+C should not return any items if selected
2022-07-30 17:00:07 -04:00
Maas Lalani
c886eb142e
docs: spinner types as code
2022-07-30 16:56:22 -04:00
Maas Lalani
27ebad9ee2
docs: list available spinner types
2022-07-30 16:53:24 -04:00
Maas Lalani
c9caec2c62
fix(filter): TrimSpace
on input
2022-07-30 16:50:28 -04:00
Christian Muehlhaeuser
66993d8ef1
Add soft & hard linter configs & workflows ( #44 )
...
* chore: add linter configs & workflows
* fix: ignore certain linter warnings
* fix: mark errors as intentionally ignored
* fix: avoid unnecessary conversion
* fix: handle template/renderer errors
* fix: mark intentionally unused code
2022-07-30 12:32:59 -04:00
Maas Lalani
e4fc0c2e74
docs: fix commit.sh example to not use bashism
2022-07-29 12:56:32 -04:00
Carlos A Becker
7e3cf1f62f
docs: fix example
2022-07-29 12:55:03 -04:00
Carlos A Becker
757e23120e
fix: demo in readme requires bash
...
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-07-29 12:55:03 -04:00
Maas Lalani
98353ae4d3
docs: Add node.js embedding gum example
2022-07-29 12:34:31 -04:00
Maas Lalani
671777aa59
feat: ability to change default value of confirmation
2022-07-29 12:13:35 -04:00
Maas Lalani
5b7d006487
feat: add --password
option for masked input
2022-07-29 11:21:23 -04:00
Maas Lalani
0927958421
docs: Use #!/bin/sh
instead of #!/bin/bash
2022-07-28 16:24:41 -04:00
Maas Lalani
610e054fb5
feat(filter): add ctrl+j and ctrl+k keybindings
2022-07-28 16:15:32 -04:00
Ayman Bagabas
012948f0b2
feat: add version flag
2022-07-28 14:59:50 -04:00
Maas Lalani
5c53322db9
docs(examples): add posix.sh
2022-07-28 12:22:48 -04:00
Maas Lalani
a1f42d99d4
docs: update readme
2022-07-28 08:52:44 -04:00
Maas Lalani
e0beb050fd
docs: note on gum confirm
exit codes
2022-07-28 08:51:22 -04:00
Maas Lalani
d80b425e80
docs: add gum confirm
to commit.sh script
2022-07-27 18:40:52 -04:00
Maas Lalani
bb3fbab70d
docs: update confirm gif
2022-07-27 17:18:55 -04:00
Christian Rocha
0fefd15009
docs: tiny copy and punctuation improvements
2022-07-27 14:01:25 -07:00
Christian Rocha
bc324efe3e
chore(confirm): increase contrast on selected choice
2022-07-27 12:47:18 -07:00
Christian Rocha
c78ac9cf6b
chore(confirm): bind n and N to the negative response
2022-07-27 12:47:18 -07:00
Christian Rocha
43b8733f93
chore(confirm): also select with tab/shift+tab
2022-07-27 12:47:18 -07:00
Maas Lalani
03760dea3b
docs: yay -S gum-bin
2022-07-27 15:19:43 -04:00
Maas Lalani
279219aadb
chore: bump glamour@master
2022-07-27 14:56:03 -04:00
Maas Lalani
de59d7580d
fix: default to 40
2022-07-27 13:58:34 -04:00
Maas Lalani
44cc74e496
feat: autoresize textinput
2022-07-27 13:56:52 -04:00
Maas Lalani
6d1e4d46cf
fix: border-foreground from showing up in help
2022-07-26 22:44:45 -04:00
Maas Lalani
8d7fed5ac1
fix: use charmbracelet/glamour
2022-07-26 22:34:01 -04:00
Maas Lalani
fa3d3f5404
docs: gum!
2022-07-26 22:00:23 -04:00
Maas Lalani
7c5d7496e2
docs: Add footer separator
2022-07-26 19:29:07 -04:00
Maas Lalani
1c191c7edd
Merge branch 'main' of https://github.com/charmbracelet/gum
2022-07-26 18:34:16 -04:00