Are you on Mac or Linux? Which Shell do you use? If you did not think about this question yet, chances are that you use good old Bash. I have used Bash for ages, but recently, switched my working environment to ZSH.
The reason? Amazing autocompletion and a ZSH configuration system called oh-my-zsh which has been praised a lot.
Now, I had some time over the christmas holidays to work on a FLOW3 plugin for oh-my-zsh, which supports the following features:
- The
flow3command is available everywhere inside the FLOW3 distribution, so you can call it from any subdirectory you want. - The
flow3command now supports autocompletion, both displaying the short help and the full help for a given command - Some additional helpers to easily run unit and functional tests:
f3unittestandf3functionaltest - A way to mark a FLOW3 distribution as active, and directly
cdinto any of its packages:cd /anywhere/you/want cd TYPO3.FLOW3
Oh, did I mention that you also get autocompletion for the package keys?
The full plugin is available on Github with installation instructions and a more in-depth readme. Go check it out!
… and of course tell me what you think; either via Twitter (@skurfuerst) or via replying
January 4, 2012 at 03:42
Being bored myself i actually tried the very same thing over the holidays, you just beat me in timing
.
I tried to create a typical zsh completion script, so our approaches may differ, but i hope we can somehow combine the scripts as i like some of your features.
- Autocompletion is basically the same.
- when you type “./flow3 doctrine:migrate” you won’t get the help entry, but the possible arguments will be listed ( so you will get a list of:
–dry-run — Whether to do a dry run or not
–output — A file to write SQL to, instead of executing it
–version — The version to migrate to
in zsh – style )
- the “package:*” commands will autocomplete available Packages from the PackageStates.php file.
- “./flow3 help ” will give you a list of command identifiers instead of the general help text.
my script is far from finished, but you can have a look here:
https://github.com/higrow/_flow3/
greets,
Martin
January 4, 2012 at 07:31
Very nice
I’d suggest that you fork my repository on GitHub and then submit pull requests
Greets, Sebastian