java.lang.Object
io.xpipe.core.process.ShellTypes.PowerShell
- All Implemented Interfaces:
ShellType
- Enclosing class:
ShellTypes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateFileReadCommand(String file) createFileWriteCommand(String file) createInitFileContent(String command) createMkdirsCommand(String dirs) createWhichCommand(String executable) determineCharset(ShellProcessControl control) booleanvoidelevate(ShellProcessControl control, String command, String displayCommand) escapeStringValue(String input) getEchoCommand(String s, boolean toErrorStream) getName()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
commandWithVariable, flatten, getExitCommand, getPrintVariableCommand, getScriptEchoCommand, joinCommands
-
Constructor Details
-
PowerShell
public PowerShell()
-
-
Method Details
-
getOrConcatenationOperator
- Specified by:
getOrConcatenationOperatorin interfaceShellType
-
getExecutable
- Specified by:
getExecutablein interfaceShellType
-
getPrintVariableCommand
- Specified by:
getPrintVariableCommandin interfaceShellType
-
getSetVariableCommand
- Specified by:
getSetVariableCommandin interfaceShellType
-
executeCommandListWithShell
- Specified by:
executeCommandListWithShellin interfaceShellType
-
queryShellProcessId
- Specified by:
queryShellProcessIdin interfaceShellType- Throws:
IOException
-
getConcatenationOperator
- Specified by:
getConcatenationOperatorin interfaceShellType
-
getMakeExecutableCommand
- Specified by:
getMakeExecutableCommandin interfaceShellType
-
echoesInput
public boolean echoesInput()- Specified by:
echoesInputin interfaceShellType
-
getScriptFileEnding
- Specified by:
getScriptFileEndingin interfaceShellType
-
getPauseCommand
- Specified by:
getPauseCommandin interfaceShellType
-
createInitFileContent
- Specified by:
createInitFileContentin interfaceShellType
-
getTerminalFileOpenCommand
- Specified by:
getTerminalFileOpenCommandin interfaceShellType
-
escapeStringValue
-
elevate
public void elevate(ShellProcessControl control, String command, String displayCommand) throws Exception -
getExitCodeVariable
- Specified by:
getExitCodeVariablein interfaceShellType
-
getEchoCommand
- Specified by:
getEchoCommandin interfaceShellType
-
getNormalOpenCommand
- Specified by:
getNormalOpenCommandin interfaceShellType
-
executeCommandWithShell
- Specified by:
executeCommandWithShellin interfaceShellType
-
createFileReadCommand
- Specified by:
createFileReadCommandin interfaceShellType
-
createFileWriteCommand
- Specified by:
createFileWriteCommandin interfaceShellType
-
createMkdirsCommand
- Specified by:
createMkdirsCommandin interfaceShellType
-
createFileDeleteCommand
- Specified by:
createFileDeleteCommandin interfaceShellType
-
createFileExistsCommand
- Specified by:
createFileExistsCommandin interfaceShellType
-
createWhichCommand
- Specified by:
createWhichCommandin interfaceShellType
-
determineCharset
- Specified by:
determineCharsetin interfaceShellType- Throws:
Exception
-
getNewLine
- Specified by:
getNewLinein interfaceShellType
-
getName
-
getDisplayName
- Specified by:
getDisplayNamein interfaceShellType
-