Manage all types of time series data in a single, purpose-built database. Run at any scale in any environment in the cloud, on-premises, or at the edge. Learn more →
Top 23 Go Command-line Projects
-
In my build phase, I compile the source to create a k3sup binary and I also run the binary to generate shell script completions. Give kudos to this functionality which comes from spf13/cobra Go library for CLIs.
-
-
Onboard AI
Learn any GitHub repo in 59 seconds. Onboard AI learns any GitHub repo in minutes and lets you chat with it to locate functionality, understand different parts, and generate new code. Use it for free at www.getonboard.dev.
-
Project mention: Best practices for distributing and updating a Go CLI on Linux? | /r/golang | 2023-05-18
Can you use a framework like urfavecli https://github.com/urfave/cli? This will auto-update every time it detects a new version from your CLI's GitHub repository
-
TUI’s are awesome; I’ve used this library to build them in the past: https://github.com/charmbracelet/bubbletea
For a sufficiently-complex system, a CLI client just isn’t as powerful as a live “console”. A TUI can play the part and you don’t have to venture into the web SPA world.
-
-
Project mention: Pg_branch: Pre-alpha Postgres extension brings Neon-like branching | news.ycombinator.com | 2023-10-01
Interesting that branching is now better supported and almost free. I wonder if merging can be simplified or whether it already is as simple and as fast as it can be?
I guess I am inspired by Dolt’s ability to branch and merge: https://github.com/dolthub/dolt
-
This does remind me of ctop as well: https://github.com/bcicen/ctop
It also let's you look at containers, resource usage graphs, their logs and even do some actions through a TUI.
-
Revelo Payroll
Free Global Payroll designed for tech teams. Building a great tech team takes more than a paycheck. Zero payroll costs, get AI-driven insights to retain best talent, and delight them with amazing local benefits. 100% free and compliant.
-
Project mention: Textual: Rapid Application Development Framework for Python | news.ycombinator.com | 2023-08-18
I used termui for a project and have no complaints.
-
sampler
Tool for shell commands execution, visualization and alerting. Configured with a simple YAML file.
Project mention: Sampler – Tool for shell commands execution, visualization and alerting | news.ycombinator.com | 2023-02-25 -
-
Rich Interactive Widgets for Terminal UIs
Terminal UI library with rich, interactive widgets — written in Golang
Project mention: Picnic-TUI - Where Go and Groceries Create a Command-Line Feast | dev.to | 2023-09-12Spotify-TUI was developed in Rust, therefore I couldn’t simply use the same UI framework. Within Go a popular choice is tview https://github.com/rivo/tview which provides many similar UI widgets which covered all my needs.
-
Project mention: xo/usql: Universal command-line interface for SQL databases | /r/devel | 2023-06-08
-
miller
Miller is like awk, sed, cut, join, and sort for name-indexed data such as CSV, TSV, and tabular JSON
jq and miller[1] are essential parts of my toolbelt, right up there with awk and vim.
-
-
So i have a cli tool thats outputting some text to the cli stdout, i would like the output to be colored, so i used a library called color (github.com/fatih/color), basically the problem is when i output to stdout its fine but when i do something like ./tool | tee -a file.txt the colors disappear from terminal and also not in the output file, why is that and how do i prevent that ?
-
There are two main libraries that people use to write clients Confluent Kafka and segment io kafka
-
Project mention: Yazi: Fast terminal file manager based on async I/O | news.ycombinator.com | 2023-09-15
I've tried using LF in the past, but it didn't stick. Will definitely give this a go, as I'm trying to move to an pure terminal workflow as closely as possible.
-
Project mention: A Java library to work with the ANSI OSC52 terminal sequence. | /r/java | 2023-06-21
I saw https://github.com/charmbracelet/lipgloss and was wondering if there is anything equivalent in the JVM ecosystem. I couldn't find anything so I started crawling its deps tree and reimplementing to fall asleep at night.
-
-
Shameless plug: Elvish is a shell with a filesystem navigator built in - you can see it in demo 5 on the homepage https://elv.sh
-
Project mention: Is there a library that can give python-prompt-toolkit like completion for TUI? | /r/rust | 2023-04-09
Ref. https://github.com/prompt-toolkit/python-prompt-toolkit and https://github.com/c-bata/go-prompt ?
-
-
pterm
✨ #PTerm is a modern Go module to easily beautify console output. Featuring charts, progressbars, tables, trees, text input, select menus and much more 🚀 It's completely configurable and 100% cross-platform compatible.
Project mention: PTerm v0.12.58: You can now use beautiful structured logging for your projects! | /r/golang | 2023-04-04 -
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.
Go Command-line related posts
- jq 1.7
- A pager that can keep displaying file names in git diff
- Modern Linux Tools vs. Unix Classics: Which Would I Choose?
- Fx – Terminal JSON Viewer
- fx – terminal JSON viewer
- Packaging Go for Arch Linux Tutorial
- Yazi: Fast terminal file manager based on async I/O
-
A note from our sponsor - InfluxDB
www.influxdata.com | 4 Oct 2023
Index
What are some of the best open-source Command-line projects in Go? This list will help you:
Project | Stars | |
---|---|---|
1 | cobra | 33,518 |
2 | micro-editor | 22,741 |
3 | urfave/cli | 20,747 |
4 | bubbletea | 19,888 |
5 | fx | 17,445 |
6 | dolt | 15,549 |
7 | ctop | 14,654 |
8 | termui | 12,658 |
9 | sampler | 11,715 |
10 | gocui | 9,398 |
11 | Rich Interactive Widgets for Terminal UIs | 8,843 |
12 | usql | 8,235 |
13 | miller | 8,151 |
14 | Shiori | 7,909 |
15 | color | 6,562 |
16 | kafka-go | 6,559 |
17 | lf | 6,381 |
18 | lipgloss | 6,276 |
19 | promptui | 5,687 |
20 | elvish | 5,150 |
21 | go-prompt | 5,012 |
22 | termbox-go | 4,555 |
23 | pterm | 4,182 |