Show HN: New set of Go libraries for CLI Development

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

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

    Generate cobra command trees from structs. Go-flags compliant tags. Advanced CLI functionality, out-of-the-box. (by reeflective)

    Hello everyone,

    I've just released three different libraries aimed at either enhancing or facilitating CLI application development.

    Flags (https://github.com/reeflective/flags)

  • go-flags

    go command line option parser

    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)

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

  • sflags

    Generate flags by parsing structures

    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)

  • console

    Closed-loop application library for Cobra commands (powerful, ready-to-run and easy to use) (by reeflective)

    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)

  • readline

    Shell library with powerful and modern UI, large feature set, and `.inputrc` support (by reeflective)

    This library wraps the readline library (described below) and leverages cobra commands in order to provide a closed-loop console working with cobra commands out of the box, also providing many comfort-of-life features at minimum cost, like support for oh-my-posh prompt engines, different menus and much more.

    Readline (https://github.com/reeflective/readline)

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

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