Skip to content
This repository has been archived by the owner on Mar 18, 2024. It is now read-only.
/ leg Public archive

๐Ÿ”ˆ Nicer CLIs foz lazy devs

License

Notifications You must be signed in to change notification settings

jesusprubio/leg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

11 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

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