跳转到内容

开发与发布

从源码运行:

Terminal window
make dev

测试和构建:

Terminal window
make test
make build

make build 将带版本信息的二进制写入 bin/leo。版本默认从 .envversion= 读取。

创建 tag 并递增 patch 版本,或显式指定版本:

Terminal window
make release
make release V=v0.1.0

构建多平台产物、推送 tag 并发布 GitHub Release:

Terminal window
make release-github
make release-github V=v0.1.0

release-github 需要已安装并登录 GitHub CLI

cmd/ Cobra command wiring
internal/config/ YAML config, default paths, path expansion
internal/dockercopy/ Docker image reference and registry alias resolution
internal/logview/ Safe log discovery, parsing, search, and follow
internal/logweb/ Authenticated HTTP APIs and embedded browser workspace
internal/project/ Current-project matching and root resolution
internal/repoindex/ Git repository scanning and metadata extraction
internal/repoui/ Bubble Tea repository picker
internal/store/ SQLite storage and migrations
scripts/ Release helper scripts