Or you could save yourself some time and use/contribute to wpshell: http://code.trac.wordpress.org/browser/wpshell
It's helpful to look for prior art before starting a project. ;)
It's helpful to look for prior art before starting a project. ;)
The whole idea behind this project is that you can add wp-cli commands from within your plugins.
It's hard to blame someone for not finding prior art when this doesn't exist :)