It would be hugely useful to allow for the wp-cli.yml files to define "aliases" that work inside of the wp shell REPL.
These could be defined globally or per site, and would reduce the amount of typing necessary for heavy debugging/testing sessions. So, something like $obj = new \Vendor\Package\Module\AwesomeClass(); could be simplified by providing an alias like \Vendor\Package\Module\AwesomeClass => MyAwesomeClass, so that you can simply type: $obj = new MyAwesomeClass();.
The aliases could even support entire code snippets, for setup code you often need.
It would be hugely useful to allow for the
wp-cli.ymlfiles to define "aliases" that work inside of thewp shellREPL.These could be defined globally or per site, and would reduce the amount of typing necessary for heavy debugging/testing sessions. So, something like
$obj = new \Vendor\Package\Module\AwesomeClass();could be simplified by providing an alias like\Vendor\Package\Module\AwesomeClass => MyAwesomeClass, so that you can simply type:$obj = new MyAwesomeClass();.The aliases could even support entire code snippets, for setup code you often need.