-
Notifications
You must be signed in to change notification settings - Fork 1
@142vip.utils.Variable.VipExecutor
mmdapl edited this page Oct 17, 2025
·
1 revision
API 参考 / @142vip/utils / VipExecutor
constVipExecutor:object
Defined in: packages/utils/src/core/exec.ts:221
执行器
commandStandardExecutor: (
cmd) =>Promise<StandardExecutorResponse>
标准Linux命令执行器
- 支持打印结果
- 异步
Promise<StandardExecutorResponse>
execCommand: (
cmd,opts?) =>Promise<CommandResponse>
异步执行命令,并返回结果
Omit<SpawnOptionsWithoutStdio, "stdio" | "cwd">
Promise<CommandResponse>
execCommandSync: (
cmd,cwd?) =>string
string
string
string
execShell: (
commands) =>Promise<void>
脚本执行器,执行shell命令
string | ShellCommand | ShellCommand[]
Promise<void>
getCommandTrimResponse: (
command) =>Promise<null|string>
获取命令执行的trim操作后的结果
string
Promise<null | string>
- @142vip/axios
- @142vip/changelog
- @142vip/commit-linter
- @142vip/copyright
- @142vip/data-source
- @142vip/eslint-config
- @142vip/fairy-cli
- @142vip/grpc
- @142vip/nest
- @142vip/nest-redis
- @142vip/nest-typeorm
- @142vip/oauth2.0
- @142vip/open-source
- @142vip/redis
- @142vip/release-version
- @142vip/typeorm
- @142vip/utils