docs: 文档修复 & 一些格式调整
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
## 安装
|
||||
|
||||
```bash
|
||||
npm install -g pake
|
||||
npm install -g pake-cli
|
||||
```
|
||||
|
||||
如果安装失败提示没有权限,请使用 `sudo` 运行。
|
||||
|
||||
@@ -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}`));
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
2972
bin/utils/tlds.ts
2972
bin/utils/tlds.ts
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user