Subcommand plugins via cocoapods_plugin.rb file#3
Merged
alloy merged 1 commit intoCocoaPods:masterfrom Nov 8, 2013
Merged
Conversation
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.
This was referenced Nov 8, 2013
Member
|
Perfect, thanks again! |
alloy
added a commit
that referenced
this pull request
Nov 8, 2013
Subcommand plugins via `cocoapods_plugin.rb` file
Member
Contributor
Author
|
@orta LOL! |
Contributor
Author
Member
|
I also have a plugin! https://github.com/irrationalfab/cocoapods-docs |
Contributor
Author
|
👍 |
Member
|
@leshill - would you be interested in doing us a writeup on how to make a plugin as a post on the cocoapods blog? |
Contributor
Author
|
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? |
Member
|
Yeah, that sounds like exactly the kind of thing I would like to have. Cause we need to have docs for it somewhere. |
Member
|
I have added some bells and whistles in f925edc |
Member
|
Good idea! |
Contributor
Author
|
@irrationalfab 👍 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

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.rbwill be loadedvia 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
opencommand has been updated here https://github.com/leshill/open_pod_bay/tree/new_style