There are certain configuration settings that are useful to be able to mutate on an existing $ rather than constructing a new one. This mutable configuration should never be anything that could potentially break other code, but for logging purposes being able to modify if a command is printed to the console seems useful.
So instead of:
import { build$, CommandBuilder } from "...";
const $ = build$({
commandBuilder: new CommandBuilder().printCommand(),
});
There are certain configuration settings that are useful to be able to mutate on an existing
$
rather than constructing a new one. This mutable configuration should never be anything that could potentially break other code, but for logging purposes being able to modify if a command is printed to the console seems useful.So instead of:
Users could do: