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

Issue 6490121: cmd: add FileVar flag and use it (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 7 months ago by dave
Modified:
11 years, 6 months ago
Reviewers:
mp+124698
Visibility:
Public.

Description

cmd: add FileVar flag and use it PyJuJu had a nice construct that allowed a flag that was a file, or more specifically the contents of a file to be handled nicely. As deploy ended up implementing this, and I need it now for juju set, it made sense to pretty it up. https://code.launchpad.net/~dave-cheney/juju-core/096-cmd-config-var/+merge/124698 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 7

Patch Set 2 : cmd: add FileVar flag and use it #

Patch Set 3 : cmd: add FileVar flag and use it #

Unified diffs Side-by-side diffs Delta from patch set Stats (+109 lines, -10 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
A cmd/filevar.go View 1 chunk +30 lines, -0 lines 0 comments Download
A cmd/filevar_test.go View 1 1 chunk +56 lines, -0 lines 0 comments Download
M cmd/juju/cmd_test.go View 1 4 chunks +18 lines, -7 lines 0 comments Download
M cmd/juju/deploy.go View 3 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 5
dave_cheney.net
Please take a look.
11 years, 7 months ago (2012-09-17 14:07:53 UTC) #1
niemeyer
https://codereview.appspot.com/6490121/diff/1/cmd/filevar.go File cmd/filevar.go (right): https://codereview.appspot.com/6490121/diff/1/cmd/filevar.go#newcode12 cmd/filevar.go:12: io.ReadCloser It might be better to have a Open ...
11 years, 7 months ago (2012-09-17 15:09:58 UTC) #2
dave_cheney.net
Please take a look. https://codereview.appspot.com/6490121/diff/1/cmd/filevar.go File cmd/filevar.go (right): https://codereview.appspot.com/6490121/diff/1/cmd/filevar.go#newcode12 cmd/filevar.go:12: io.ReadCloser On 2012/09/17 15:09:58, niemeyer ...
11 years, 7 months ago (2012-09-17 15:20:00 UTC) #3
niemeyer
https://codereview.appspot.com/6490121/diff/1/cmd/filevar.go File cmd/filevar.go (right): https://codereview.appspot.com/6490121/diff/1/cmd/filevar.go#newcode12 cmd/filevar.go:12: io.ReadCloser On 2012/09/17 15:20:01, dfc wrote: > On 2012/09/17 ...
11 years, 7 months ago (2012-09-17 15:21:19 UTC) #4
dave_cheney.net
11 years, 7 months ago (2012-09-17 15:23:20 UTC) #5
*** Submitted:

cmd: add FileVar flag and use it

PyJuJu had a nice construct that allowed a flag that was a file, or more
specifically the contents of a file to be handled nicely. As deploy ended
up implementing this, and I need it now for juju set, it made sense to 
pretty it up.

R=niemeyer
CC=
https://codereview.appspot.com/6490121
Sign in to reply to this message.

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