src/helpers/execute.js
function execute (str, { cwd }) {
  // command = replace(command, options);
  // command = prepend(command, options);

  let args = str.split(' ')
  const command = args.shift()
  args = [args.join(' ')]

  const subprocess = spawn(command, args, {
    detached: true,
    stdio: 'ignore',
    cwd
  })

  subprocess.unref()

  return subprocess.pid
}
function execute (str, { cwd }) {
  // command = replace(command, options);
  // command = prepend(command, options);

  let args = str.split(' ')
  const command = args.shift()
  args = [args.join(' ')]

  const subprocess = spawn(command, args, {
    detached: true,
    stdio: 'ignore',
    cwd
  })

  subprocess.unref()

  return subprocess.pid
}
function execute ( str , { cwd } ) { // command = replace(command, options);
 // command = prepend(command, options);
 let args = str . split ( ' ' ) const command = args . shift ( ) args = [ args . join ( ' ' ) ] const subprocess = spawn ( command , args , { detached : true , stdio : 'ignore' , cwd } ) subprocess . unref ( ) return subprocess . pid }
Execute an application.
@constructor
Execute an application .