So, there are two completely different packages with their own package.json files and command sets. forcedroid and forceios. Each of these take some arguments... and they are in the same order. The arguments are then taken into the application and manipulated and/or used.
They are installed globally.
The commands to run each separately are as follows:
forceios create argv1 argv2 argv3 forcedroid create argv1 argv2 argv3
Ideally, I want to create one command to rule them all.
forceboth create argv1 argv2 argv3
I would like this command to execute each of the above.
Inspired from your question, I tried to write basic global node_module forceboth that can run both commands using only one
forceboth
.You can clone the repo and run
npm install -g
to install the package globally.Or, save the following code and run
node cmd.js create argv1 argv2 argv3
cmd.js
There can be issue with the code. Please update it, if you have any concern.