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

use sort.Slice for sorting commands' output #1194

Merged
merged 1 commit into from
Jul 7, 2018

Conversation

adshmh
Copy link
Contributor

@adshmh adshmh commented Jul 6, 2018

- What I did
Refactored all commands under cli/command to use sort.Slice for sorting rather than declaring custom types (#1166 (review))

- How I did it
modified all commands using sort.Sort under cli/command to use sort.Slice, and removed the custom types.

- How to verify it

- Description for the changelog
commands use sort.Slice for sorting output.

- A picture of a cute animal (not mandatory but encouraged)

…of declaring custom types for sorting

Signed-off-by: Arash Deshmeh <adeshmeh@ca.ibm.com>
@adshmh
Copy link
Contributor Author

adshmh commented Jul 6, 2018

A few other places use custom types for sort (under cli/compose). I kept those files out of this PR to limit the number of files modified. I can either submit a separate PR for those or add them to this one if that seems a better option.

Copy link
Collaborator

@cpuguy83 cpuguy83 left a comment

Choose a reason for hiding this comment

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

Thanks! LGTM!

Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

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

nice!!! LGTM, thanks again!

@thaJeztah thaJeztah merged commit 2b221d8 into docker:master Jul 7, 2018
@GordonTheTurtle GordonTheTurtle added this to the 18.07.0 milestone Jul 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants