Skip to content
Coloured progress-bar for your Golang CLI
Go
Branch: master
Clone or download
Latest commit 7834997 Nov 9, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
vendor/github.com/morikuni/aec Initial Nov 9, 2019
.gitignore Initial Nov 9, 2019
Gopkg.lock Initial Nov 9, 2019
Gopkg.toml Initial Nov 9, 2019
LICENSE Create LICENSE Nov 9, 2019
README.md Update README.md Nov 9, 2019
main.go Initial Nov 9, 2019

README.md

cli-progress-animation

Example of progress animations and colour for a Golang CLI

ASCII Cinema:

asciicast

Status:

This is a sample which could be extended or make more generic as part of a task runner.

It combines WaitGroup with github.com/morikuni/aec for colour.

I wrote this around 2 years ago when wanting to generate ASCII animations for the OpenFaaS CLI - it's not made it into the CLI yet, but if you're interested in contributing, then please let me know :-)

Other work

Checkout:

  • My tech blog alexellis.io

  • k3sup - Installer for k3s and helm charts with strongly-typed parameters - works on any K8s cluster including RPi/ARM

  • inlets - HTTPS tunnels to your local network from anywhere

  • OpenFaaS - Serverless-style Functions & Microservices Made Simple on Kubernetes

Testing

Clone the repo into your GOPATH and go build

git clone https://github.com/alexellis/cli-progress-animation
You can’t perform that action at this time.