kingpin
mage
kingpin | mage | |
---|---|---|
2 | 9 | |
3,446 | 3,890 | |
- | 0.5% | |
5.2 | 5.0 | |
28 days ago | 3 months ago | |
Go | Go | |
MIT License | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
kingpin
-
climate "CLI Mate": a CLI library that autogenerates CLIs from structs / functions with support for nested subcommands, global / local flags, help generation from godocs, typo suggestions, shell completion and more
Args could also have detailed help (like flags) -- usage line is already auto-generated from arg(s) name and type but that's about it. This is something Cobra doesn't do for whatever reason (but https://github.com/alecthomas/kingpin does and I like it)
- What is the best way to handle flags?
mage
-
climate "CLI Mate": a CLI library that autogenerates CLIs from structs / functions with support for nested subcommands, global / local flags, help generation from godocs, typo suggestions, shell completion and more
mage being a build tool and climate being a CLI library, a direct comparison probably doesn't make much sense but their parsing (https://github.com/magefile/mage/blob/master/parse/parse.go) seems very similar to what I'm doing for metadata (param names / godocs / comments etc.).
-
Is your makefile supposed to be a justfile?
mage
-
Anyone else doing compiler work in Golang?
https://github.com/magefile/mage but I haven't tried it as am not a fun of make like tools.
-
Do we have a package.json/scripts section alternative in Golang?
I prefer https://github.com/magefile/mage
-
[sema v1.0.0] First Major Version Bump
We now use mage to cross-compile release binaries as proposed by u/g00py3 in this Reddit discussion.
-
//go:generate with ENV variables?
Try github.com/magefile/mage - it's written in Go and lets you write Go to run scripts rather than writing bash inside yaml ;)
-
Mage v1.13 is released - now supports magefiles in a subdir
Mage v1.13 was released as of yesterday. This included a few small fixes, and a big new feature - subdirectory support.
-
Ugly code, improvement suggestions needed
If you need build automation, use mage.
What are some alternatives?
cobra - A Commander for modern Go CLI interactions
Cockatrice - A cross-platform virtual tabletop for multiplayer card games
go-flags - go command line option parser
goyek - Task automation Go library
urfave/cli - A simple, fast, and fun package for building command line apps in Go
taskflow - Create build pipelines in Go [Moved to: https://github.com/goyek/goyek]
kong - Kong is a command-line parser for Go
PacketProxy - A local proxy written in Java
pflag - Drop-in replacement for Go's flag package, implementing POSIX/GNU-style --flags.
HattrickOrganizer - Assistant for Hattrick online football manager
cli - CLI - A package for building command line app with go
symphony-of-empires - Symphony of the Empires is a RTS strategy game and map game.