浏览代码

fix scope example (#6401)

Changed `scope` example to provide an array, as described in the docs and how it works.
sameoldlab 2 年之前
父节点
当前提交
00c60097c5
共有 1 个文件被更改,包括 7 次插入5 次删除
  1. 7 5
      tooling/api/src/shell.ts

+ 7 - 5
tooling/api/src/shell.ts

@@ -57,11 +57,13 @@
  * Configuration:
  * ```json
  * {
- *   "scope": {
- *     "name": "run-git-commit",
- *     "cmd": "git",
- *     "args": ["commit", "-m", { "validator": "\\S+" }]
- *   }
+ *   "scope": [
+ *     {
+ *       "name": "run-git-commit",
+ *       "cmd": "git",
+ *       "args": ["commit", "-m", { "validator": "\\S+" }]
+ *     }
+ *   ]
  * }
  * ```
  * Usage: