exec-pod-callback
Callback-style version of exec-pod:
Run a
pod
subcommand and buffer the output
const execPodCallback = ; ;
Installation
npm install exec-pod-callback
and make sure cocoapods
is installed.
API
const execPodCallback = ;
execPodCallback(subcommand [, args, options, cb])
subcommand: String
(one of the pod
subcommands to run e.g. install
)
args: Array
of strings (arguments passed to the command)
options: Object
cb: Function
(callback function which takes three arguments: error
, stdout
, stderr
)
Return: ChildProcess instance
It runs the given pod
subcommand and passes buffered stdout
/stderr
values to the callback function.
;
Options
All child_process#execFile
options and bundleExec
option are available.
options.bundleExec
Type: Boolean
Default: false
true
runs the pod
command with bundle exec
, instead of using globally installed pod
.
Related project
- exec-pod (Promises/A+ version)
License
Copyright (c) 2015 Shinnosuke Watanabe
Licensed under the MIT License.