(no title)
dashwav | 5 years ago
Large projects like Hugo and Kubernetes have used Cobra to build their CLI tools, and it's fairly light as well even if you need simpler usage. We use it at my workplace simply for wrapping our microservices and the few commands (serve, migrate, etc)
sagichmal|5 years ago
https://pkg.go.dev/github.com/peterbourgon/ff/v3/ffcli is one that I've been using recently, which has been a lot nicer.
martinni|5 years ago
unknown|5 years ago
[deleted]
Thorentis|5 years ago
bingo_cannon|5 years ago
1: https://picocli.info/
2: https://github.com/airlift/airline
Bonus: picocli lets you create native images using Graal, so you can really build native cli executable using Java.
pansa2|5 years ago
I’ve struggled to find a well-supported command-line argument parser that supports subcommands.
brown9-2|5 years ago