Commit graph

28 commits

Author SHA1 Message Date
Maas Lalani 76582446ec
fix: add error printing back 2023-11-29 11:00:43 -05:00
Maas Lalani 01a66511a1
Hide Style Flags consistently (#457)
* refactor: hide style flags on error to not clutter usage

* docs(style): add comment regarding dynamically hiding flags
2023-11-28 14:17:57 -05:00
Kenny Parnell fb6849ca16
Add --select-if-one flag to choose/filter. (#398)
* Add `--select-if-one` flag to `choose`/`filter`.

* Remove accidental commit of other changes.

* fix: use o.Options

---------

Co-authored-by: Maas Lalani <maas@lalani.dev>
2023-11-28 12:34:50 -05:00
Kenny Parnell f5b09a434a
Switch to termenv.EnvColorProfile() (#387)
* Switch to termenv.EnvColorProfile()

This will allow users to set `NO_COLOR` and `CLICOLOR_FORCE` when they need to override the detected values.

* Update main.go
2023-07-20 14:14:31 -04:00
Maas Lalani 0f0f8e9189 fix: detect stderr color profile 2023-03-27 12:00:24 -04:00
Maas Lalani e0bcab8608 fix: remove truecolor 2023-03-27 12:00:24 -04:00
Maas Lalani 2bea4dc030 feat(file): gum file to pick files 2022-10-07 15:38:48 -04:00
Maas Lalani 430ab459d7 feat(pager): gum pager for scrolling through long documents 2022-10-07 15:38:48 -04:00
Maas Lalani 1479184f3f fix: satisfy all linters 2022-08-05 02:33:40 -04:00
Maas Lalani a4362dc317
docs: use common tagline
A tool for glamorous shell scripts.
2022-08-02 16:48:43 -04:00
Maas Lalani b670c6d674 refactor: bubble up ErrAborted 2022-07-30 21:42:48 -04:00
Christian Muehlhaeuser 6538d726d1 feat: ctrl-c & esc abort filtering 2022-07-30 21:23:25 -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
Ayman Bagabas 012948f0b2 feat: add version flag 2022-07-28 14:59:50 -04:00
Maas Lalani 108a680385
feat: gum confirm 2022-07-26 15:43:26 -04:00
Maas Lalani 6ee9247b94
refactor(variables): place on new lines 2022-07-21 11:27:36 -04:00
Maas Lalani 5a1195dda5
fix: choose prefixes and pink gum text 2022-07-14 10:37:22 -04:00
Maas Lalani 7190822247
refactor(kong): Implement Run(...) error interface
Instead of needing to run the commands manually in main.go, we can implement the `Run(...) error` method to satisfy the command interface so that `kong` can Run our commands for us.
2022-07-12 22:33:52 -04:00
Maas Lalani bf8d9964df
feat: allow initial values of input and write to be set via stdin 2022-07-12 16:30:17 -04:00
Maas Lalani 02e925ea57
refactor: use embedded style struct for all lipgloss styling
This commit uses the embedded style struct for styling in all components. The most notable example is `gum write` where there are many styles that are used and composed for each component of the command.
2022-07-12 16:08:33 -04:00
Maas Lalani 46ddc28ae5
feat: gum choose, pick from a list of choices
gum choose allows the user to be prompted for a choice from a list of choices.

For example, let's ask the user to pick a card from a deck.
gum choose --height 15 {Ace,King,Queen,Jack,Ten,Nine,Eight,Seven,Six,Five,Four,Three,Two}" of "{Spades,Hearts,Clubs,Diamonds}
2022-07-11 16:26:23 -04:00
Maas Lalani 901e367fe2
refactor: rename gum search to gum filter 2022-07-08 13:58:14 -04:00
Maas Lalani 53aa5c6a90
feat: Add gum join command 2022-07-07 19:32:21 -04:00
Maas Lalani 9f4f9ecbf1
refactor: rename to gum 2022-07-07 14:59:27 -04:00
Maas Lalani a0e2cda3cb
feat: Add gum write command
Write provides a shell script interface for the text area bubble. It can
be used to ask the user to write some long form of text (multi-line)
input. The text the user entered will be sent to stdout.

```
gum write > output.text
```
2022-07-07 13:29:11 -04:00
Maas Lalani 25a12fbbc6
feat: gum style can take multiple arguments 2022-07-07 13:29:10 -04:00
Maas Lalani 12cde525ee
fix: searching should clear options when selected 2022-07-07 13:29:10 -04:00
Maas Lalani 92a2d31291
Initial commit 2022-07-06 12:05:45 -04:00