public interface ShellDialect
-
Method Summary
Modifier and TypeMethodDescriptionaddInlineVariablesToCommand(Map<String, String> variables, String command) default StringcreateStreamFileWriteCommand(ShellControl shellControl, String file) createTextFileWriteCommand(ShellControl parent, String content, String file) determineCharset(ShellControl control) directoryExists(ShellControl shellControl, String directory) booleanenvironmentVariable(String name) default Stringdefault StringgetCdCommand(String directory) default StringgetEchoCommand(String s, boolean toErrorStream) default StringgetFileCopyCommand(String oldFile, String newFile) getFileDeleteCommand(String file) getFileExistsCommand(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) default StringgetSetEnvironmentVariableCommand(String variable, String value) getWhichCommand(String executable) listFiles(FileSystem fs, ShellControl control, String dir) listRoots(ShellControl control) normalizeDirectory(ShellControl shellControl, String directory) prepareInitFileOpenCommand(ShellControl parent, String file) prepareScriptContent(String content) sourceScript(String file)
-
Method Details
-
directoryExists
-
normalizeDirectory
-
fileArgument
-
applyRcFileCommand
-
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
-
getSelfdeleteEchoScriptContent
-
getSetEnvironmentVariableCommand
-
getEchoCommand
-
getPrintVariableCommand
-
getPrintExitCodeCommand
-
getPrintEnvironmentVariableCommand
-
getNormalOpenCommand
String getNormalOpenCommand() -
prepareInitFileOpenCommand
-
runScript
-
sourceScript
-
executeCommandWithShell
-
getMkdirsCommand
-
getFileReadCommand
-
getPrintWorkingDirectoryCommand
String getPrintWorkingDirectoryCommand() -
getFileCopyCommand
-
getFileMoveCommand
-
createTextFileWriteCommand
-
getFileDeleteCommand
-
getFileExistsCommand
-
getFileTouchCommand
-
getWhichCommand
-
determineCharset
- Throws:
Exception
-
getNewLine
NewLine getNewLine() -
getId
String getId() -
getDisplayName
String getDisplayName() -
doesEchoInput
boolean doesEchoInput()
-