https://github.com/itsdalmo/cli
https://github.com/itsdalmo/cli
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/itsdalmo/cli
- Owner: itsdalmo
- License: mit
- Created: 2020-07-03T13:25:40.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-03-15T15:55:42.000Z (over 4 years ago)
- Last Synced: 2025-02-03T11:21:57.040Z (over 1 year ago)
- Language: Go
- Size: 41 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
## CLI
A minimal package for building CLIs in Go, built around [spf13/pflag](https://github.com/spf13/pflag) with inspiration from existing CLI packages.
[](https://pkg.go.dev/github.com/itsdalmo/cli)
[](https://github.com/itsdalmo/cli/releases/latest)
[](https://github.com/itsdalmo/cli/actions?query=workflow%3Atest)
[](https://goreportcard.com/report/github.com/itsdalmo/cli)
#### TODO
- [x] Add validation for redeclared flag names (and shorthand) in subcommands (instead of pflag panic).
- [x] Print global flags in a separate section under usage.
- [ ] Generate more flag types :D
- [ ] Validate arguments based on Usage? E.g. `command ` could validate that two positional arguments exist during parse?