|about 1 month ago||8 days ago|
|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.
We haven't tracked posts mentioning hostctl yet.
Tracking mentions began in Dec 2020.
What type of software do you write at your workplace?
33 projects | reddit.com/r/golang | 17 Jan 2022
I just use Cobra (cli verbs and flags) and Viper (configuration) for the most part. github.com/spf13/cobra and github.com/spf13/viper
Ask HN: What libraries does go have for building interactive shells?
6 projects | news.ycombinator.com | 16 Jan 2022
I want to build a command line tool with context-sensitive completion. This is important because it allows interactive exploration of the options -- both of the application and of the current data model -- available to the user.
So far this is what I've found.
I would like to know people's experiences and recommendations in building such an app in go.6 projects | news.ycombinator.com | 16 Jan 2022
Passing an explicitly nil flag value in a Cobra CLI app
1 project | reddit.com/r/golang | 9 Jan 2022
I'm building a CLI app using Cobra. It's mostly CRUD stuff and I'm currently working on the "U" functionality. In this case, I'm updating a user. When I create the user, I have a number of flags that can be optional because I can set reasonable default values. If you send a flag, the value you send is used; if you don't, the "reasonable default" is applied. Pretty straightforward.
I've been learning Go, and I'm looking for fun ways to make use of it in my free time. I have some ideas but need help choosing.
3 projects | reddit.com/r/golang | 20 Nov 2021
Build CLI tools with https://github.com/spf13/cobra
The meaning of "cmd"
1 project | reddit.com/r/golang | 17 Nov 2021
It's become the pattern that cmd/ holds the bits for handling CLI arguments, particularly with spf13/cobra being a go-to for creating CLI applications in go.
Embedded malware in RC (NPM package)
7 projects | news.ycombinator.com | 5 Nov 2021
Ok, now, what languages beside Python and Go provide Command line argument parsing? And Go doesn't do that in a `professional` way. You either write your own, which can easily turn into a clusterfuck or use a third party library. Even in Go, people use cobra. Also embedding a lot of functionality in a standard library isn't great as well, because if some vulnerability is found, it's really hard to patch it, because you need to push versions and (for example on Linux) some distro maintainers won't push it for `stability` etc. A standard library should provide basic functionality (in most general areas), but not very advanced one.
AVWX - simple aviation weather tool to retrieve METAR and TAF data (feedback welcome)
2 projects | reddit.com/r/golang | 1 Nov 2021
Cobra User Guide
What are your preferred guides to write cool command line app?
3 projects | reddit.com/r/commandline | 28 Oct 2021
Either vanilla bash (plenty of guides out there) or golang with cobra https://github.com/spf13/cobra
Looking for a --help tool
3 projects | reddit.com/r/golang | 28 Oct 2021
Checkout cobra https://github.com/spf13/cobra there are popular cli tools written with it like github cli https://github.com/cli/cli.
What are some alternatives?
urfave/cli - A simple, fast, and fun package for building command line apps in Go
cli - CLI - A package for building command line app with go
kingpin - CONTRIBUTIONS ONLY: A Go (golang) command line and flag parser
go-flags - go command line option parser
mitchellh/cli - A Go library for implementing command-line interfaces.
kong - Kong is a command-line parser for Go
mow.cli - A versatile library for building CLI applications in Go
pflag - Drop-in replacement for Go's flag package, implementing POSIX/GNU-style --flags.
cli - GitHub’s official command line tool
docopt.go - A command-line arguments parser that will make you smile.
flag - Flag is a simple but powerful command line option parsing library for Go support infinite level subcommand
argparse - Argparse for golang. Just because `flag` sucks