[英]How to print in console message from a process executing in gulp-run?
I am using gulp-run
in order to execute a command "vagrant up" (valid also for any other command). 我正在使用
gulp-run
来执行命令“无用功”(对其他任何命令同样有效)。
When running "vagrant up" in command prompt log messages are printed , when running the same command from gulp-run
no messages are printed in the command propmt. 在命令提示符中运行“无用启动”时, 将打印日志消息 ,而从
gulp-run
运行相同的命令时, 不会在命令propmt 中打印任何消息 。
My question: 我的问题:
gulp-run
in the command prompt where gulp-run
is executed? gulp-run
在命令提示符下gulp-run
执行? gulp.task('test', function () {
var cmd = new run.Command('vagrant up', {
cwd: '../util/vagrant_tools',
verbosity:2
});
cmd.exec();
})
将verbosity
选项设置为3
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.