async function run()

in scripts/internal/util.js [38:53]


async function run (name, args, { action, target, ...opts }) {
  console.error(green(`${action} for `) + (target ? blue(target) : green('root')) + green(' started'))
  const result = await exec(name, args, opts)

  if (result.error != null) {
    console.error(red(`${action} for ${target || 'root'} errored\n${inspect(result.error, { colors: true })}`))
    // eslint-disable-next-line no-throw-literal
    throw 1
  } else {
    console.error(
      green(`${action} for `) + (target ? blue(target) : green('root')) + green(' completed') +
      computeExtra(result)
    )
    if (result.status) throw result.status
  }
}