-
-
Notifications
You must be signed in to change notification settings - Fork 302
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
Add functionality to skip prompts #132
Comments
Definitely something we should look into. I implemented something for one of my terminal programs that just skips certain questions if they are already present. But it would be nice if I wonder how |
@lumio I feel that just the missing questions should be rendered. We use override functionality on our homegrown cli tooling, and only rendering the questions that are left really speeds up the use of the tooling. |
@jkwohlfahrt that makes sense. Why would you overwrite it in the first place then, right? |
I've used the prompt override functionality fairly heavily in the past, to quickly execute commands that have lots of prompts involved. For instance, we have CLI commands that call APIs with several prompted parameters. Often times, especially for testing purposes, our engineering team needs to make the same call over and over again, largely with the same parameters. Overwriting the prompts takes away a lot of the monotony of gong through the same steps over and over again. Does that answer your question at all, @lumio ? Not sure I fully understand what you're asking. |
@jkwohlfahrt sorry for the confusion. I meant it in a rhetorical way 😄 I might have a look into it tomorrow. |
This will be included in the next release, thank you guys! |
typings are missing here, I'll add it ASAP |
I'm really enjoying the prompts module, but would love added functionality for skipping prompts, and using command line options instead, similar to how overrides were implemented in the
prompt
npm package, here: https://github.com/flatiron/prompt#skipping-prompts. Overrides like these provide tremendous ease of use, especially for cli commands that have lots of nested menus and options.The text was updated successfully, but these errors were encountered: