actions/spawn-command

Methods

static spawnCommand (command, args, opt opt ) → {String}

Normalize a command across OS and spawn it (asynchronously).

Parameters:
Name Type Attributes Description
command String

program to execute

args Array

list of arguments to pass to the program

opt object <optional>

any cross-spawn options

Returns:
String -

spawned process reference

static spawnCommandSync (command, args, opt opt ) → {String}

Normalize a command across OS and spawn it (synchronously).

Parameters:
Name Type Attributes Description
command String

program to execute

args Array

list of arguments to pass to the program

opt object <optional>

any cross-spawn options

Returns:
String -

spawn.sync result