更漂亮的 CLI 适合懒惰的开发人员
Archived, now just using slog.
Tiny wrapper to beauty command line application prototypes with a minimal effort.
go get -u github.com/jesusprubio/legVisit 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")暂无开放 Issues,或尚未同步最近议题。