public interface ShellDialect
-
Method Summary
Modifier and TypeMethodDescriptionaddInlineVariablesToCommand(Map<String, String> variables, String command) default Stringdefault StringchangeTitleCommand(String newTitle) createFileExistsCommand(ShellControl sc, String file) createScriptTextFileWriteCommand(ShellControl parent, String content, String file) createStreamFileWriteCommand(ShellControl shellControl, String file) createTextFileWriteCommand(ShellControl parent, String content, String file) determineCharset(ShellControl control) directoryExists(ShellControl shellControl, String directory) booleanenvironmentVariable(String name) evaluateExpression(ShellControl shellControl, String s) executeWithNoInitFiles(ShellDialect parentDialect, String file) static Stringdefault StringgetCdCommand(String directory) default StringgetEchoCommand(String s, boolean toErrorStream) default StringgetFileCopyCommand(String oldFile, String newFile) getFileDeleteCommand(String file) getFileMoveCommand(String oldFile, String newFile) getFileReadCommand(String file) getFileTouchCommand(String file) getId()default StringgetMkdirsCommand(String dirs) default Stringdefault Stringdefault StringgetPrintExitCodeCommand(String prefix) default StringgetPushdCommand(String directory) getSetEnvironmentVariableCommand(String variable, String value) getWhichCommand(String executable) default booleanlistFiles(FileSystem fs, ShellControl control, String dir) listRoots(ShellControl control) prepareAskpassContent(ShellControl sc, String fileName, List<String> s) voidprepareScriptContent(String content) prepareTempDirectory(ShellControl shellControl, String directory) prepareTerminalInitFileOpenCommand(ShellDialect parentDialect, ShellControl sc, String file) queryVersion(ShellControl shellControl) default booleanrequiresScript(String content) resolveDirectory(ShellControl shellControl, String directory) runScript(ShellControl parent, String file) setSecretEnvironmentVariableCommand(ShellControl sc, String variable, SecretValue value) sourceScript(String file) symbolicLink(ShellControl sc, String linkFile, String targetFile)
-
Method Details
-
flatten
-
isSupported
default boolean isSupported() -
queryVersion
-
prepareTempDirectory
-
initFileName
- Throws:
Exception
-
directoryExists
-
evaluateExpression
-
resolveDirectory
-
fileArgument
-
executeWithNoInitFiles
-
prepareDumbTerminalCommands
- Throws:
Exception
-
prepareProperTerminalCommands
String prepareProperTerminalCommands() -
applyRcFileCommand
-
changeTitleCommand
-
applyProfileFilesCommand
-
createStreamFileWriteCommand
-
getCdCommand
-
getPushdCommand
-
getPopdCommand
-
getScriptFileEnding
String getScriptFileEnding() -
addInlineVariablesToCommand
-
listFiles
Stream<FileSystem.FileEntry> listFiles(FileSystem fs, ShellControl control, String dir) throws Exception - Throws:
Exception
-
listRoots
- Throws:
Exception
-
getPauseCommand
String getPauseCommand() -
prepareScriptContent
-
getExitCommand
-
environmentVariable
-
getConcatenationOperator
-
getOrConcatenationOperator
-
getMakeExecutableCommand
-
prepareAskpassContent
- Throws:
Exception
-
getSetEnvironmentVariableCommand
-
setSecretEnvironmentVariableCommand
String setSecretEnvironmentVariableCommand(ShellControl sc, String variable, SecretValue value) throws Exception - Throws:
Exception
-
getEchoCommand
-
getPrintVariableCommand
-
getUsernameVariableName
String getUsernameVariableName() -
getPrintExitCodeCommand
-
getPrintEnvironmentVariableCommand
-
getOpenCommand
String getOpenCommand() -
getLoginOpenCommand
-
prepareTerminalInitFileOpenCommand
-
runScript
-
sourceScript
-
executeCommandWithShell
-
getMkdirsCommand
-
getFileReadCommand
-
getPrintWorkingDirectoryCommand
String getPrintWorkingDirectoryCommand() -
getScriptCharset
StreamCharset getScriptCharset() -
getFileCopyCommand
-
getFileMoveCommand
-
requiresScript
-
createTextFileWriteCommand
-
createScriptTextFileWriteCommand
-
getFileDeleteCommand
-
createFileExistsCommand
-
symbolicLink
-
getFileTouchCommand
-
getWhichCommand
-
determineCharset
-
getNewLine
NewLine getNewLine() -
getId
String getId() -
getDisplayName
String getDisplayName() -
doesEchoInput
boolean doesEchoInput()
-