nl_tokens: runCmd ( cmd useCmdOutput ) useCmdOutput = true = > the command output direct to std
pl_tokens: function runCmd ( cmd , useCmdOutput ) { if ( ! useCmdOutput ) grunt . log . writeln ( cmd [ 'grey' ] ) ; var shell = require ( 'shelljs' ) , result = shell . exec ( cmd , { silent : ! useCmdOutput } ) ; if ( result . code === 0 ) { if ( ! useCmdOutput ) grunt . log . writeln ( result . stdout [ 'white' ] ) ; } else { if ( ! useCmdOutput ) { grunt . log . writeln ( ) ; grunt . log . writeln ( <mask> . stderr [ 'yellow' ] ) ; } grunt . fail . warn ( '"' + cmd + '" failed.' ) ; } return result ; }