packages/plugin-shell/shell.js
function runner(done, errorShouldExit) {
    core.utils.sh(config.cmd, errorShouldExit, (err) => {
      if (config.triggerBrowserReloadAfter) {
        core.events.emit('reload'); // used by `@theme-tools/plugin-browser-sync`
      }
      done(err);
    });
  }
function runner(done, errorShouldExit) {
    core.utils.sh(config.cmd, errorShouldExit, (err) => {
      if (config.triggerBrowserReloadAfter) {
        core.events.emit('reload'); // used by `@theme-tools/plugin-browser-sync`
      }
      done(err);
    });
  }
function runner ( done , errorShouldExit ) { core . utils . sh ( config . cmd , errorShouldExit , ( err ) => { if ( config . triggerBrowserReloadAfter ) { core . events . emit ( 'reload' ) ; // used by `@theme-tools/plugin-browser-sync` } done ( err ) ; } ) ; }
Run shell
@param done
@param errorShouldExit {Boolean} [false] - Should it stop the script if an error happens?
Run shell