Skip to content

Comment on Fang, the CLI Starter Kit

Comments

Just re-wrote an internal CLI to urfave from custom, but having issues with v3 autocomplete scripts. Might just take the time to switch over to cobra and use this.

I think kong[1] is better than both options although cobra is by far the most popular. Might be worth a look.

Definitely won't look as pretty as the parent project though but I prefer kong in terms of the actual code you need to write.

[1] https://github.com/alecthomas/kong

OP said they want completion support, which Kong doesn't include. https://github.com/jotaen/kong-completion exists, but the last commit was 2 years ago.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.