Schniz / cmd-ts

💻 A type-driven command line argument parser
https://cmd-ts.now.sh
MIT License
241 stars 25 forks source link

Shell completions #196

Open V1RE opened 1 year ago

V1RE commented 1 year ago

Was wondering if anyone created some sort of shell completion generator which works with cmd-ts

cspotcode commented 1 year ago

I'd like this as well. I wonder how well the parser can accommodate this. Can the parser be run and tell you where it had to stop so you know what it's expecting next? Then completions can come from there.

lgarron commented 1 week ago

I'd be really excited to see shell completions in cmd-ts.

I use fish, many people use zsh, and bash is still common, clap makes it trivial to support them all (and more) and this is one of the main things I sorely miss in TypeScript programs. Would be a game-changer to have them.