elewis787 / boa

A Cobra command styled usage and help component powered by bubbletea
MIT License
187 stars 7 forks source link

specify arg and flag values via boa #9

Open bbkane opened 2 years ago

bbkane commented 2 years ago

It's really neat that Boa allows for interactive subcommand selection, but (from the GIF), it looks like it exits after you pick the command. It would be really neat if you could use Boa to execute the selected subcommand with the args/flags you'd like.

I'm writing my own Cobra alternative, so I'm super interested in watching your innovation here - I'll probably port it to mine :D

elewis787 commented 2 years ago

I agree that this would be a great add - I've thought about fair amount and, for now, landed on just adding the print option. However, I actually think the better solve would be to use a text input that defaults for the command usage line and allows the user to add additional flags/options.

I'll see what I can do !! Thanks for checking this out.

reitzig commented 9 months ago

FWIW, Textualize/trogon may be a good source of inspiration.