Closed passsy closed 3 years ago
The difference between start and run was intentional.
The concept of run was 'here is this quick way to run a command without thinking about it and I don't need to process the output.
The start command is designed to provide detailed control over running a command and processing the output.
The key difference between being that start was about processing data whilst run wasn't.
The difference between start and startWithArgs was not intended and I agree that its should be modified to be identical to start.
I guess I would like to see broader community dissatisfaction with the differences between run and start before I modify the default behaviour of start.
The latest version of dcli makes start and startWithArgs consistent.
The run command hasn't been changed as it works as intended.
I switched from
startFromArgs
tostart
and noticed thatstdout/stderr
aren't printed. This was very unexpected.Current behavior
startFromArgs
usesProgress.print()
run
usesProgress(print, stderr: printerr)
which is equivalent toProgress.print()
start
usesProgress.devNull()
which is the fallback ofRunnableProcess.run
Please make sure that all 3 methods use
Progress.print()
as default.