mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-12-15 07:05:21 +08:00
为大部分命令添加输出结构结构化数据
This commit is contained in:
@@ -58,13 +58,19 @@ const quickcommand = {
|
||||
{
|
||||
timeout: ms,
|
||||
},
|
||||
(err, stdout, stderr) => {
|
||||
() => {
|
||||
var end = new Date().getTime();
|
||||
callback(end - start);
|
||||
}
|
||||
);
|
||||
},
|
||||
|
||||
asyncSleep: async function (ms) {
|
||||
return new Promise((resolve) => {
|
||||
this.setTimeout(resolve, ms);
|
||||
});
|
||||
},
|
||||
|
||||
// 关闭进程
|
||||
kill: function (pid, signal = "SIGTERM", cb) {
|
||||
kill(pid, signal, cb);
|
||||
|
||||
Reference in New Issue
Block a user