public interface ShellDialect
-
Method Summary
Modifier and TypeMethodDescriptionaddInlineVariablesToCommand(Map<String, String> variables, String command) default Stringdefault StringchangeTitleCommand(String newTitle) createFileExistsCommand(ShellControl sc, 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) executeWithNoInitFiles(ShellDialect parentDialect, String file) default 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()getMkdirsCommand(String dirs) default Stringdefault Stringdefault StringgetPrintExitCodeCommand(String prefix) default StringgetPushdCommand(String directory) getSetEnvironmentVariableCommand(String variable, String value) getWhichCommand(String executable) listFiles(FileSystem fs, ShellControl control, String dir) listRoots(ShellControl control) normalizeDirectory(ShellControl shellControl, String directory) prepareAskpassContent(ShellControl sc, String fileName, List<String> s) voidprepareScriptContent(String content) prepareTerminalInitFileOpenCommand(ShellDialect parentDialect, ShellControl sc, String file) default booleanrequiresScript(String content) setSecretEnvironmentVariableCommand(ShellControl sc, String variable, SecretValue value) sourceScript(String file)
-
Method Details
-
directoryExists
-
normalizeDirectory
-
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
-
flatten
-
getExitCommand
-
environmentVariable
-
getConcatenationOperator
-
getOrConcatenationOperator
-
getMakeExecutableCommand
-
prepareAskpassContent
- Throws:
Exception
-
getSetEnvironmentVariableCommand
-
setSecretEnvironmentVariableCommand
String setSecretEnvironmentVariableCommand(ShellControl sc, String variable, SecretValue value) throws Exception - Throws:
Exception
-
getEchoCommand
-
getPrintVariableCommand
-
getPrintExitCodeCommand
-
getPrintEnvironmentVariableCommand
-
getOpenCommand
String getOpenCommand() -
prepareTerminalInitFileOpenCommand
String prepareTerminalInitFileOpenCommand(ShellDialect parentDialect, ShellControl sc, String file) throws Exception - Throws:
Exception
-
runScript
-
sourceScript
-
executeCommandWithShell
-
getMkdirsCommand
-
getFileReadCommand
-
getPrintWorkingDirectoryCommand
String getPrintWorkingDirectoryCommand() -
getFileCopyCommand
-
getFileMoveCommand
-
requiresScript
-
createTextFileWriteCommand
-
getFileDeleteCommand
-
createFileExistsCommand
-
getFileTouchCommand
-
getWhichCommand
-
determineCharset
- Throws:
Exception
-
getNewLine
NewLine getNewLine() -
getId
String getId() -
getDisplayName
String getDisplayName() -
doesEchoInput
boolean doesEchoInput()
-