shell / projekt.commons.shell / Shell
Shell¶
object Shell
Main class for shell helpers, by default non-root shell will be initialized.
Types¶
Name | Summary |
---|---|
Result | data class Result The result of executed command |
Functions¶
Name | Summary |
---|---|
exec | fun exec(command: String ): Shell.Result fun exec(commands: Array < String >): Shell.Result Executes command with initialized shell process |
reinitWithRoot | fun reinitWithRoot(): Unit Reinitialize shell process with root access |
rootAccess | fun rootAccess(): Boolean Check if root access is available |