feat(alias): add alias command group with quote-aware expansion #371
Loading…
Reference in New Issue
No description provided.
Delete Branch "heke1228/gitlink-cli:feat/alias"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
背景
对标
gh alias:把常用命令行存为用户自定义快捷方式。改动
新增
alias根命令组:set/list/delete/import(import 从 --file 或 stdin 读 YAMLname: expansion,合并语义)。别名存config.yaml的aliases字段(复用 yaml.v3)。展开接入根分发:Execute()里若首个位置参数命中别名,按 shell 风格(识别单双引号)拆分后重派发;内置命令始终优先,别名无法遮蔽真实命令;展开在翻译器解析之后,--lang不受影响。双语 i18n(各 15 键)+ 测试(配置往返 / set/list/delete / 文件+stdin 导入 / 非法 YAML / 展开命中·内置优先·引号拆分)。验证
go build ./...、go test ./...通过。