-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add plugins support and a bunch of other enhancements #6
Conversation
- source .cogconfig file for plugins - replace python directory finding code with pure bash solution - change cog script search functionality to search through an array of cog paths
- consolidate exports in cog main file - extend cog-help to search plugin directories - clean up cog-config
One thing that might be nice to solve with this "search path" update is making it possible to execute This doesn't always work, though, because we'll sometimes shove Craft in to a deeper folder like All this is to say: would it make sense to start at your current directory and go up the directory path until you find a This is similar to how With your changes I would think we could scan up the path and find the "project root" and push it in to that list of search paths? |
So this is a fairly big update, and I could definitely use some review.
Plugins
I added support for cog plugins. Essentially this just means additional search paths for cog- commands.
cog now sources ~/.cogconfig if it exists and reads a comma-separated list of plugin paths from the
COG_PLUGIN_DIRECTORIES=
variableThe
cog config
command will create the .cogconfig file in the user's home directory if it does not exist.Plugin Help
Hot on the tails of plugins is help for plugins.
The
cog help
command now searches the localbin
directory, plugin directories, and the base cog path for a.cog-help
script which outputs help information specific to that set of commands.Other enhancements
cog
with a pure Bash replacement