Go Standard CLI

Open-source Go projects categorized as Standard CLI Edit details
Related topics: #Command-line #Golang #Go #CLI #Bash

Top 23 Go Standard CLI Projects

  • cobra

    A Commander for modern Go CLI interactions

    Project mention: Testing cli tool with logging | dev.to | 2022-08-07

    and probably something else will be added in the future. The final kind of launch command would like to see such djob [options] - command. Command is the command (with arguments to run). -- should separate the arguments of the utility from the arguments of the program to run. There are several excellent solutions for working with command-line arguments, such as spf13/cobra or urfave/cli. But they’re good for building an interface out of a lot of commands, and for one (as in my example) they’re redundant. So I used the flag library. I have defined the following structure with arguments:

  • urfave/cli

    A simple, fast, and fun package for building command line apps in Go (by urfave)

    Project mention: Testing cli tool with logging | dev.to | 2022-08-07

    and probably something else will be added in the future. The final kind of launch command would like to see such djob [options] - command. Command is the command (with arguments to run). -- should separate the arguments of the utility from the arguments of the program to run. There are several excellent solutions for working with command-line arguments, such as spf13/cobra or urfave/cli. But they’re good for building an interface out of a lot of commands, and for one (as in my example) they’re redundant. So I used the flag library. I have defined the following structure with arguments:

  • SonarLint

    Clean code begins in your IDE with SonarLint. Up your coding game and discover issues early. SonarLint is a free plugin that helps you find & fix bugs and security issues from the moment you start writing code. Install from your favorite IDE marketplace today.

  • elvish

    Elvish = Expressive Programming Language + Versatile Interactive Shell

    Project mention: I thought I was the only one lol | reddit.com/r/ProgrammerHumor | 2022-06-24

    I use Elvish as my shell so this is r/technicallythetruth for me

  • kingpin

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

  • The Platinum Searcher

    A code search tool similar to ack and the_silver_searcher(ag). It supports multi platforms and multi encodings.

  • Dnote

    A simple command line notebook for programmers

    Project mention: Note taking cli with groups and categories in 2022 | reddit.com/r/commandline | 2022-06-22
  • go-flags

    go command line option parser

    Project mention: Golang - Writing CLI App in Golang with Cobra | dev.to | 2022-07-26

    There are alternatives available for Cobra as well i.e. mitchellh/cli, go-flags, urfave/cli etc.

  • Scout APM

    Less time debugging, more time building. Scout APM allows you to find and fix performance issues with no hassle. Now with error monitoring and external services monitoring, Scout is a developer's best friend when it comes to application development.

  • pflag

    Drop-in replacement for Go's flag package, implementing POSIX/GNU-style --flags.

    Project mention: Define custom command-line flag types in Go 1.19 | reddit.com/r/golang | 2022-08-04

    Nice, but Cobra (with pflag underneath) is so, so better.

  • readline

    Readline is a pure go(golang) implementation for GNU-Readline kind library

    Project mention: shell-reader - an easy-to-use library for creating shells for the Linux terminal with support for navigating command history | reddit.com/r/golang | 2022-06-23

    That's nice, were you aware of readline?

  • mitchellh/cli

    A Go library for implementing command-line interfaces. (by mitchellh)

    Project mention: Golang - Writing CLI App in Golang with Cobra | dev.to | 2022-07-26

    There are alternatives available for Cobra as well i.e. mitchellh/cli, go-flags, urfave/cli etc.

  • docopt.go

    A command-line arguments parser that will make you smile.

    Project mention: The flag package: strange but good? | reddit.com/r/golang | 2021-11-28

    or the DSL docopt which will parse the opts from the usage help text.

  • kong

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

    Project mention: Coral, a friendly Cobra fork with nearly all its features, but only 4 dependencies | reddit.com/r/golang | 2022-02-02

    We switched all our cli tools from cobra/viper to kong. I can highly recommend it. Almost no deps and easy to use, a great replacement for cobra in my opinion.

  • cli-init

    The easy way to build Golang command-line application.

  • liner

    Pure Go line editor with history, inspired by linenoise

  • complete

    bash completion written in go + bash completion for go command

  • mow.cli

    A versatile library for building CLI applications in Go

  • flaggy

    Idiomatic Go input parsing with subcommands, positional values, and flags at any position. No required project or package layout and no external dependencies.

    Project mention: Return error if an command line argument does not exist in the program | reddit.com/r/golang | 2022-05-11

    Maybe the flaggy package can do this easily, but if there is a way with the standard flag package it would be best.

  • cli

    CLI - A package for building command line app with go (by mkideal)

  • argparse

    Argparse for golang. Just because `flag` sucks (by akamensky)

  • box-cli-maker

    Make Highly Customized Boxes for your CLI

    Project mention: Kubernetes' minikube uses my Go Lang Project! | dev.to | 2022-08-06

    I am very honored to announce that my Go Language Project Box CLI Maker which makes Highly Customized Boxes for CLI is being used in Kubernetes's minikube which implements a local Kubernetes cluster for Mac OS, Linux and Windows, according to the description.

  • climax

    Climax is an alternative CLI with the human face

  • 1build

    Frictionless way of managing project-specific commands

  • wmenu

    An easy to use menu structure for cli applications that prompts users to make choices.

    Project mention: Building an application with Go and SQLite | dev.to | 2022-04-15

    We will build a CLI application that accesses a SQLite database. I'm going to use The WMenu package from Dixonwille for this, so we have an interface for our data. We'll use this menu and a scanner to accept input to interact with our database.

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2022-08-07.

Go Standard CLI related posts

Index

What are some of the best open-source Standard CLI projects in Go? This list will help you:

Project Stars
1 cobra 28,057
2 urfave/cli 18,805
3 elvish 4,808
4 kingpin 3,242
5 The Platinum Searcher 2,743
6 Dnote 2,343
7 go-flags 2,274
8 pflag 1,896
9 readline 1,829
10 mitchellh/cli 1,569
11 docopt.go 1,368
12 kong 1,041
13 cli-init 918
14 liner 909
15 complete 837
16 mow.cli 820
17 flaggy 805
18 cli 665
19 argparse 443
20 box-cli-maker 227
21 climax 197
22 1build 176
23 wmenu 168
Find remote jobs at our new job board 99remotejobs.com. There are 3 new remote jobs listed recently.
Are you hiring? Post a new remote job listing for free.
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com