فهرست منبع

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: