Skip to content
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

Subcommand plugins via cocoapods_plugin.rb file #3

Merged
merged 1 commit into from
Nov 8, 2013

Conversation

leshill
Copy link
Contributor

@leshill leshill commented Nov 8, 2013

Any CLAide Command can load subcommand plugins by setting the Command.plugin_prefix for the
command. Installed gems with a file named <plugin_prefix>_plugin.rb will be loaded
via that file. Convention is to require the actual command implementation in
the plugin file.

If Command.plugin_prefix is not set, no attempt is made to load any plugins.

PR CocoaPods/CocoaPods#1563 on CocoaPods to set the Command#plugin_prefix.

The open command has been updated here https://github.com/leshill/open_pod_bay/tree/new_style

Any CLAide Command can load subcommand plugins by setting the Command.plugin_prefix for the
command. Installed gems with a file named `<plugin_prefix>_plugin.rb` will be loaded
via that file. Convention is to require the actual command implementation in
the plugin file.

If Command.plugin_prefix is not set, no attempt is made to load any plugins.
@alloy
Copy link
Member

alloy commented Nov 8, 2013

Perfect, thanks again!

alloy added a commit that referenced this pull request Nov 8, 2013
Subcommand plugins via `cocoapods_plugin.rb` file
@alloy alloy merged commit 2de0aea into CocoaPods:master Nov 8, 2013
@orta
Copy link
Member

orta commented Nov 8, 2013

Our upcoming plugins:

http://i.imgur.com/dNpUSjp.gif

@leshill
Copy link
Contributor Author

leshill commented Nov 8, 2013

@orta LOL!

@leshill
Copy link
Contributor Author

leshill commented Nov 8, 2013

Hi @alloy, @irrationalfab, @orta

Thanks!

FYI the pod open plugin gem was renamed to cocoapods-open:

gem install cocoapods-open

@fabiopelosin
Copy link
Member

I also have a plugin! https://github.com/irrationalfab/cocoapods-docs

@leshill
Copy link
Contributor Author

leshill commented Nov 8, 2013

👍

@orta
Copy link
Member

orta commented Nov 8, 2013

@leshill - would you be interested in doing us a writeup on how to make a plugin as a post on the cocoapods blog?

@leshill
Copy link
Contributor Author

leshill commented Nov 8, 2013

Hi @orta,

Thanks for the offer, but I cannot. And honestly, it is very easy to do so. A blog post showing how to write your own subcommands would be great; and making the gem a plugin would be part of that?

@orta
Copy link
Member

orta commented Nov 8, 2013

Yeah, that sounds like exactly the kind of thing I would like to have. Cause we need to have docs for it somewhere.

@fabiopelosin
Copy link
Member

I have added some bells and whistles in f925edc

@alloy
Copy link
Member

alloy commented Nov 13, 2013

Good idea!

@leshill
Copy link
Contributor Author

leshill commented Nov 13, 2013

@irrationalfab

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants