Commit Graph

27 Commits

Author SHA1 Message Date
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
Ayman Bagabas
7d51fd8b73
feat: add log command (#449)
* feat: add log command

* fix: lint

* refactor: remove switch

* fix: use one level style embed

* fix(log): lint

* Update log/command.go

Co-authored-by: Ayman Bagabas <ayman.bagabas@gmail.com>

---------

Co-authored-by: Maas Lalani <maas@lalani.dev>
2023-11-08 10:43:50 -05:00
Dieter Eickstaedt
eef6431d7c
feat: Timeout for Confirm Command (#383)
* feat: Timeout for Confirm Command

* fix: comment

---------

Co-authored-by: Maas Lalani <maas@lalani.dev>
2023-06-30 09:20:33 -04:00
Maas Lalani
b6f739d7d1
refactor: use exit.StatusAborted, unexport heightOffset 2023-06-29 16:36:47 -04:00
Dieter Eickstaedt
ae1da5d329
Feature/218/adding timeout option (#379)
* feat: Adding timeout option in preparation for coming timeout features in all commands

* feat: Adding timeout option in preparation for coming timeout features in all commands

* feat: Adding timeout option in preparation for coming timeout features in all commands

* chore: Linter issues
2023-06-29 16:35:03 -04:00
ChrHan
46dee843db
fix(prompt): fix default selection of prompt, timer and exit code (#148)
* fix(prompt): fix default selection of prompt, timer and exit code

* chore(comment): remove unused comment

* fix(confirm): ensure timer is located at fixed selection

* chore(confirm): remove inefficient assignment

* fix: default timeout selection

---------

Co-authored-by: Maas Lalani <maas@lalani.dev>
2023-02-27 19:16:08 -05:00
Maas Lalani
36ef76185c
fix(confirm): esc should not exit with 130 2023-01-13 12:08:06 -05:00
Maas Lalani
832c4fc917 feat: ctrl+c / esc aborts action 2022-12-13 15:47:32 -05:00
Maas Lalani
2e4ddce3f7
fix: use program.Start 2022-10-17 20:23:59 -04:00
Maas Lalani
f69fc23242 fix: don't allow selecting negative value if it is an empty string 2022-10-06 13:30:05 -04:00
Kevin Pham
a4d4793829 fix(confirm): an empty --negative will not be displayed
This change will hide the normally "No" button when the text is empty. In most cases, this will serve as an acknowledgement and the affirmative message would likely change.

This seems to be better than displaying an empty button.

Resolves #145
2022-10-06 13:30:05 -04:00
Maas Lalani
c1a1a73a0e
feat: add timeout on confirm options & messages (#111)
Co-authored-by: Christoper Hans <4262799+ChrHan@users.noreply.github.com>
2022-08-08 13:57:55 -04:00
Maas Lalani
1479184f3f fix: satisfy all linters 2022-08-05 02:33:40 -04:00
Maas Lalani
46ce0e4761 feat: allow configuration via environment variables 2022-08-04 11:22:42 -04:00
Maas Lalani
7842b83c9d
fix(confirm): readable on light theme 2022-08-03 14:06:55 -04:00
Maas Lalani
bba0f3b1e0
refactor: remove unneeded set:"name=" 2022-08-03 12:28:02 -04:00
Maas Lalani
197e52a362
feat: escape as abort option (like ctrl+c) 2022-08-02 21:00:42 -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
671777aa59 feat: ability to change default value of confirmation 2022-07-29 12:13:35 -04: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
cec8ecd782
fix(confirm): slightly change default colors 2022-07-26 17:53:52 -04:00
Maas Lalani
942bf8091d
feat: Add y/Y shorthand for affirmative action 2022-07-26 16:28:58 -04:00
Maas Lalani
ff63ec43f9
feat: remove gum confirm vertical option 2022-07-26 16:17:32 -04:00
Maas Lalani
8f7a921e6a
docs: gum confirm 2022-07-26 16:11:36 -04:00
Maas Lalani
108a680385
feat: gum confirm 2022-07-26 15:43:26 -04:00