@.task.resolve.shebang()
APITask
查找与解析命令脚本
调用方法
- (command) -> [command, switch ...]
- (command, cwd) -> [command, switch ...]
- (command, cwd, env) -> [command, switch ...]
参数介绍
- command: String命令
- cwd: String可选可空工作目录
- env: Object<name, value>可选可空环境变量
返回内容
- command: String最终执行命令
- switch: String最终执行附带的参数
关联API