From cf29e0204300a1a0e450e537b3c19c49f85915f2 Mon Sep 17 00:00:00 2001 From: Jordan Baron <62375480+codedbyjordan@users.noreply.github.com> Date: Thu, 24 Feb 2022 07:37:47 -0500 Subject: [PATCH] Docs: change command to cmd (#3530) --- tooling/api/src/shell.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tooling/api/src/shell.ts b/tooling/api/src/shell.ts index 2127a9c73..72c77cfe5 100644 --- a/tooling/api/src/shell.ts +++ b/tooling/api/src/shell.ts @@ -38,11 +38,11 @@ * ### Restricting access to the [[`Command`]] APIs * * The `shell` allowlist object has a `scope` field that defines an array of CLIs that can be used. - * Each CLI is a configuration object `{ name: string, command: string, sidecar?: bool, args?: boolean | Arg[] }`. + * Each CLI is a configuration object `{ name: string, cmd: string, sidecar?: bool, args?: boolean | Arg[] }`. * * - `name`: the unique identifier of the command, passed to the [[Command.constructor | Command constructor]]. * If it's a sidecar, this must be the value defined on `tauri.conf.json > tauri > bundle > externalBin`. - * - `command`: the program that is executed on this configuration. If it's a sidecar, it must be the same as `name`. + * - `cmd`: the program that is executed on this configuration. If it's a sidecar, it must be the same as `name`. * - `sidecar`: whether the object configures a sidecar or a system program. * - `args`: the arguments that can be passed to the program. By default no arguments are allowed. * - `true` means that any argument list is allowed. @@ -59,7 +59,7 @@ * { * "scope": { * "name": "run-git-commit", - * "command": "git", + * "cmd": "git", * "args": ["commit", "-m", { "validator": "\\S+" }] * } * }