I'm looking for a way to test out some WP-CLI commands but from the Debug Bar Console where I normally test PHP. For cases when I don't want to switch windows to SSH, this might be a way to reuse/develop effective CLI methods outside of the CLI.
I've seen exec but it only shows me what appears to be the last line of the command.
echo exec('ls -la'); // -rw-rw-r-- 1 www-data www-data 18108 Jan 20 21:57 widgets.php
Has anyone tried to string a more complex set of commands together and in a way that is more human-readable?