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

Issue 6527045: cmd: refactor FileVar to retrieve contents (Closed)

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

Description

cmd: refactor FileVar to retrieve contents Stop being so clever, FileVar.Path is non nil if a config file was passed, Read(*cmd.Context) returns the contents of the file with respect to the Context. https://code.launchpad.net/~dave-cheney/juju-core/104-cmd-juju-config-file-open-at-runtime/+merge/124933 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 2

Patch Set 2 : cmd: refactor FileVar to Open reader at Run() #

Total comments: 6

Patch Set 3 : cmd: refactor FileVar to retrieve contents #

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

Messages

Total messages: 7
fwereade
Just one comment apart form the on mentioned live. https://codereview.appspot.com/6527045/diff/1/cmd/filevar.go File cmd/filevar.go (left): https://codereview.appspot.com/6527045/diff/1/cmd/filevar.go#oldcode16 cmd/filevar.go:16: ...
11 years, 7 months ago (2012-09-18 14:10:35 UTC) #1
dfc
Please take a look.
11 years, 7 months ago (2012-09-18 14:12:59 UTC) #2
niemeyer
LGTM https://codereview.appspot.com/6527045/diff/3001/cmd/filevar.go File cmd/filevar.go (right): https://codereview.appspot.com/6527045/diff/3001/cmd/filevar.go#newcode21 cmd/filevar.go:21: func (f *FileVar) Open(ctx *Context) (io.ReadCloser, error) { ...
11 years, 7 months ago (2012-09-18 14:21:06 UTC) #3
dfc
Thank you for your review. https://codereview.appspot.com/6527045/diff/3001/cmd/filevar.go File cmd/filevar.go (right): https://codereview.appspot.com/6527045/diff/3001/cmd/filevar.go#newcode21 cmd/filevar.go:21: func (f *FileVar) Open(ctx ...
11 years, 7 months ago (2012-09-18 14:29:44 UTC) #4
niemeyer
https://codereview.appspot.com/6527045/diff/3001/cmd/filevar.go File cmd/filevar.go (right): https://codereview.appspot.com/6527045/diff/3001/cmd/filevar.go#newcode21 cmd/filevar.go:21: func (f *FileVar) Open(ctx *Context) (io.ReadCloser, error) { On ...
11 years, 7 months ago (2012-09-18 14:47:48 UTC) #5
dfc
*** Submitted: cmd: refactor FileVar to retrieve contents Stop being so clever, FileVar.Path is non ...
11 years, 7 months ago (2012-09-18 14:56:54 UTC) #6
fwereade
11 years, 7 months ago (2012-09-18 14:57:12 UTC) #7
LGTM modulo comment below

https://codereview.appspot.com/6527045/diff/3001/cmd/filevar.go
File cmd/filevar.go (left):

https://codereview.appspot.com/6527045/diff/3001/cmd/filevar.go#oldcode16
cmd/filevar.go:16: // Set opens the file.
Still inaccurate.
Sign in to reply to this message.

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