box-cli-maker
Make Highly Customized Boxes for CLI (by Delta456)
pflag
Drop-in replacement for Go's flag package, implementing POSIX/GNU-style --flags. (by spf13)
Our great sponsors
box-cli-maker | pflag | |
---|---|---|
9 | 13 | |
450 | 2,307 | |
- | - | |
5.6 | 0.0 | |
5 months ago | 3 days ago | |
Go | Go | |
MIT License | BSD 3-clause "New" or "Revised" License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.
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.
box-cli-maker
Posts with mentions or reviews of box-cli-maker.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-12-23.
- Show HN: Box CLI Maker
-
Christmas giveaway: 10 copies of my book Domain-driven Design with Golang book, also AMA
I believe my story isn't a funny problem that I have specifically used Go lang for though I always wanted to make a CLI without using languages like Python, JS and all because there are many things which can be done with languages like Go. So I made a project called Box CLI Maker.
-
Box CLI Maker 📦 v2.3.0 is now Released
Why point to twitter if you can point to the sources right away. (it saves clicks and you know how Gophers like to be efficient!) https://github.com/Delta456/box-cli-maker/releases/tag/v2.3.0
-
Kubernetes' minikube uses my Go Lang Project!
I am very honored to announce that my Go Language Project Box CLI Maker which makes Highly Customized Boxes for CLI is being used in Kubernetes's minikube which implements a local Kubernetes cluster for Mac OS, Linux and Windows, according to the description.
-
New Open source Go projects looking for contributors
You can try looking here https://github.com/Delta456/box-cli-maker/tree/dev
-
Box CLI Maker 📦: Make Highly Customized Boxes for your CLI
I am working on a big release where you can read the what I am working on atm: https://github.com/Delta456/box-cli-maker/projects/1
-
PTerm - A Go module to beautify console output. Featuring charts, progressbars, tables, trees, and much more
Are you on discord? I would like to have a talk with you! I am the author of https://github.com/Delta456/box-cli-maker so I would like to ask somethings.
-
Box CLI Maker module is being used in Kubernetes's MiniKube Project!
Link to my Go module for those who don't know: https://github.com/Delta456/box-cli-maker
pflag
Posts with mentions or reviews of pflag.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-05-07.
-
issue with pflag flagset
My understanding is that you can use pflag as a drop in replacement of the standard lib's flag (import flag "github.com/spf13/pflag"). So it can be used as a standalone lib I suppose.
-
Which packages do you recommend for building cli tools?
I realy enjoyed the patched version from spf13 with "--" support https://github.com/spf13/pflag
-
Define custom command-line flag types in Go 1.19
Nice, but Cobra (with pflag underneath) is so, so better.
-
-h --help -help help --? -? ????
Not by default on stdlib. There are libraries available though - https://github.com/spf13/pflag
-
Coral, a friendly Cobra fork with nearly all its features, but only 4 dependencies
Flag functionality is provided by the pflag library, a fork of the flag standard library which maintains the same interface while adding POSIX compliance.
-
xflags: An approach to command line flags with support for subcommands, positional args, environment variables, etc.
How does it compare to https://github.com/spf13/pflag ?
-
The flag package: strange but good?
spf13 has a drop in pflag that does the - short and -- long flags.
-
What are your favorite packages to use?
oklog/ulid to generate IDs. coreos/go-oidc for validating JWTs I get from auth. google/go-cmp for comparing structs in tests (unless the project is already using Testify). spf13/pflag because life's too short for Go's flag handling. getkin/kin-openapi for validating reqests/responses against my OpenAPI spec (in tests).
-
akamensky/argparse: Argparse for Golang. Just because "flag" sucks!
What are the benefits of this package over the widely used spf13/pflag?
-
Go’s highly modular nature makes it particularly good for situations where requirements are changing or evolving.
3
What are some alternatives?
When comparing box-cli-maker and pflag you can also consider the following projects:
elvish - Powerful scripting language & Versatile interactive shell
flag - Flag is a simple but powerful command line option parsing library for Go support infinite level subcommand
cobra - A Commander for modern Go CLI interactions
kingpin - CONTRIBUTIONS ONLY: A Go (golang) command line and flag parser
readline - Readline is a pure go(golang) implementation for GNU-Readline kind library
go-flags - go command line option parser
flaggy - Idiomatic Go input parsing with subcommands, positional values, and flags at any position. No required project or package layout and no external dependencies.
complete - bash completion written in go + bash completion for go command
argparse - Argparse for golang. Just because `flag` sucks