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

This page summarizes the projects mentioned and recommended in the original post on /r/golang

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • climate

    "CLI Mate" autogenerates CLIs from structs / functions (nested subcommands, global / local flags, help generation, typo suggestions, shell completion etc.) (by avamsi)

  • Thanks, do take it for a spin and file any issues at https://github.com/avamsi/climate/issues!

  • mage

    a Make/rake-like dev tool using Go

  • 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.).

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • kingpin

    CONTRIBUTIONS ONLY: A Go (golang) command line and flag parser

  • 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)

  • kong

    Kong is a command-line parser for Go (by alecthomas)

  • I’ve been using https://github.com/alecthomas/kong for exposing generated protobuf structs for CLI args. How does your library compare?

  • opts

    A Go (golang) package for building frictionless command-line interfaces (by jpillora)

  • Related https://github.com/jpillora/opts

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts