This PR makes it possible to have commands with space in their parameter values and fix the counting of the end parameter.
How to test
Run the following command wp newspack-content-migrator migration-helper-output-batched 'wp newspack-content-migrator my-custom-migrator --param1=123 --param2="filename with space.zip"' --total-items=20 --batch-size=2 --begin-at=5
Notice the generated commands are breaking for the parameter with space param2
Notice the three last commands don't have an end parameter.
Pull this branch.
Run the same command.
Notice that the commands are generated with the spaced parameter on one line.
Notice the end parameter is set to all the commands.
This PR makes it possible to have commands with space in their parameter values and fix the counting of the
end
parameter.How to test
wp newspack-content-migrator migration-helper-output-batched 'wp newspack-content-migrator my-custom-migrator --param1=123 --param2="filename with space.zip"' --total-items=20 --batch-size=2 --begin-at=5
param2
end
parameter.end
parameter is set to all the commands.