Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2355)

Issue 12308044: Plugins do their own argument processing (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 9 months ago by wallyworld
Modified:
10 years, 8 months ago
Reviewers:
dimitern, mp+178198, fwereade, rog
Visibility:
Public.

Description

Plugins do their own argument processing Juju now just passes all args directly to the plugins, which are responsible for doing their own parsing etc. This removes the need for having to use "--", but plugins now need to look at things like -e themselves. I also removed some duplicate tests and added some tests to ensure the built in plugins were registered correctly and properly output help text. https://code.launchpad.net/~wallyworld/juju-core/plugin-arg-handing/+merge/178198 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+97 lines, -153 lines) Patch
[revision details] View 1 chunk +2 lines, -0 lines 0 comments Download
cmd/juju/metadataplugin_test.go View 1 chunk +68 lines, -0 lines 0 comments Download
cmd/juju/plugin.go View 4 chunks +2 lines, -20 lines 0 comments Download
cmd/juju/plugin_test.go View 3 chunks +24 lines, -21 lines 0 comments Download
cmd/plugins/juju-metadata/metadata_test.go View 1 chunk +0 lines, -111 lines 0 comments Download
cmd/supercommand.go View 1 chunk +1 line, -1 line 1 comment Download

Messages

Total messages: 4
wallyworld
Please take a look.
10 years, 9 months ago (2013-08-02 04:03:23 UTC) #1
fwereade
LGTM.
10 years, 9 months ago (2013-08-02 17:00:23 UTC) #2
dimitern
Can you please repropose this, the diff is missing for most of the files.
10 years, 9 months ago (2013-08-07 13:29:46 UTC) #3
rog
10 years, 9 months ago (2013-08-07 16:00:40 UTC) #4
LGTM, thanks.

Given this change, do we still need to respect
the JUJU_ENV environment variable, or was that
considered useful independent of this?

https://codereview.appspot.com/12308044/diff/1/cmd/supercommand.go
File cmd/supercommand.go (right):

https://codereview.appspot.com/12308044/diff/1/cmd/supercommand.go#newcode447
cmd/supercommand.go:447: 
yay!
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b