Technical Deep Dive: How We Built the Pizza CLI Using Go and Cobra

This page summarizes the projects mentioned and recommended in the original post on dev.to

SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • cobra

    A Commander for modern Go CLI interactions

    The Pizza CLI is a Go command-line tool that leverages several standard libraries. Go’s simplicity, speed, and systems programming focus make it an ideal choice for building CLIs. At its core, the Pizza-CLI uses spf13/cobra, a CLI bootstrapping library in Go, to organize and manage the entire tree of commands.

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  • go-git

    A highly extensible Git implementation in pure Go.

    One of the main libraries we use in the Pizza-CLI is the go-git library, a pure git implementation in Go that is highly extensible. During CODEOWNERS generation, this library enables us to iterate the git ref log, look at code diffs, and determine which git authors are associated with the configured attributions defined by a user.

  • posthog-go

    Official PostHog Go library

    Posthog has a first party library in Go that supports this exact functionality. First, we define a Posthog client:

  • uuid

    Go package for UUIDs based on RFC 4122 and DCE 1.1: Authentication and Security Services. (by google)

    For the anonymized IDs, we use Google’s excellent UUID Go library:

  • Testify

    A toolkit with common assertions and mocks that plays nicely with the standard library

    We’ve integrated the excellent testify library with its “assert” functionality to allow for smoother test implementation:

  • just

    🤖 Just a command runner

    We heavily use Just at OpenSauced, a command runner utility, much like GNU’s “make”, for easily executing small scripts. This has enabled us to quickly onramp new team members or community members to our Go ecosystem since building and testing is as simple as “just build” or “just test”!

  • pizza-cli

    A CLI for all things OpenSauced

    We invite you to explore the Pizza CLI GitHub repository, try out the tool, and let us know your thoughts. Your feedback and contributions are invaluable as we work to make code ownership management easier for development teams everywhere!

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
  • 🎉 Finally! Official launch of the Gowebly project on ProductHunt

    2 projects | dev.to | 19 Jul 2024
  • Gowebly: A tool to bootstrap an web application in Golang

    1 project | news.ycombinator.com | 6 Jun 2024
  • The Gowebly CLI updates to Go 1.22

    1 project | news.ycombinator.com | 7 Feb 2024
  • 🔥 Frontend update: the Gowebly CLI now supports daisyUI components library

    5 projects | dev.to | 21 Nov 2023

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