If your function returns CliResult, you can return a value and some output in one object.
Note that output and error are written to stdout and stderr, in addition to whatever the function
did inside. It does NOT represent captured stuff, it is just a function return value.
If your function returns CliResult, you can return a value and some output in one object.
Note that output and error are written to stdout and stderr, in addition to whatever the function did inside. It does NOT represent captured stuff, it is just a function return value.