Building a great tech team takes more than a paycheck. Zero payroll costs, get AI-driven insights to retain best talent, and delight them with amazing local benefits. 100% free and compliant. Learn more →
Go-flags Alternatives
Similar projects and alternatives to go-flags
-
-
urfave/cli
A simple, fast, and fun package for building command line apps in Go (by urfave)
-
InfluxDB
Collect and Analyze Billions of Data Points in Real Time. Manage all types of time series data in a single, purpose-built database. Run at any scale in any environment in the cloud, on-premises, or at the edge.
-
-
-
pflag
Drop-in replacement for Go's flag package, implementing POSIX/GNU-style --flags.
-
mitchellh/cli
A Go library for implementing command-line interfaces. (by mitchellh)
-
-
SonarLint
Clean code begins in your IDE with SonarLint. Up your coding game and discover issues early. SonarLint is a free plugin that helps you find & fix bugs and security issues from the moment you start writing code. Install from your favorite IDE marketplace today.
-
-
-
-
koanf
Simple, extremely lightweight, extensible, configuration management library for Go. Support for JSON, TOML, YAML, env, command line, file, S3 etc. Alternative to viper.
-
-
readline
Shell library with powerful and modern UI, large feature set, and `.inputrc` support (by reeflective)
-
console
Closed-loop application library for Cobra commands (powerful, ready-to-run and easy to use) (by reeflective)
-
eclipse
python-fire inspired library to simplify creating CLIs in Go, built on top of Cobra [Moved to: https://github.com/avamsi/clifr]
-
flags
Generate cobra command trees from structs. Go-flags compliant tags. Advanced CLI functionality, out-of-the-box. (by reeflective)
-
-
-
-
Python Fire
Python Fire is a library for automatically generating command line interfaces (CLIs) from absolutely any Python object.
-
Revelo Payroll
Free Global Payroll designed for tech teams. Building a great tech team takes more than a paycheck. Zero payroll costs, get AI-driven insights to retain best talent, and delight them with amazing local benefits. 100% free and compliant.
go-flags reviews and mentions
-
Which packages do you recommend for building cli tools?
https://github.com/jessevdk/go-flags provides a pretty neat way to specify flags and handle commands. Not so much extensible as cobra, but good enough for small cli tools
-
Show HN: New set of Go libraries for CLI Development
flags aims to merge the concepts from https://github.com/jessevdk/go-flags, and https://github.com/octago/sflags, both relying on struct tags to define CLI command specs. The flags library uses these underlying concepts to produce complete `cobra.Command` trees, and brings many comfort-of-life improvements for the generated applications/commands.
Console (https://github.com/reeflective/console)
-
Libraries for CLI and console applications
Flags (https://github.com/reeflective/flags) flags aims to merge the concepts from https://github.com/jessevdk/go-flags, and https://github.com/octago/sflags, both relying on struct tags to define CLI command specs. The flags library uses these underlying concepts to produce complete `cobra.Command` trees, and brings many comfort-of-life improvements for the generated applications/commands.
-
Golang equivalent of Python’s click (CLT framework)
go-flags
-
Eclipse: python-fire inspired library to simplify creating CLIs in Go, on top of Cobra
Not speaking for OP, but my experience with it is that it was overkill for my own needs. I went with go-flags.
See https://github.com/jessevdk/go-flags for another popular way to do this that aligns with your ideas.
Yeah, I just didn't need the command-subcommand scheme. I used the go-flags test file for examples: https://github.com/jessevdk/go-flags/blob/master/example_test.go
-
Golang - Writing CLI App in Golang with Cobra
There are alternatives available for Cobra as well i.e. mitchellh/cli, go-flags, urfave/cli etc.
-
What are some good open source project to read when learning Go?
https://github.com/jessevdk/go-flags - struct based flag parsing
-
A note from our sponsor - Revelo Payroll
try.revelo.com | 4 Oct 2023
Stats
jessevdk/go-flags is an open source project licensed under BSD 3-clause "New" or "Revised" License which is an OSI approved license.
The primary programming language of go-flags is Go.