蒋天翔
87767f5482
feat: P0 新增 show/demo/--web/--demo 命令与离线演示能力
...
- internal/web: URL Builder (16 模式) + 跨平台浏览器(单一 URL 来源)
- cmd/show: 12 子命令打印 GitLink 网页 URL(投影友好 + --format json)
- cmd/demo: +run showcase 离线演示脚本(自动 GITLINK_DEMO=1)
- internal/demo: Mock Transport + 20 fixtures + --demo flag(无网无 Token)
- shortcuts/common/web_post.go: --web 全局后处理(命令执行后打开网页)
- shortcuts/capability: +check 支持 --format 结构化输出
- scripts/verify.sh: 7 段分段验证脚本(编译/覆盖率/注册/E2E/联动)
- doc/: 验证报告 + 演示脚本 + 设计文档
- .gitignore: 排除验证临时产物与课程材料
2026-07-07 08:51:14 +08:00
蒋天翔
57c2811f48
新建 internal/web/ (url_builder.go + browser.go + 测试)
2026-07-07 08:51:12 +08:00
蒋天翔
0eb37dc2de
style: gofmt 格式化修正(import 排序 + 对齐)
...
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-05 10:28:22 +08:00
蒋天翔
c4769544ef
fix: 修复 wiki 命令参数传递 + auth token store 跨平台适配
2026-06-04 15:46:55 +08:00
wyxfzgg
ff14af90fa
fix: 修复 alias 单元测试,改为直接测试底层函数避免 cobra 集成问题
2026-06-04 11:05:54 +08:00
wyxfzgg
9474c1f432
test: 补充 alias/browse/status 单元测试
...
- 新增 cmd/alias/alias_test.go: 8 个测试(加载/保存/覆盖/删除/无效YAML/子命令结构)
- 新增 cmd/browse/browse_test.go: 5 个测试(命令结构/参数校验/示例内容)
- 新增 cmd/status/status_test.go: 5 个测试(命令结构/token来源判断)
关联 Issue: #14
2026-06-03 12:39:48 +08:00
wyxfzgg
a28a8eae8a
feat: 新增 alias/browse/status 三个开发者体验命令
...
- 新增 cmd/alias/alias.go: 管理命令别名 (+list/+set/+delete)
- 新增 cmd/browse/browse.go: 在浏览器中打开 GitLink 页面(跨平台)
- 新增 cmd/status/status.go: 显示登录状态和上下文信息
- 修改 cmd/root.go: 注册三个新命令
关联 Issue: #14
2026-06-03 11:50:33 +08:00
whzy
37dfd2e2e2
feat(i18n): add CLI localization foundation
2026-06-01 17:33:10 +08:00
wbtiger
0170b5b063
test: add comprehensive test coverage across all packages (88.5% → 90.3%)
...
Add 18 new test files covering formatter, envelope, config, auth,
client, context, register, and all shortcut group packages.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-31 15:41:54 +08:00
wbtiger
f7263cc466
chore: add golangci-lint config and fix lint issues
...
- Add .golangci.yml with 8 essential linters (errcheck, govet,
ineffassign, staticcheck, unused, errorlint, gosec, misspell)
- Fix real bugs: errors.As, %w wrapping, nil map check, dead code,
unnecessary conversion, unused parameters
- Add `make lint` target, include it in `make check` pipeline
- Update pre-commit hook to run lint step
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-31 00:37:45 +08:00
wbtiger
4631b81e5c
style: fix gofmt alignment in root.go and register.go
2026-05-29 23:59:40 +08:00
wbtiger
898b7f59d1
feat: add milestone, compare, pr reopen shortcuts and api enhancements ( #45 )
...
- milestone shortcuts: list, create, view, update, delete, close, reopen
- compare shortcuts: view, files (compare branches/tags/commits)
- pr +reopen: reopen closed pull requests
- api: add --body-file and --body-stdin for reading JSON from file/stdin
- comprehensive tests for all new shortcuts
Co-authored-by: wangyue111 <wangyue111>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-27 00:44:39 +08:00
wbtiger
e892370de8
init gitlink-cli
2026-04-17 10:01:30 +08:00