- All Superinterfaces:
AutoCloseable,Closeable,ProcessControl
-
Method Summary
Modifier and TypeMethodDescriptiondefault CommandProcessControlcommand(Function<ShellProcessControl, String> command) command(Function<ShellProcessControl, String> command, Function<ShellProcessControl, String> terminalCommand) default CommandProcessControlelevated(Predicate<ShellProcessControl> elevationFunction) elevation(SecretValue value) default booleanexecuteBooleanSimpleCommand(String command) voidexecuteCommand(String command) default voidexecuteSimpleCommand(String command) default StringexecuteStringSimpleCommand(ShellType type, String command) default StringexecuteStringSimpleCommand(String command) voidbooleanisLocal()default StringprepareTerminalOpen(String content) voidrestart()start()default ShellProcessControldefault ShellProcessControldefault ShellProcessControlsubShell(@NonNull Function<ShellProcessControl, String> command, BiFunction<ShellProcessControl, String, String> terminalCommand) Methods inherited from interface io.xpipe.core.process.ProcessControl
close, closeStdin, getCharset, getShellType, getStderr, getStdin, getStdout, isRunning, isStdinClosed, kill, write, writeLine
-
Method Details
-
prepareTerminalOpen
- Specified by:
prepareTerminalOpenin interfaceProcessControl- Throws:
Exception
-
prepareTerminalOpen
- Throws:
Exception
-
executeStringSimpleCommand
- Throws:
Exception
-
executeBooleanSimpleCommand
- Throws:
Exception
-
executeSimpleCommand
- Throws:
Exception
-
executeStringSimpleCommand
- Throws:
Exception
-
restart
- Throws:
Exception
-
isLocal
boolean isLocal() -
getOsType
OsType getOsType() -
elevated
-
elevation
-
getElevationPassword
SecretValue getElevationPassword() -
subShell
-
subShell
-
subShell
-
subShell
ShellProcessControl subShell(@NonNull @NonNull Function<ShellProcessControl, String> command, BiFunction<ShellProcessControl, String, String> terminalCommand) -
executeCommand
- Throws:
Exception
-
start
- Specified by:
startin interfaceProcessControl- Throws:
Exception
-
command
-
command
CommandProcessControl command(Function<ShellProcessControl, String> command, Function<ShellProcessControl, String> terminalCommand) -
command
-
command
-
exitAndWait
- Throws:
IOException
-