Home

Awesome

leg

Archived, now just using slog.


<img width="344" alt="Screenshot 2023-03-06 at 14 18 25" src="https://user-images.githubusercontent.com/2753855/223247609-2ab48185-b26f-4763-ba33-ecc9bdc6f07a.png">

GoDoc Build Status

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

Install

go get -u github.com/jesusprubio/leg

Dependencies

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")