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

Issue 7338048: This branch refactors the Command interface.

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 2 months ago by thumper2
Modified:
11 years, 2 months ago
Reviewers:
dimitern, mp+149183, dave
Visibility:
Public.

Description

This branch refactors the Command interface. Firstly it separates the setting of the flags from the parsing and the command initialisation. Some command test helper functions also added to juju-core/testing https://code.launchpad.net/~thumper/juju-core/command-set-flags/+merge/149183 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 33

Patch Set 2 : This branch refactors the Command interface. #

Patch Set 3 : This branch refactors the Command interface. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+349 lines, -361 lines) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M cmd/cmd.go View 1 2 chunks +41 lines, -10 lines 0 comments Download
M cmd/cmd_test.go View 2 chunks +5 lines, -4 lines 0 comments Download
M cmd/filevar_test.go View 2 chunks +2 lines, -3 lines 0 comments Download
M cmd/juju/addrelation.go View 1 chunk +4 lines, -5 lines 0 comments Download
M cmd/juju/addrelation_test.go View 2 chunks +1 line, -7 lines 0 comments Download
M cmd/juju/addunit.go View 1 chunk +4 lines, -5 lines 0 comments Download
M cmd/juju/addunit_test.go View 2 chunks +1 line, -6 lines 0 comments Download
M cmd/juju/bootstrap.go View 1 chunk +5 lines, -5 lines 0 comments Download
M cmd/juju/cmd_test.go View 1 12 chunks +12 lines, -16 lines 0 comments Download
M cmd/juju/deploy.go View 2 chunks +4 lines, -5 lines 0 comments Download
M cmd/juju/deploy_test.go View 3 chunks +2 lines, -8 lines 0 comments Download
M cmd/juju/destroyenvironment.go View 1 chunk +5 lines, -5 lines 0 comments Download
M cmd/juju/destroymachine.go View 1 chunk +4 lines, -5 lines 0 comments Download
M cmd/juju/destroymachine_test.go View 2 chunks +1 line, -7 lines 0 comments Download
M cmd/juju/destroyrelation.go View 1 chunk +4 lines, -5 lines 0 comments Download
M cmd/juju/destroyrelation_test.go View 2 chunks +1 line, -7 lines 0 comments Download
M cmd/juju/destroyservice.go View 1 chunk +4 lines, -5 lines 0 comments Download
M cmd/juju/destroyservice_test.go View 2 chunks +1 line, -7 lines 0 comments Download
M cmd/juju/destroyunit.go View 1 chunk +5 lines, -5 lines 0 comments Download
M cmd/juju/destroyunit_test.go View 2 chunks +1 line, -6 lines 0 comments Download
M cmd/juju/expose.go View 1 chunk +4 lines, -5 lines 0 comments Download
M cmd/juju/expose_test.go View 2 chunks +1 line, -6 lines 0 comments Download
M cmd/juju/generateconfig.go View 1 chunk +5 lines, -5 lines 0 comments Download
M cmd/juju/get.go View 1 chunk +4 lines, -5 lines 0 comments Download
M cmd/juju/resolved.go View 1 chunk +4 lines, -5 lines 0 comments Download
M cmd/juju/resolved_test.go View 2 chunks +1 line, -7 lines 0 comments Download
M cmd/juju/scp.go View 1 chunk +6 lines, -6 lines 0 comments Download
M cmd/juju/set.go View 1 chunk +4 lines, -5 lines 0 comments Download
M cmd/juju/ssh.go View 1 2 1 chunk +4 lines, -5 lines 0 comments Download
M cmd/juju/status.go View 1 2 1 chunk +5 lines, -5 lines 0 comments Download
M cmd/juju/unexpose.go View 1 chunk +4 lines, -5 lines 0 comments Download
M cmd/juju/unexpose_test.go View 2 chunks +1 line, -6 lines 0 comments Download
M cmd/juju/upgradejuju.go View 3 chunks +8 lines, -10 lines 0 comments Download
M cmd/juju/upgradejuju_test.go View 1 3 chunks +3 lines, -5 lines 0 comments Download
M cmd/jujud/agent_test.go View 4 chunks +5 lines, -13 lines 0 comments Download
M cmd/jujud/bootstrap.go View 1 chunk +6 lines, -6 lines 0 comments Download
M cmd/jujud/bootstrap_test.go View 1 2 1 chunk +1 line, -1 line 0 comments Download
M cmd/jujud/machine.go View 1 chunk +6 lines, -6 lines 0 comments Download
M cmd/jujud/main_test.go View 1 chunk +5 lines, -5 lines 0 comments Download
M cmd/jujud/unit.go View 1 chunk +6 lines, -6 lines 0 comments Download
M cmd/jujud/version.go View 1 chunk +5 lines, -5 lines 0 comments Download
M cmd/logging_test.go View 2 chunks +2 lines, -2 lines 0 comments Download
M cmd/output_test.go View 1 chunk +5 lines, -5 lines 0 comments Download
M cmd/supercommand.go View 1 2 chunks +21 lines, -13 lines 0 comments Download
M cmd/supercommand_test.go View 2 chunks +3 lines, -2 lines 0 comments Download
M cmd/util_test.go View 2 chunks +5 lines, -9 lines 0 comments Download
A testing/cmd.go View 1 1 chunk +50 lines, -0 lines 0 comments Download
M worker/uniter/jujuc/config-get.go View 1 chunk +4 lines, -5 lines 0 comments Download
M worker/uniter/jujuc/config-get_test.go View 2 chunks +2 lines, -2 lines 0 comments Download
M worker/uniter/jujuc/juju-log.go View 1 chunk +4 lines, -5 lines 0 comments Download
M worker/uniter/jujuc/juju-log_test.go View 3 chunks +4 lines, -6 lines 0 comments Download
M worker/uniter/jujuc/ports.go View 1 chunk +5 lines, -5 lines 0 comments Download
M worker/uniter/jujuc/ports_test.go View 4 chunks +5 lines, -3 lines 0 comments Download
M worker/uniter/jujuc/relation-get.go View 1 chunk +4 lines, -5 lines 0 comments Download
M worker/uniter/jujuc/relation-ids.go View 1 chunk +4 lines, -5 lines 0 comments Download
M worker/uniter/jujuc/relation-list.go View 1 chunk +4 lines, -5 lines 0 comments Download
M worker/uniter/jujuc/relation-set.go View 1 chunk +4 lines, -5 lines 0 comments Download
M worker/uniter/jujuc/relation-set_test.go View 2 chunks +2 lines, -1 line 0 comments Download
M worker/uniter/jujuc/server_test.go View 1 chunk +5 lines, -5 lines 0 comments Download
M worker/uniter/jujuc/unit-get.go View 1 chunk +4 lines, -5 lines 0 comments Download
M worker/uniter/jujuc/unit-get_test.go View 5 chunks +15 lines, -17 lines 0 comments Download
M worker/uniter/jujuc/util_test.go View 2 chunks +0 lines, -8 lines 0 comments Download

Messages

Total messages: 6
thumper2
Please take a look.
11 years, 2 months ago (2013-02-19 01:04:34 UTC) #1
dave_cheney.net
LGTM, modulo small stylistic comments. https://codereview.appspot.com/7338048/diff/1/cmd/cmd.go File cmd/cmd.go (right): https://codereview.appspot.com/7338048/diff/1/cmd/cmd.go#newcode25 cmd/cmd.go:25: // Add command specific ...
11 years, 2 months ago (2013-02-19 01:30:26 UTC) #2
dimitern
LGTM, modulo the below comments. Very nice otherwise! https://codereview.appspot.com/7338048/diff/1/cmd/cmd.go File cmd/cmd.go (right): https://codereview.appspot.com/7338048/diff/1/cmd/cmd.go#newcode108 cmd/cmd.go:108: switch ...
11 years, 2 months ago (2013-02-19 08:25:00 UTC) #3
thumper2
Pushing up the changes. https://codereview.appspot.com/7338048/diff/1/cmd/cmd.go File cmd/cmd.go (right): https://codereview.appspot.com/7338048/diff/1/cmd/cmd.go#newcode25 cmd/cmd.go:25: // Add command specific flags ...
11 years, 2 months ago (2013-02-19 21:43:37 UTC) #4
thumper2
Please take a look.
11 years, 2 months ago (2013-02-19 21:53:16 UTC) #5
thumper2
11 years, 2 months ago (2013-02-19 22:13:50 UTC) #6
*** Submitted:

This branch refactors the Command interface.

Firstly it separates the setting of the flags from the parsing and the command
initialisation.

Some command test helper functions also added to juju-core/testing

R=dfc, dimitern
CC=
https://codereview.appspot.com/7338048
Sign in to reply to this message.

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