Open dolmen opened 8 years ago
As a side note, this is the approach I'm using in my Angel's Prompt project that has shell-specific features.
This approach also allows the startup of the program to be faster as the shell plugin will only be loaded when used (the use App::Spec::Completion::*
at the beginning of App::Spec must be removed as they are replaced by the require
).
Thanks, I'm planning some renaming (and lazy loading) anyway, so that it easier to have plugins.
I thought about App::Spec::Generator::Completion::*
angel-PS1 looks interesting =)
I would actually like to move the completion and pod generator to App::AppSpec, so that App::Spec(::Run) is the only thing you need to install for running the app.
Rename
App::Spec::Completion::Bash
toApp::Spec::Completion::bash
andApp::Spec::Completion::Zsh
toApp::Spec::Completion::zsh
. That will allow extension and simplifyApp::Spec::generate_completion
: