Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
L

leg

> 开发工具
Open source

Nicer CLIs foz lazy devs

196 stars0 likes0 views
WebsiteGitHub

About

Nicer CLIs foz lazy devs

leg

Archived, now just using slog.


GoDoc Build Status

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

  • Prints to stderr.
  • Thanks to color library:
    • Cross platform.
    • Respects NO_COLOR.

Install

sg
go get -u github.com/jesusprubio/leg

Dependencies

  • Go stable version.

Use

Visit the tests to check more details.

go
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· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Goclielegantgolanglogger

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category开发工具
PricingOpen source

> Related tools

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具