tink_cli icon indicating copy to clipboard operation
tink_cli copied to clipboard

Extend the prompt ?

Open melMass opened this issue 4 years ago • 2 comments

Hi,

I'm not sure if it's related to #3, but I wanted to know if there is a plan to extend the Prompt capabilities? I'm not an Haxe macro expert so it's hard for me to try to match your style of code, but I've built a little sample to show you what I have in mind:

tink_proposal+

var author = CLI.ask("Author Name");
var mail = CLI.ask("What is your email adress", emailCallback);
var select = CLI.select(elements); // horizontal
var select = CLI.select(elements,true); // vertical

I'm cleaning the code a bit and I will create a public repo for it if you feel like guiding me on properly adding it to tink_cli!

melMass avatar Feb 12 '20 16:02 melMass