prompts
prompts copied to clipboard
Add a message object prompt type
Is your feature request related to a problem?
I'm building a helper cli asking a user for inputs, but I also need to provide some extended information text between questions. If I use the message attribute of a prompt object, it can quickly become hard to read (In the source code), and the text block is prefixed with a ?
, while the actual question line isn't.
Describe the solution you'd like
A new prompt object of type message
, simply displaying an informative message.
I'd be happy to provide a PR if the feature is accepted. Sorry about the failed issue earlier.
Thank you. I think this could be a great addition to Prompts. We're always open to PR in case you wanna give it a try
For what it's worth, I'd welcome this addition too.
Happy birthday to this issue! Sorry it took so long, here's a PR: https://github.com/terkelg/prompts/pull/262