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

Issue 8597045: Add a get-environment command.

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 1 month ago by thumper
Modified:
11 years ago
Reviewers:
mp+157968, dave, fwereade
Visibility:
Public.

Description

Add a get-environment command. Be able to get environment values from state. You can ask for either a single value, or get the whole lot formatted how you like (well within reason). set-environment coming next. https://code.launchpad.net/~thumper/juju-core/get-environment/+merge/157968 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 16

Patch Set 2 : Add a get-environment command. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+175 lines, -0 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M cmd/cmd.go View 1 1 chunk +13 lines, -0 lines 0 comments Download
M cmd/cmd_test.go View 1 1 chunk +17 lines, -0 lines 0 comments Download
A cmd/juju/environment.go View 1 1 chunk +75 lines, -0 lines 0 comments Download
A cmd/juju/environment_test.go View 1 1 chunk +65 lines, -0 lines 0 comments Download
M cmd/juju/main.go View 1 chunk +1 line, -0 lines 0 comments Download
M cmd/juju/main_test.go View 1 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 8
thumper
Please take a look.
11 years, 1 month ago (2013-04-09 22:59:48 UTC) #1
thumper
https://codereview.appspot.com/8597045/diff/1/cmd/juju/main_test.go File cmd/juju/main_test.go (right): https://codereview.appspot.com/8597045/diff/1/cmd/juju/main_test.go#newcode219 cmd/juju/main_test.go:219: "get-env", // alias for set-environment Fixed the alias comment ...
11 years, 1 month ago (2013-04-09 23:02:28 UTC) #2
dave_cheney.net
LGTM. Thank you.
11 years, 1 month ago (2013-04-10 01:40:45 UTC) #3
dimitern
Looks good, but I have some questions. https://codereview.appspot.com/8597045/diff/1/cmd/juju/environment.go File cmd/juju/environment.go (right): https://codereview.appspot.com/8597045/diff/1/cmd/juju/environment.go#newcode13 cmd/juju/environment.go:13: type GetEnvironmentCommand ...
11 years, 1 month ago (2013-04-10 09:56:11 UTC) #4
dimitern
After speaking with fwereade, I drop my comment about the name. On 2013/04/10 09:56:11, dimitern ...
11 years, 1 month ago (2013-04-10 11:27:45 UTC) #5
fwereade
LGTM modulo ZeroOrOneArgs suggestion and more-detailed testing. https://codereview.appspot.com/8597045/diff/1/cmd/cmd.go File cmd/cmd.go (right): https://codereview.appspot.com/8597045/diff/1/cmd/cmd.go#newcode49 cmd/cmd.go:49: func (c ...
11 years, 1 month ago (2013-04-10 11:33:25 UTC) #6
thumper
Updated the branch, but I'm going to land this at the same time as set-environment ...
11 years ago (2013-04-10 22:36:55 UTC) #7
thumper
11 years ago (2013-04-11 00:20:39 UTC) #8
*** Submitted:

Add a get-environment command.

Be able to get environment values from state.  You can ask for either a single
value, or get the whole lot formatted how you like (well within reason).

set-environment coming next.

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

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