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) default voidexit(ShellControl sc) static Stringdefault StringgetCdCommand(String directory) default Stringdefault ShellDialectgetEchoCommand(String s, boolean toErrorStream) default StringgetFileCopyCommand(ShellControl parent, String oldFile, String newFile) getFileDeleteCommand(ShellControl parent, String file) getFileMoveCommand(ShellControl parent, String oldFile, String newFile) getFileReadCommand(ShellControl parent, String file) getFileTouchCommand(ShellControl parent, 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 booleanisCompatibleTo(ShellDialect other) default booleandefault 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) sourceScriptCommand(ShellControl parent, String file) symbolicLink(ShellControl sc, String linkFile, String targetFile)
-
Method Details
-
flatten
-
isSupportedShell
default boolean isSupportedShell() -
isSelectable
default boolean isSelectable() -
isCompatibleTo
-
getDumbReplacementDialect
-
getCatchAllVariable
String getCatchAllVariable() -
queryVersion
- Throws:
Exception
-
prepareUserTempDirectory
-
initFileName
- Throws:
Exception
-
directoryExists
-
evaluateExpression
-
resolveDirectory
-
fileArgument
-
quoteArgument
-
executeWithNoInitFiles
-
prepareDumbTerminalCommands
- Throws:
Exception
-
prepareProperTerminalCommands
String prepareProperTerminalCommands() -
appendToPathVariableCommand
-
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
-
exit
- Throws:
IOException
-
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
-
sourceScriptCommand
-
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()
-