java.lang.Object
io.xpipe.core.process.ShellTypes.PosixBase
- All Implemented Interfaces:
ShellType
- Direct Known Subclasses:
ShellTypes.Bash,ShellTypes.Sh
- Enclosing class:
ShellTypes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncommandWithVariable(String key, String value, String command) createFileReadCommand(String file) createFileWriteCommand(String file) createInitFileContent(String command) createMkdirsCommand(String dirs) createWhichCommand(String executable) booleanvoidelevate(ShellProcessControl control, String command, String displayCommand) getEchoCommand(String s, boolean toErrorStream) abstract StringgetName()getPrintVariableCommand(String prefix, String name) getSetVariableCommand(String variableName, String value) queryShellProcessId(ShellProcessControl control) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.xpipe.core.process.ShellType
flatten, getDisplayName, getExecutable, getOrConcatenationOperator, getPrintVariableCommand, joinCommands
-
Constructor Details
-
PosixBase
public PosixBase()
-
-
Method Details
-
executeCommandListWithShell
- Specified by:
executeCommandListWithShellin interfaceShellType
-
getScriptEchoCommand
- Specified by:
getScriptEchoCommandin interfaceShellType
-
createFileDeleteCommand
- Specified by:
createFileDeleteCommandin interfaceShellType
-
createWhichCommand
- Specified by:
createWhichCommandin interfaceShellType
-
getScriptFileEnding
- Specified by:
getScriptFileEndingin interfaceShellType
-
getMakeExecutableCommand
- Specified by:
getMakeExecutableCommandin interfaceShellType
-
commandWithVariable
- Specified by:
commandWithVariablein interfaceShellType
-
getPauseCommand
- Specified by:
getPauseCommandin interfaceShellType
-
getName
-
createInitFileContent
- Specified by:
createInitFileContentin interfaceShellType
-
getPrintVariableCommand
- Specified by:
getPrintVariableCommandin interfaceShellType
-
getExitCommand
- Specified by:
getExitCommandin interfaceShellType
-
getConcatenationOperator
- Specified by:
getConcatenationOperatorin interfaceShellType
-
getTerminalFileOpenCommand
- Specified by:
getTerminalFileOpenCommandin interfaceShellType
-
elevate
public void elevate(ShellProcessControl control, String command, String displayCommand) throws Exception -
getExitCodeVariable
- Specified by:
getExitCodeVariablein interfaceShellType
-
getEchoCommand
- Specified by:
getEchoCommandin interfaceShellType
-
queryShellProcessId
- Specified by:
queryShellProcessIdin interfaceShellType- Throws:
Exception
-
getSetVariableCommand
- Specified by:
getSetVariableCommandin interfaceShellType
-
getNormalOpenCommand
- Specified by:
getNormalOpenCommandin interfaceShellType
-
executeCommandWithShell
- Specified by:
executeCommandWithShellin interfaceShellType
-
createMkdirsCommand
- Specified by:
createMkdirsCommandin interfaceShellType
-
createFileReadCommand
- Specified by:
createFileReadCommandin interfaceShellType
-
createFileWriteCommand
- Specified by:
createFileWriteCommandin interfaceShellType
-
createFileExistsCommand
- Specified by:
createFileExistsCommandin interfaceShellType
-
determineCharset
- Specified by:
determineCharsetin interfaceShellType- Throws:
Exception
-
getNewLine
- Specified by:
getNewLinein interfaceShellType
-
echoesInput
public boolean echoesInput()- Specified by:
echoesInputin interfaceShellType
-