Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non-interactive value to gum commands #788

Open
ridhwaans opened this issue Dec 30, 2024 · 1 comment
Open

Non-interactive value to gum commands #788

ridhwaans opened this issue Dec 30, 2024 · 1 comment

Comments

@ridhwaans
Copy link

ridhwaans commented Dec 30, 2024

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Sometimes you have DEBIAN_FRONTEND=noninteractive set or you want to complete a task non interactively

Describe the solution you'd like
A clear and concise description of what you want to happen.

pass a --non-interactive flag at the top level such that the bash script can be completed and the gum commands at each point know which value to use

i.e. gum confirm has a placeholder but they would need an enter keypress
this applies to the gum confirm, input, choose, file commands

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
i couldnt get echo n | gum choose {1..5} or `>> n' to work

Additional context
Add any other context or screenshots about the feature request here.

@hxlnt
Copy link

hxlnt commented Jan 2, 2025

Have a look at the recent PRs associated with #491. They aren't in the latest release yet, but maybe these upcoming fixes would address your need.

@bashbunni bashbunni added the enhancement New feature or request label Jan 8, 2025
@caarlos0 caarlos0 added cmd/choose cmd/filter cmd/confirm enhancement New feature or request and removed enhancement New feature or request labels Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants