ceo
|
afdead46e2
|
Merge pull request 'internal/gitea:API 用戶端、認證與輸出基礎(#5)' (#11) from feature/issue5-gitea-client into main
|
2026-09-10 08:39:02 +08:00 |
|
max
|
6951817313
|
internal/gitea:API 用戶端、認證與輸出基礎(#5)
- internal/gitea:僅標準庫的 HTTP 用戶端;ListAll 以 limit=50 逐頁抓滿
- 認證選序 --token → TEAI_TOKEN → tea 組態(--config/TEA_CONFIG/預設路徑);
token 不入輸出、日誌與錯誤訊息
- 共用輸出 --output json|table(預設 json)、--timeout(預設 30s)
- CLI 結束碼 0/2/3:用法錯誤 → 2、API 錯誤(*gitea.ErrAPI)→ 3
- 單元測試:認證選序、tea 組態解析、分頁、逾時/401/5xx 錯誤映射、輸出
實作 issue #5
|
2026-09-10 08:20:08 +08:00 |
|
chenyunda218
|
14edef066b
|
Merge pull request '初始化專案:Go 骨架與 CLI 進入點' (#2) from init/project into main
Reviewed-on: #2
|
2026-09-10 08:05:06 +08:00 |
|
ceo
|
2c851186d8
|
README:加入指令集設計(gitea.py 工作流的 Go 化藍圖)
|
2026-09-10 08:02:26 +08:00 |
|
 ceoandchenyunda218
|
bc46620d04
|
初始化專案:Go 模組骨架、CLI 進入點、README、測試
- go.mod(module gitea.alterminal.com/alterminal/teai,Go 1.26)
- cmd/teai/main.go:程式進入點,結束碼交由 internal/cli.Run 處理
- internal/cli:命令列架構(引數剖析、子命令分派、version 命令)
- internal/cli/cli_test.go:用法輸出、version、未知命令等基本測試
- README.md:專案說明、建置與開發慣例(繁體中文)
- .gitignore:建置產物、測試輸出、環境檔
- 僅使用標準庫,可離線建置;授權待維護者選定
Refs #1
|
2026-09-09 23:06:39 +08:00 |
|
ceo
|
50c428a2ba
|
引導:建立 main 分支(空 commit,內容由 PR #2 帶入)
|
2026-09-09 22:47:03 +08:00 |
|