docs(api): fix shell links

This commit is contained in:
Lucas Nogueira 2022-03-03 12:43:55 -03:00
parent 9d01dc6633
commit 3e18264d9e
No known key found for this signature in database
GPG Key ID: FFEA6C72E73482F1
1 changed files with 2 additions and 2 deletions

View File

@ -29,13 +29,13 @@
*
* This API has a scope configuration that forces you to restrict the programs and arguments that can be used.
*
* ### Restricting access to the [[`open`]] API
* ### Restricting access to the [[open | `open`]] API
*
* On the allowlist, `open: true` means that the [[open]] API can be used with any URL,
* as the argument is validated with the `^https?://` regex.
* You can change that regex by changing the boolean value to a string, e.g. `open: ^https://github.com/`.
*
* ### Restricting access to the [[`Command`]] APIs
* ### Restricting access to the [[Command | `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, cmd: string, sidecar?: bool, args?: boolean | Arg[] }`.