I built my first CLI tool

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

InfluxDB high-performance time series database
Collect, organize, and act on massive volumes of high-resolution data to power real-time intelligent systems.
influxdata.com
featured
CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai
featured
  1. tfsort

    A CLI utility to sort Terraform variables and outputs

    Link: https://github.com/AlexNabokikh/tfsort

  2. InfluxDB

    InfluxDB high-performance time series database. Collect, organize, and act on massive volumes of high-resolution data to power real-time intelligent systems.

    InfluxDB logo
  3. hcl

    HCL is the HashiCorp configuration language.

    Cool! So this should work for any hcl file not just terraform config

  4. climate

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

    I see you're using Cobra -- https://github.com/avamsi/clifr offers most of the goodness of Cobra (Clifr uses Cobra under the hood) with a much simpler "API" IMO (you just write a struct and Clifr handles the rest). Feel free to give it a try and file issues if there's anything you see missing from Cobra etc.

  5. go-boilerplate

    An easy to use, extensible boilerplate for Go applications (by eldad87)

    I am not entirely sure that I understand your question. Apart from basic knowledge of golang syntax and programming in general, there are no prerequisites. If you want a quick start, you may look at the https://github.com/eldad87/go-boilerplate. For the CLI tool, consider using https://github.com/spf13/cobra. It can generate project structure. I hope that helps. Cheers

  6. cobra

    A Commander for modern Go CLI interactions

    I am not entirely sure that I understand your question. Apart from basic knowledge of golang syntax and programming in general, there are no prerequisites. If you want a quick start, you may look at the https://github.com/eldad87/go-boilerplate. For the CLI tool, consider using https://github.com/spf13/cobra. It can generate project structure. I hope that helps. Cheers

  7. CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit 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

  • Developing CLIs

    3 projects | dev.to | 12 Aug 2024
  • The power of the CLI with Golang and Cobra CLI

    9 projects | dev.to | 6 Apr 2024
  • O poder do CLI com Golang e Cobra CLI

    9 projects | dev.to | 15 Nov 2023
  • Which packages do you recommend for building cli tools?

    10 projects | /r/golang | 17 Apr 2023
  • Re-introducing "define" - A command-line dictionary (thesaurus) app, with access to multiple sources, written in Go.

    2 projects | /r/golang | 23 Feb 2023

Did you know that Go is
the 4th most popular programming language
based on number of references?