|
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)
Total comments: 33
|
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
|
Total messages: 6
|