node-cjs
接口
SpawnSyncSimpleParams
定义于: node-cjs/tools.ts:23
属性
属性 | 类型 | 描述 | 定义于 |
---|---|---|---|
command | string | - | node-cjs/tools.ts:24 |
isFlow? | boolean | 是否流式输出内容 Description 默认输出的命令数据全部以流式的方式输出 默认值 true | node-cjs/tools.ts:31 |
isShowCommand? | boolean | 是否显示命令? Description 是否打印目前正在执行的命令? 默认值 true | node-cjs/tools.ts:39 |
parameters | string [] | - | node-cjs/tools.ts:25 |
printCurrentCommand? | (params : Pick <SpawnSyncSimpleParams , "command" | "parameters" >) => void | 打印当前运行的命令 | node-cjs/tools.ts:43 |
spawnOptions? | SpawnOptions | - | node-cjs/tools.ts:40 |
变量
defPrintCurrentCommand
ts
const defPrintCurrentCommand: SpawnSyncSimpleParams["printCurrentCommand"];
定义于: node-cjs/tools.ts:49
默认的打印当前运行命令 函数
函数
generateSpawnSync()
ts
function generateSpawnSync(spawnSyncSimpleParams): (...args) => Promise<SpawnSyncReturns<Buffer<ArrayBufferLike>>>
定义于: node-cjs/tools.ts:62
生成简单的执行命令函数
参数
参数 | 类型 |
---|---|
spawnSyncSimpleParams | SpawnSyncSimpleParams |
返回
Function
参数
参数 | 类型 |
---|---|
...args | any |
返回
Promise
<SpawnSyncReturns
<Buffer
<ArrayBufferLike
>>>
Description
对 spawnSync 做简单的包装
之前封装的是 execa 函数
Version
2
pathChange()
ts
function pathChange(path): string
定义于: node-cjs/tools.ts:15
路径转换工具
参数
参数 | 类型 |
---|---|
path | string |
返回
string
贡献者
暂无相关贡献者
页面历史
暂无最近变更历史