- All Superinterfaces:
AutoCloseable,Closeable,ProcessControl
-
Method Summary
Modifier and TypeMethodDescriptionvoidvoidcommand(FailableFunction<ShellControl, String, Exception> command) command(FailableFunction<ShellControl, String, Exception> command, FailableFunction<ShellControl, String, Exception> terminalCommand) default CommandControldefault CommandControlelevated(FailableFunction<ShellControl, Boolean, Exception> elevationFunction) elevationPassword(SecretValue value) default booleanexecuteBooleanSimpleCommand(String command) voidexecuteLine(String command) default voidexecuteSimpleCommand(String command) default voidexecuteSimpleCommand(String command, String failMessage) default StringexecuteStringSimpleCommand(ShellDialect type, String command) default StringexecuteStringSimpleCommand(String command) voidbooleanisLocal()voidonInit(Consumer<ShellControl> pc) prepareIntermediateTerminalOpen(String content) voidrestart()start()default ShellControlsubShell(@NonNull ShellDialect type) subShell(FailableFunction<ShellControl, String, Exception> command, FailableBiFunction<ShellControl, String, String, Exception> terminalCommand) default ShellControldefault ShellControlMethods inherited from interface io.xpipe.core.process.ProcessControl
close, closeStdin, getCharset, getShellDialect, getStderr, getStderrReader, getStdin, getStdout, getStdoutReader, isRunning, isStdinClosed, kill, sensitive, write, writeLine
-
Method Details
-
getCommandLock
Semaphore getCommandLock() -
onInit
-
prepareTerminalOpen
- Specified by:
prepareTerminalOpenin interfaceProcessControl- Throws:
Exception
-
prepareIntermediateTerminalOpen
- Throws:
Exception
-
getTemporaryDirectory
- Throws:
Exception
-
checkRunning
- Throws:
Exception
-
executeStringSimpleCommand
- Throws:
Exception
-
executeBooleanSimpleCommand
- Throws:
Exception
-
executeSimpleCommand
- Throws:
Exception
-
executeSimpleCommand
- Throws:
Exception
-
executeStringSimpleCommand
- Throws:
Exception
-
restart
- Throws:
Exception
-
isLocal
boolean isLocal() -
getOsType
OsType getOsType() -
elevated
-
elevationPassword
-
initWith
-
getElevationPassword
SecretValue getElevationPassword() -
subShell
-
subShell
-
subShell
-
subShell
ShellControl subShell(FailableFunction<ShellControl, String, Exception> command, FailableBiFunction<ShellControl, String, String, Exception> terminalCommand) -
executeLine
- Throws:
Exception
-
cd
- Throws:
Exception
-
start
- Specified by:
startin interfaceProcessControl- Throws:
Exception
-
command
-
command
CommandControl command(FailableFunction<ShellControl, String, Exception> command, FailableFunction<ShellControl, String, Exception> terminalCommand) -
command
-
command
-
exitAndWait
- Throws:
IOException
-