bombshell-dev / clack

Effortlessly build beautiful command-line apps
https://clack.cc
5.53k stars 90 forks source link

[Request] Ast Tree on cli #108

Open c0ncentus opened 1 year ago

c0ncentus commented 1 year ago

Is your feature request related to a problem? Please describe. sometimes CLI apps have "interactive mode" and so select features we want to run and stop thinking "what i should use for ...".

or some complex use case require to select many values on different categories ...

Describe the solution you'd like have ast tree like this but just the square in the idea ... or not ... image

return {path:..., value:string} maybe

minimal data will be

{
    node:"parent",
    children: [
           node:"parent2",
           children:[...]
    ]

}

Describe alternatives you've considered

Additional context making cli app but wait until there is a hope from this package, it's dont exist on other npm package (or dont see).

use https://github.com/terkelg/prompts but thats very silly because dynamic props is too harsh (only on previous prompt, not the global result)