dashlights

command module
v0.0.0-...-7fa667d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 3, 2017 License: MIT Imports: 8 Imported by: 0

README

Dashlights

Go Report Card

turn ENV vars into dashboard diagnostic lights for your shell

Dashlights is a simple binary that you drop somewhere in your PATH. It lets you turn this:

~
❯ export DASHLIGHT_HEXAGRAM_4DCB_FGRED="get up and stretch a bit" DASHLIGHT_LINK_1F517="VPN is up"

into this:

~
䷋  🔗
❯

Why?

From time to time, you may want to bring attention to the fact that you're operating in a certain state or mode, and highlight this in your shell. Dashlights provides a simple interface between shell functions or aliases and a dash display, via exported ENV vars.

Any time you export a var of the following form in your shell, dashlights can parse it and render a UTF-8 glyph, with optional foreground and background coloring applied:

 prefix            utf8 hexcode
DASHLIGHTS_BULBNAME_HEXSTRING_OPTIONALCOLORS...
             label              one or more color codes

Usage

Usage: dashlights [--obd] [--list] [--clear]

Options:
  --obd, -d              On-Board Diagnostics: display diagnostic info if provided.
  --list, -l             List supported color attributes.
  --clear, -c            Shell code to clear set dashlights.
  --help, -h             display this help and exit

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL