plugins list in help output #2

Merged
merged 1 commit into from Mar 21, 2016

Conversation

Projects
None yet
4 participants
Member

jrwren commented Mar 17, 2016

Also fixed plugin -h and help plugin output.

Owner

marcoceppi commented Mar 17, 2016

LGTM ⛵️

@mhilton mhilton closed this Mar 18, 2016

@mhilton mhilton reopened this Mar 18, 2016

Member

jujugui commented Mar 18, 2016

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
http://ci.jujugui.org:8080//job/charmstore-client/5/
Test FAILed.

cmd/charm/charmcmd/cmd.go
- chcmd.Register(&showCommand{})
- chcmd.Register(&termsCommand{})
- chcmd.Register(&whoamiCommand{})
+ commands := []cmd.Command{
@mhilton

mhilton Mar 18, 2016

Member

I wonder if this might be a little easier if it was a map? It might save you a few loops?

-// Since this is never actually called, we can happily return nil.
-func (*pluginCommand) Info() *cmd.Info {
- return nil
+// Info returns informationa bout the Command.
@mhilton

mhilton Mar 18, 2016

Member

*information about

+ }
+ name := pc.name
+ if name == "" {
+ name = pc.name
@mhilton

mhilton Mar 18, 2016

Member

This doesn't appear to do anything. Should there be a constant here?

@@ -100,10 +116,16 @@ func pluginHelpTopic() string {
return output.String()
}
+// getPluginDescriptionsResults holds memoized results for getPluginDescriptions.
+var getPluginDescriptionsResults []pluginDescription
@mhilton

mhilton Mar 18, 2016

Member

perhaps call this pluginDescriptionResults getPluginDescriptionResults made me think it was a function.

Member

mhilton commented Mar 18, 2016

👍 with some minor thoughts, and once jenkins is happy.

Member

jujugui commented Mar 21, 2016

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
http://ci.jujugui.org:8080//job/charmstore-client/16/
Test PASSed.

Member

jujugui commented Mar 21, 2016

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
http://ci.jujugui.org:8080//job/charmstore-client/17/
Test PASSed.

plugins list in help output
Also fixed `plugin -h` and `help plugin` output.
Member

jujugui commented Mar 21, 2016

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
http://ci.jujugui.org:8080//job/charmstore-client/18/
Test PASSed.

Member

jrwren commented Mar 21, 2016

:shipit:

Member

jujugui commented Mar 21, 2016

Status: merge request accepted. Url: http://ci.jujugui.org:8080/job/charmstore-client-merge

jujugui added a commit that referenced this pull request Mar 21, 2016

Merge pull request #2 from jrwren/master
plugins list in help output

Also fixed `plugin -h` and `help plugin` output.

@jujugui jujugui merged commit 5806aa6 into juju:master Mar 21, 2016

1 check passed

default Merged build finished.
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment