加新脚本
两步,互不干扰。下文以 {域} 表示 build / file / git / process / misc / system 之一,{名} 表示你的脚本名。
1. 写业务逻辑到 lib/commands/{域}/{名}.py
域分类:build / file / git / process / misc / system。新建域记得加 lib/commands/{域}/__init__.py。
2. 加薄壳 bin/{名}
完成。无需注册任何字典或列表。
别名脚本(多个名字同一逻辑不同参数)
参考 merge_canary / merge_develop / ...:在 lib/commands/git/merge.py 暴露 run(target, argv),每个薄壳传固定 target: