fix(shell): fix inlined docs for scope (#1656)

* fix(shell): fix inlined docs for scope

* Update plugins/shell/guest-js/index.ts

---------

Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app>
pull/1655/head
Amr Bashir 10 months ago committed by GitHub
parent 584eb61f16
commit 5081f30daf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -18,7 +18,7 @@
* *
* ### Restricting access to the {@link Command | `Command`} APIs * ### Restricting access to the {@link Command | `Command`} APIs
* *
* The plugin configuration object has a `scope` field that defines an array of CLIs that can be used. * The plugin permissions object has a `scope` field that defines an array of CLIs that can be used.
* Each CLI is a configuration object `{ name: string, cmd: 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 {@link Command.create | Command.create function}. * - `name`: the unique identifier of the command, passed to the {@link Command.create | Command.create function}.
@ -35,12 +35,13 @@
* *
* CLI: `git commit -m "the commit message"` * CLI: `git commit -m "the commit message"`
* *
* Configuration: * Capability:
* ```json * ```json
* { * {
* "plugins": { * "permissions": [
* "shell": { * {
* "scope": [ * "identifier": "shell:allow-execute",
* "allow": [
* { * {
* "name": "run-git-commit", * "name": "run-git-commit",
* "cmd": "git", * "cmd": "git",
@ -48,7 +49,7 @@
* } * }
* ] * ]
* } * }
* } * ]
* } * }
* ``` * ```
* Usage: * Usage:

Loading…
Cancel
Save