Golang News http://golangnews.com Jobs, Code, Videos and News for Go hackers - everything about the go programming language Fri, 18 Mar 2022 01:19:00 +0000 Creating CLI commands, subcommands and flags with google/subcommands #cli <p>How to create CLI programs with multiple commands, flags and subcommands, and do it fast and simply?</p> <p><a href="https://github.com/google/subcommands" style="box-sizing: inherit; color: rgb(0, 162, 156);">google/subcommands</a>&nbsp;makes it a breeze.</p> <p>Let us see how.</p> 3 points posted by FGM https://osinet.fr/go/en/articles/cli-google-subcommands 4697 Sun, 06 Mar 2022 13:35:00 +0000 Neugram - a scripting language integrated with Go #cli #scripting #neugram <p>I started working on Neugram because as I spent more time programming in Go I found myself writing a larger fraction of the scripts better suited to Python or Perl in Go. My daily programming came to be dominated by bash and Go.</p> <p>The problem is, bash is an awkward language for a ~100 line program, and sometimes so is Go. While it is thoroughly enjoyable to use the same standard library in scripts as in big complex projects, Go is slower to work in than Python and Perl for a few reasons:</p> 9 points posted by kenny https://neugram.io/blog/neugram-briefly 2864 Sun, 29 Oct 2017 18:19:00 +0000 Formats: binary file explorer #cli Demo: https://asciinema.org/a/7uce44hzwvpi5dijxh0jpcc7g 9 points posted by martinlindhe https://github.com/martinlindhe/formats 899 Sat, 18 Jun 2016 17:35:00 +0000 tui-go - a UI library for terminal applications #graphics #cli 8 points posted by kenny https://github.com/marcusolsson/tui-go 2893 Sat, 04 Nov 2017 11:56:00 +0000 Digital Ocean command line tool #cli 8 points posted by kenny https://github.com/digitalocean/doctl 812 Thu, 05 May 2016 19:24:00 +0000 Trying to write scripts in Go #cli <p>This is a story about how I tried to use Go for scripting. In this story, I’ll discuss the need for a Go script, how we would expect it to behave and the possible implementations; During the discussion I’ll deep dive to scripts, shells, and shebangs. Finally, we’ll discuss solutions that will make Go scripts work.</p> <h2><a href="https://gist.github.com/posener/73ffd326d88483df6b1cb66e8ed1e0bd#why-go-is-good-for-scripting" aria-hidden="true" class="anchor" id="user-content-why-go-is-good-for-scripting" style="box-sizing: border-box; color: rgb(3, 102, 214); float: left; padding-right: 4px; margin-left: -20px; line-height: 1;"><svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a></h2> 7 points posted by kenny https://gist.github.com/posener/73ffd326d88483df6b1cb66e8ed1e0bd 2867 Mon, 30 Oct 2017 09:08:00 +0000 subcommands - a go subcommand library #cli 7 points posted by Donutloop https://github.com/google/subcommands 2859 Sat, 28 Oct 2017 06:06:00 +0000 gotime - a project/task manager #cli I wrote this project because all of the current to-do list programs were just that- to-do lists.<div>I needed something to track the time I spent on tasks of projects, and I didn't want to enter a new command to the console for every action.</div><div>Hopefully the community finds this useful. This is my first public project; constructive criticism is welcome.</div> 7 points posted by nanohard https://github.com/nanohard/gotime 2385 Sat, 08 Jul 2017 21:02:00 +0000 usql is a universal command-line interface for SQL databases #sql #cli usql is a universal command-line interface for working with SQL databases. usql provides a universal command line interface for the following databases: PostgreSQL, MySQL, Oracle, SQLite, and Microsoft SQL Server. The goal is to eventually have usql be a drop in replacement for PostgreSQL's psql command, with all the bells/whistles, but with the added benefit of working with more than one database. 7 points posted by kenny https://github.com/knq/usql 1871 Sat, 04 Mar 2017 21:09:00 +0000 Announcing gopass #cli #gpg #crypto gopass - The 'pass' compatible password manager for teams 7 points posted by tex https://www.justwatch.com/blog/post/announcing-gopass 1665 Thu, 02 Feb 2017 19:10:00 +0000 Colors - a small golang utility to print colorful output on terminal #cli #color A small golang utility to print colorful output on terminal 6 points posted by Amulya Ratan https://github.com/amulyakashyap09/colors 3410 Fri, 29 Jun 2018 11:05:00 +0000 🌈 wow - beautiful spinners and emoji for Go command line apps #cli 6 points posted by tomf https://github.com/gernest/wow 2781 Tue, 10 Oct 2017 13:44:00 +0000 sif - A minimal (and experimental) ACK written in Go #cli #search A minimal (and experimental) ACK written in Go by drgarcia1986 6 points posted by drgarcia1986 https://github.com/drgarcia1986/sif 1853 Fri, 03 Mar 2017 03:28:00 +0000 Writing better command line interfaces in Go #cli During my time at Nanobox, I’ve had the wonderful opportunity to do tons of development in Go, which has rapidly become my favorite language to develop in. At one point I was tasked with building our CLI tool and found two really great projects, Cobra and Viper, which make building CLI’s easy. Individually they are both great projects, but with their powers combined they are… no, not Captain Planet… but just as awesome! 6 points posted by tollela https://medium.com/@skdomino/writing-better-clis-one-snake-at-a-time-d22e50e60056 1769 Sat, 18 Feb 2017 14:18:00 +0000 Releases: Gonews - CLI to browser HackerNews and Reddit stories #cli Recently added Reddit (and subreddits) as a news provider. 6 points posted by drgarcia1986 https://github.com/drgarcia1986/gonews/releases/tag/0.1.0 1742 Wed, 15 Feb 2017 00:58:00 +0000 guinea - building command line interfaces in Go #cli Go library for building command line interfaces by boreq 6 points posted by gopher https://github.com/boreq/guinea 1720 Sun, 12 Feb 2017 08:30:00 +0000 aminal - a terminal emulator from scratch #cli Aminal is a modern terminal emulator for Mac/Linux implemented in Golang and utilising OpenGL. 5 points posted by tomf https://github.com/liamg/aminal 3694 Wed, 28 Nov 2018 06:38:00 +0000 cli - a simple, fast and complete API for building command line apps #cli <p>Package <code style="box-sizing: border-box; font-family: SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.600000381469727px; padding: 0.2em 0px; margin: 0px; background-color: rgba(27, 31, 35, 0.0470588); border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;">cli</code>&nbsp;provides a simple, fast and complete API for building command line applications in Go. In contrast to other libraries the emphasis is put on the definition and validation of positional arguments, handling of options from all levels in a single block as well as a minimalistic set of dependencies.</p> <p>The core of the module is the command, option and argument parsing logic. After a successful parsing the command action is evaluated passing a slice of (validated) positional arguments and a map of (validated) options. No more no less.</p> 5 points posted by teris-io https://github.com/teris-io/cli 2903 Mon, 06 Nov 2017 22:27:00 +0000 hnwatch - fetch stories from hacker news #hackernews #cli 5 points posted by gorer https://github.com/vetelko/hnwatch 1932 Tue, 14 Mar 2017 15:48:00 +0000 viper - go configuration with fangs #config #cli Viper is a complete configuration solution for go applications including 12 factor apps. It is designed to work within an application, and can handle all types of configuration needs and formats. 5 points posted by kenny https://github.com/spf13/viper 1738 Tue, 14 Feb 2017 21:30:00 +0000 K9s - 🐶 Kubernetes CLI To Manage Your Clusters In Style! #kubernetes #cli #kubectl K9s is written in GO and provides a curses based terminal UI to interact with your Kubernetes clusters. The aim of this project is to make it easier to navigate, observe and manage your applications in the wild. K9s continually watches Kubernetes for changes and offers subsequent commands to interact with observed resources. 4 points posted by Derailed https://medium.com/@fernand.galiana/if-you-k8s-please-try-k9s-82ea30eb9aa3 3834 Sun, 10 Mar 2019 16:43:00 +0000 Publish custom metrics to AWS CloudWatch using Golang #go #aws #monitoring #cli #devops 4 points posted by mlabouardy https://medium.com/@mlabouardy/publish-custom-metrics-to-aws-cloudwatch-18cb3bbff17c 3259 Sat, 24 Mar 2018 19:23:00 +0000 translate - Simple cli for translation #cli #go For cli lovers 4 points posted by hankmartinez https://github.com/hankmartinez/translate 3242 Mon, 19 Mar 2018 17:27:00 +0000 progressbar - a really basic thread-safe progressbar for Go programs #cli 4 points posted by Donutloop https://github.com/schollz/progressbar 2861 Sat, 28 Oct 2017 20:00:00 +0000 Manage questions and answers from command line in Go #cli 4 points posted by Asoseil https://github.com/tockins/interact 1874 Sun, 05 Mar 2017 20:41:00 +0000 Create plots from Prometheus metrics and send them to you #cli #metrics promplot is an opinionated tool to create plots from your Prometheus metrics and automatically sends them to you. 4 points posted by jorin https://github.com/qvl/promplot 1721 Sun, 12 Feb 2017 13:25:00 +0000 Creating cli applications in Go #cli Creating console applications in Golang 4 points posted by tomf http://blog.dutchcoders.io/creating-cli-applications-in-golang 1575 Thu, 19 Jan 2017 21:57:00 +0000 asciiConvert - Get ascii art for images from your terminal #cli-Tool asciiConvert - Get ascii art for images from your terminal 3 points posted by Kautilya Tripathi https://github.com/knrt10/asciiConvert 3554 Mon, 10 Sep 2018 12:08:00 +0000 VirusTotal wrapper for Go. No hassle URLs & files CLI scanning #virustotal #malware #golang #cli 3 points posted by mark https://github.com/moldabekov/virusgotal 3289 Fri, 13 Apr 2018 09:41:00 +0000 gdoc - Search & Read GoDoc.org via command-line #tooling #cli 3 points posted by mastabadtomm https://github.com/buraksezer/gdoc 3269 Thu, 29 Mar 2018 21:41:00 +0000 dayfolders - cli tool that creates daily folders. - #cli <span class="col-11 text-gray-dark mr-2" itemprop="about">It's a command line tool that creates daily folders to store files in a selectable period of time 3 points posted by cyd https://github.com/cydside/dayfolders 2310 Mon, 12 Jun 2017 09:53:00 +0000 Strumt is a library to create prompt chain edit #prompt #cli Strumt is a library to create prompt chain. It provides multiline prompt, input validation, retry on error, ability to customize prompt and error display, a recording of prompt session and the ability to easily test your prompt scenario. 2 points posted by antham https://github.com/antham/strumt 2345 Sun, 25 Jun 2017 12:50:00 +0000 A command line tool to open a repository in a browser #cli 0 points posted by Tania http://pliutau.com/o_simple_cli_to_open_repo_in_browser 2523 Wed, 16 Aug 2017 10:43:00 +0000