text method
Returns the shells stdout with any trailing newline stripped. Will throw a ShellException if the shell process did not exit with 0 as the exit code.
Implementation
@override
String text() {
_stringResult ??= _processResult(_rawResult);
return _stringResult!.replaceAll(base.$.trailingNewLineExp, "");
}