Commands
Permissions
Example
{
// ...
"plugin": {
"permissions": {
"allow": {
"readPaths": ["$DOWNLOAD"],
"writePaths": ["$DOWNLOAD"]
},
"commandScopes": [
{
"command": "ls",
"args": [{ "value": "-la" }, { "validator": "$PATH" }]
},
{
"command": "grep",
"args": [{ "value": "Hello" }, { "validator": "$PATH" }]
},
{
"command": "sort",
"args": []
},
{
"command": "echo",
"args": [{ "validator": "$ARGS" }]
},
{
"command": "open",
"args": [{ "validator": "^https?://.*$" }]
}
]
}
}
}Command (sync)
Command (async)
Last updated