pub fn child_command(program: impl AsRef<OsStr>) -> CommandExpand description
A Command for a child that must not take a console window.
This is where the decision is made. Hiding used to be a second call the caller made after building the command, at seven sites across five crates, and a new spawn site that forgot it looked exactly like one that did not need it. Making it part of construction means the only way to get a child process is to have already answered the question.
The counterpart is terminal_command, for the single child that is meant
to be seen. There is no third option on purpose: a Command::new outside
this module is rejected by .sgrules/no-raw-command-new.yml.