public static ProcessInfo mk(String command, String options) { return new ProcessInfo(mkCommandLine(command, options), NO_ENV, false); }
public static ProcessInfo mk(String commandLine, Map<String, String> environment, boolean redirectErrorStream) { return new ProcessInfo(mkCommandLine(commandLine), environment, redirectErrorStream); }
public static ProcessInfo mk(String command, String options, boolean redirectErrorStream) { return new ProcessInfo(mkCommandLine(command, options), NO_ENV, redirectErrorStream); }
public static ProcessInfo mk(String commandLine) { return new ProcessInfo(mkCommandLine(commandLine), NO_ENV, false); }
public static ProcessInfo mk(String commandLine, boolean redirectErrorStream) { return new ProcessInfo(mkCommandLine(commandLine), NO_ENV, redirectErrorStream); }
private static List<String> mkCommandLine(String command, String options) { return $(command).append(mkCommandLine(options)).toList(); }