Add a cwd cli flag / options property that defines what the current working directory should be. All instances of process.cwd() should be changed to options.cwd ?? process.cwd().
Definitely add cwd to all the cli commands that need it.
Probably also need to add cwd to a bunch of the RokuDeploy function options (anything that would use rootDir (which defaults to .cwd), maybe stagingDir, screenshotsDir, etc. Need to look closer at them all but that should get you started in the right direction.
Add a
cwd
cli flag / options property that defines what the current working directory should be. All instances ofprocess.cwd()
should be changed tooptions.cwd ?? process.cwd()
.Definitely add
cwd
to all the cli commands that need it.Probably also need to add
cwd
to a bunch of the RokuDeploy function options (anything that would use rootDir (which defaults to .cwd), maybe stagingDir, screenshotsDir, etc. Need to look closer at them all but that should get you started in the right direction.