public interface ShellDialect
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddInlineVariablesToCommand(Map<String, String> variables, CommandBuilder 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) deleteFileOrDirectory(ShellControl sc, 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) prepareTerminalInitFileOpenCommand(ShellDialect parentDialect, ShellControl sc, String file) prepareUserTempDirectory(ShellControl shellControl, String directory) queryVersion(ShellControl shellControl) default booleanrequiresScript(String content) resolveDirectory(ShellControl shellControl, String directory) runScriptCommand(ShellControl parent, String file) runScriptSilentlyCommand(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() -
getCatchAllVariable
String getCatchAllVariable() -
queryVersion
-
prepareUserTempDirectory
-
initFileName
- Throws:
Exception
-
directoryExists
-
evaluateExpression
-
resolveDirectory
-
fileArgument
-
quoteArgument
-
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
-
getScriptPermissionsCommand
-
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
-
runScriptCommand
-
runScriptSilentlyCommand
-
sourceScript
-
executeCommandWithShell
-
getMkdirsCommand
-
getFileReadCommand
-
getPrintWorkingDirectoryCommand
String getPrintWorkingDirectoryCommand() -
getScriptCharset
StreamCharset getScriptCharset() -
getFileCopyCommand
-
getFileMoveCommand
-
requiresScript
-
createTextFileWriteCommand
-
createScriptTextFileWriteCommand
-
deleteFileOrDirectory
-
clearDisplayCommand
String clearDisplayCommand() -
createFileExistsCommand
-
symbolicLink
-
getFileDeleteCommand
-
getFileTouchCommand
-
getWhichCommand
-
determineCharset
-
getNewLine
NewLine getNewLine() -
getId
String getId() -
getDisplayName
String getDisplayName() -
doesEchoInput
boolean doesEchoInput()
-