Package org.kiwiproject.base.process
Interface OsCommand
- All Known Implementing Classes:
VaultDecryptCommand,VaultEncryptCommand,VaultEncryptStringCommand,VaultRekeyCommand,VaultViewCommand
public interface OsCommand
Interface that describes a simple contract for an operating system command.
-
Method Summary
Modifier and TypeMethodDescriptionparts()Returns a list containing the command and all its arguments, which can then be used to construct aProcessBuilder.default String[]Returns a string array containing the command and all its arguments, which can be used to construct aProcessBuilder.
-
Method Details
-
parts
Returns a list containing the command and all its arguments, which can then be used to construct aProcessBuilder.- Returns:
- a list of command arguments
- See Also:
-
partsAsArray
Returns a string array containing the command and all its arguments, which can be used to construct aProcessBuilder.- Returns:
- a string array of command arguments
- See Also:
-