Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const logUpdate = require('log-update')
const cliSpinner = require('cli-spinners').dots10
const logSymbols = require('log-symbols')
const cliTruncate = require('cli-truncate')
const chalk = require('chalk')
const spawnSync = require('spawn-sync')
const osTmpdir = require('os-tmpdir')
// const debug = require('depurar')('lanyon')
const fs = require('fs')
const spawn = require('child_process').spawn
const _ = require('lodash')
class Executive {
constructor () {
this._opts = null
this._cmd = null
this._types = [ 'stdout', 'stderr' ]