跳至内容

关于 PR (Pull Request)

  1. 前提: 你应该先阅读 关于补全的 json 文件结构
  2. 你需要 fork PSCompletions 仓库, clone 到本地进行修改
  3. 修改完成后,提交并创建 PR

更新 json 文件内容

TIP

  • 完善补全的一些提示信息(tip 属性)
  • 添加补全的一些缺失的命令
  1. 链接补全进行测试

    shell
    .\scripts\link-completion.ps1 git
  2. 查看已知的未完成内容

    shell
    .\scripts\compare-json.ps1 git
  3. 完成后,更新 guid

    sh
    .\scripts\update-guid.ps1 git

添加语言

TIP

假设要为 git 添加 zh-HK 语言

  1. 修改 completions\git\config.json 文件,添加 zh-HKlanguage 属性中

  2. completions\git\language 目录下添加 zh-HK.json 文件

  3. 翻译 tip 属性的内容

  4. 完成后,更新 guid

    sh
    .\scripts\update-guid.ps1 git

添加新的命令补全

test 为例

  1. 创建新的补全

    shell
    .\scripts\create-completion.ps1 test
  2. 按需修改补全和 config.json

  3. 完成后,更新 guid

    sh
    .\scripts\update-guid.ps1 test