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 ResultThe result of executed command |
Functions¶
| Name | Summary |
|---|---|
| exec | fun exec(command:String):Shell.Resultfun exec(commands:Array<String>):Shell.ResultExecutes command with initialized shell process |
| reinitWithRoot | fun reinitWithRoot():UnitReinitialize shell process with root access |
| rootAccess | fun rootAccess():BooleanCheck if root access is available |