How can I create a multiple choice prompt in picocli?

92 Views Asked by At

I'm trying to create a cli with a option prompt, like the image below.

pic

1

There are 1 best solutions below

0
fxrobin On

PicoCLI is not meant to do that. It's a CLI library, not a Interactive Console library as you expect it to be.

You better have to use JAnsi and JLine.

Or ConsoleUI which should be exactly what you are looking for.