Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Output 'command' that is spawn #10

Closed
anodynos opened this issue Nov 23, 2012 · 1 comment
Closed

Output 'command' that is spawn #10

anodynos opened this issue Nov 23, 2012 · 1 comment

Comments

@anodynos
Copy link

I am heavily using grunt-shell and I have this under my belt

        if ( _.isFunction( data.callback ) ) {
            data.callback.call( this );
            return;
        }
        //   Output the command line
        if ( _.isFunction( dataOut ) ) {
            dataOut( "\u001b[33m" + data.command + '\u001b[0m');
          } else if ( dataOut === true ) {
            log.write( "\u001b[33m" + data.command + '\u001b[0m');
        }

        exec( data.command, data.execOptions, function( err, stdout, stderr ) {

Can it get into it ? Sorry no time for PR!

@sindresorhus
Copy link
Owner

Why, what's the usecase?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants