feat(template): 新增项目模板管理命令 #2

Open
wdgde wants to merge 1 commits from feature/template into master
Owner

功能概述

新增项目模板管理命令,支持查看和应用 GitLink 平台的项目模板。

命令列表

  • template +list - 列出可用模板
  • template +view - 查看模板详情
  • template +apply - 应用模板到仓库

变更文件

  • shortcuts/template/template.go - 模板命令实现
  • shortcuts/template/template_test.go - 单元测试
  • shortcuts/register.go - 注册新模块
  • README.md / README.zh-CN.md - 更新文档

测试

go test ./shortcuts/template/... -v
## 功能概述 新增项目模板管理命令,支持查看和应用 GitLink 平台的项目模板。 ### 命令列表 - `template +list` - 列出可用模板 - `template +view` - 查看模板详情 - `template +apply` - 应用模板到仓库 ## 变更文件 - `shortcuts/template/template.go` - 模板命令实现 - `shortcuts/template/template_test.go` - 单元测试 - `shortcuts/register.go` - 注册新模块 - `README.md` / `README.zh-CN.md` - 更新文档 ## 测试 ```bash go test ./shortcuts/template/... -v ```
wdgde added 1 commit 2026-06-26 16:42:53 +08:00
CI / Build, Lint, Test (pull_request) Failing after 2m14s Details
d5e149e679
feat(template): 新增项目模板管理命令
新增 template 命令,支持项目模板的增删改查操作:
- +list: 列出所有模板
- +get: 获取模板详情
- +create: 创建新模板
- +update: 更新模板
- +delete: 删除模板
Some checks failed
CI / Build, Lint, Test (pull_request) Failing after 2m14s
This pull request can be merged automatically.
You are not authorized to merge this pull request.
You can also view command line instructions.

Step 1:

From your project repository, check out a new branch and test the changes.
git checkout -b feature/template master
git pull origin feature/template

Step 2:

Merge the changes and update on Gitea.
git checkout master
git merge --no-ff feature/template
git push origin master
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: wdgde/gitlink-cli#2
No description provided.