百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
L

leg

> 开发工具
开源

更漂亮的 CLI 适合懒惰的开发人员

196 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

更漂亮的 CLI 适合懒惰的开发人员

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 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Goclielegantgolanglogger

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类开发工具
定价开源

> 相关工具

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