jesusprubio / leg

πŸ”ˆ Nicer CLIs foz lazy devs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

leg

Archived, now just using slog.


Screenshot 2023-03-06 at 14 18 25

GoDoc Build Status

Tiny wrapper to beauty command line application prototypes with a minimal effort.

  • Prints to stderr.
  • Thanks to color library:

Install

go get -u github.com/jesusprubio/leg

Dependencies

  • Go stable version.

Use

Visit the tests to check more details.

leg.Head("mumu", "🐘", "0.1.0")
leg.Info("Informational message", "")
leg.Success("Successful operation", "")
leg.Warn("Warn message", "")
leg.Error("Error message", "")
leg.Wait("Waiting for something", "")
leg.Done("Something finished", "")

leg.Info("Informational message with scope", "scope-0")

fmt.Print("deleted line")
leg.Remove()

leg.Result("To standard output")

About

πŸ”ˆ Nicer CLIs foz lazy devs

License:MIT License


Languages

Language:Go 100.0%