prompts icon indicating copy to clipboard operation
prompts copied to clipboard

Add a message object prompt type

Open Euregan opened this issue 5 years ago • 3 comments

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.

Euregan avatar Jun 23 '19 09:06 Euregan

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

terkelg avatar Jun 26 '19 18:06 terkelg

For what it's worth, I'd welcome this addition too.

guypursey avatar Jun 14 '20 14:06 guypursey

Happy birthday to this issue! Sorry it took so long, here's a PR: https://github.com/terkelg/prompts/pull/262

Euregan avatar Jun 23 '20 06:06 Euregan