简体   繁体   中英

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).

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.

My question:

  • How could I show up log messages from the process being called when using gulp-run in the command prompt where gulp-run is executed?
  • If you know a better way to call this command in my gulp script, please let me know.

 gulp.task('test', function () {
        var cmd = new run.Command('vagrant up', {
            cwd: '../util/vagrant_tools',
            verbosity:2
        });
        cmd.exec();
    })

verbosity选项设置为3

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM