c4spar / deno-cliffy

Command line framework for deno 🦕 Including Commandline-Interfaces, Prompts, CLI-Table, Arguments Parser and more...

Home Page:https://cliffy.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

support multiline input

johnstonmatt opened this issue · comments

I'm hoping for a new feature!

A variant of the Input type that could handle a multiline pasted (or typed?) input. In the polyseam/cndi CLI, I am aiming to collect a multiline JSON string, and Cliffy interprets each line of input as a response to successive prompts.

This variant could be behind a boolean like multiline: true. Submission would require some other user input, maybe a dedicated key or combo like ctrl+o or tab or something.

If anyone has a better way to serve this need in an interactive Cliffy CLI that would be really helpful too!

closing in favour of #9