docs: 文档修复 & 一些格式调整

This commit is contained in:
volare
2022-11-22 23:20:52 +08:00
parent 9b0b6b3b61
commit 75aa41c31f
6 changed files with 1503 additions and 1507 deletions

View File

@@ -1,13 +1,13 @@
import shelljs from 'shelljs';
import shelljs from "shelljs";
export function shellExec(command: string) {
return new Promise<number>((resolve, reject) => {
shelljs.exec(command, { async: true, silent: false}, (code) => {
if (code === 0) {
resolve(0);
} else {
reject(new Error(`${code}`));
}
});
shelljs.exec(command, { async: true, silent: false }, (code) => {
if (code === 0) {
resolve(0);
} else {
reject(new Error(`${code}`));
}
});
});
}