Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

glide list: support json output format #365

Merged
merged 1 commit into from
Apr 19, 2016

Conversation

chancez
Copy link
Contributor

@chancez chancez commented Apr 2, 2016

Sort of addresses #256. Might be worth having a format which spits out a newline delimited list, without the "INSTALLED/MISSING/GOPATH packages" headers.

@technosophos
Copy link
Member

I like this a lot.

@mattfarina
Copy link
Member

@chancez First, nice work on this. I like seeing this as json and json-pretty. I can use that myself.

I do have some feedback for changes (more on that in a moment). If you're not going to have time just let me know and I can make them via an additional commit.

jsonPrettyFormat = "json-pretty"
)

func outputList(l action.PackageList, format string) {
Copy link
Member

Choose a reason for hiding this comment

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

The glide.go file is already fairly long. Can we move outputList into action/list.go. Maybe instead of action.List returning something it takes in the format switch and handles the display. That's how the other commands work.

@mattfarina mattfarina merged commit a0518f3 into Masterminds:master Apr 19, 2016
@mattfarina
Copy link
Member

@chancez thanks for the contribution. I finished the tweaks off.

@chancez
Copy link
Contributor Author

chancez commented Apr 19, 2016

@mattfarina Yeah, sorry, I was planning on finishing it off, but you were so quick, so I don't mind! Thanks.

@chancez chancez deleted the add_list_format branch April 20, 2016 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants