Skip to content

fredjeck/status

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Status : Write status messages to your terminal

Status provides tools to output short status messages (in a terminal) in a Linux/SysV init fashion.

Basic usage :

sw := status.NewWriter(termWidth)
sw.Pendingf("Doing some stuff %v", x)
sw.MkSuccess().Done()

Example :

screenshot

Currently status allows you to use 4 different statuses :

  • pending (....)
  • success (PASS)
  • warning (WARN)
  • failure (FAIL)

Please have a look at the godoc and at the unit tests for further usage details

A status message can be updated (text or status) until the "Done()" method is called.

Please note that status relies on ansicolor to add a bit of color in its output (with a windows support)

Status was initially developped for the gobot project and was written while learning/discovering go

About

A bunch of utilities to issue SysV/Linux boot style messages in a terminal

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages