feat(process): add explicitly granted process API
This commit is contained in:
1 parent
9922bfae98
commit
3ef18fb496
17 files changed
+433
-15
No files matched your search
@@ -0,0 +1,10 @@
|
||||
## 运行
|
||||
|
||||
`(程序, 参数列表)`
|
||||
|
||||
在项目模式下运行一个显式授权的可执行文件。程序路径必须与
|
||||
`--allow-process PROGRAM` 精确匹配;不经过 shell,清空环境变量,
|
||||
工作目录是项目根,stdin 为空。5 秒超时、1 MiB stdout/stderr 上限,
|
||||
结果形状为 `{status, stdout, stderr}`。
|
||||
|
||||
*resource.request("process.run", [程序, 参数列表])*
|
||||
Reference in new issue
Block a user