Skip to content

glide list: support json output format - #365

Merged
mattfarina merged 1 commit into
Masterminds:masterfrom
chancez:add_list_format
Apr 19, 2016
Merged

glide list: support json output format#365
mattfarina merged 1 commit into
Masterminds:masterfrom
chancez:add_list_format

Conversation

@chancez

@chancez chancez commented Apr 2, 2016

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Member

I like this a lot.

@mattfarina

Copy link
Copy Markdown
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.

Comment thread glide.go
jsonPrettyFormat = "json-pretty"
)

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

Copy link
Copy Markdown
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
Copy Markdown
Member

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

@chancez

chancez commented Apr 19, 2016

Copy link
Copy Markdown
Contributor Author

@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