Skip to content
This repository was archived by the owner on Feb 27, 2018. It is now read-only.

Conversation

@SvenDowideit
Copy link
Contributor

Follow-on for #287

While testing I was tripped up by the fact that one of my boxes has a ~/.boot2docker/profile I'd forgotten - and without a b2d way to find out what the iso file path really is, we'd have to resort to asking users to tell us (rather than c&p), which is fraught with extra round trips.

at the same time, I've formatted the json so its readable.

@tianon @gmlewis

cmds.go Outdated
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't you skip the out buffer and send to os.Stdout directly?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know - I followed the golang.org example..

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

json.MarshalIndent is what you're thinking of, I believe: http://golang.org/pkg/encoding/json/#MarshalIndent

(and I agree)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bizzare - so the docs aren't leading me to best practice >:} (he says throwing stones out the window of his own glass house)

@gmlewis
Copy link
Contributor

gmlewis commented Oct 16, 2014

OK... Can't research it now... Don't want to hold you up over this. LGTM

@SvenDowideit SvenDowideit added this to the 1.3.0 milestone Oct 16, 2014
@tianon
Copy link
Contributor

tianon commented Oct 16, 2014

Other than @gmlewis's nit, LGTM

@tianon
Copy link
Contributor

tianon commented Oct 16, 2014

So now the question is, do you want to fix it, or do you want me to take over the PR? 😉

@SvenDowideit
Copy link
Contributor Author

aren't you supposed to be asleep? :p

@SvenDowideit SvenDowideit force-pushed the add-iso-path-to-b2d-info branch from 88f5578 to f9ad3ec Compare October 16, 2014 06:10
@SvenDowideit SvenDowideit force-pushed the add-iso-path-to-b2d-info branch from f9ad3ec to 71c52c6 Compare October 16, 2014 06:12
@SvenDowideit
Copy link
Contributor Author

@tianon updated :)

@SvenDowideit
Copy link
Contributor Author

#287 is kinda more important tho

@tianon
Copy link
Contributor

tianon commented Oct 16, 2014

Indeed, I really ought to be asleep. LGTM

@gmlewis ? 😄

tianon added a commit that referenced this pull request Oct 16, 2014
Report the iso path used by the vm to help debug possible support issues
@tianon tianon merged commit deafc19 into boot2docker:master Oct 16, 2014
@gmlewis
Copy link
Contributor

gmlewis commented Oct 16, 2014

Sorry, posthumous LGTM

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants