cmd/charm/charmcmd: simplify plugin processing #66

Merged
merged 1 commit into from May 26, 2016

Conversation

Projects
None yet
5 participants
Owner

rogpeppe commented May 25, 2016

With the help of a small addition to the juju/cmd API
we can avoid the need to register plugin commands in
advance, thus speeding up the charm command in the
common case. As a bonus this means we don't need
any of the custom (mostly duplicated) code to layer
on top of cmd.SuperCommand, so we can delete all that.

Member

jujugui commented May 25, 2016

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

Member

jrwren commented May 25, 2016

👍

Member

jujugui commented May 25, 2016

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

cmd/charm/charmcmd/cmd.go
- }
- if err != cmd.ErrSilent {
- fmt.Fprintf(ctx.Stderr, "error: %v\n", err)
+// New returns a command that can execute juju-charm
@urosj

urosj May 26, 2016

Owner

juju-charm?

Owner

urosj commented May 26, 2016

Code 👍

@fabricematrat could you do QA and check how this works with charm-tools before it lands?

Member

jujugui commented May 26, 2016

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

cmd/charm/charmcmd: simplify plugin processing
With the help of a small addition to the juju/cmd API
we can avoid the need to register plugin commands in
advance, thus speeding up the charm command in the
common case. As a bonus this means we don't need
any of the custom (mostly duplicated) code to layer
on top of cmd.SuperCommand, so we can delete all that.
Member

mhilton commented May 26, 2016

👍

Member

jujugui commented May 26, 2016

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

Owner

rogpeppe commented May 26, 2016

:shipit:

Member

jujugui commented May 26, 2016

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

@jujugui jujugui merged commit 58c72e4 into juju:master May 26, 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