Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Sort machine ls output by machine name#87

Merged
bfirsh merged 3 commits intodocker-archive-public:masterfrom
ggiamarchi:machine-ls-sort
Dec 12, 2014
Merged

Sort machine ls output by machine name#87
bfirsh merged 3 commits intodocker-archive-public:masterfrom
ggiamarchi:machine-ls-sort

Conversation

@ggiamarchi
Copy link
Copy Markdown
Contributor

At the moment in the machine ls output, the order of appearance of the machines is not predictable due to go routine implementation.

This pull request fix this, sorting machine by names (case insensitive).

Signed-off-by: Guillaume Giamarchi <guillaume.giamarchi@gmail.com>
Comment thread commands.go Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

A better name for this might be HostListItem or something like that. "State" is an overloaded term – I was confused about what this had to do with the host state (running, stopped, etc).

I would also argue that this struct should live in commands.go too – it is part of the functionality of the machine ls command.

@bfirsh
Copy link
Copy Markdown
Contributor

bfirsh commented Dec 12, 2014

Looks great apart from a naming niggle. Thanks!

Signed-off-by: Guillaume Giamarchi <guillaume.giamarchi@gmail.com>
Signed-off-by: Guillaume Giamarchi <guillaume.giamarchi@gmail.com>
@ggiamarchi
Copy link
Copy Markdown
Contributor Author

👍 Fixed

@bfirsh
Copy link
Copy Markdown
Contributor

bfirsh commented Dec 12, 2014

Awesome, thanks!

bfirsh added a commit that referenced this pull request Dec 12, 2014
Sort `machine ls` output by machine name
@bfirsh bfirsh merged commit e12df0c into docker-archive-public:master Dec 12, 2014
@ggiamarchi ggiamarchi deleted the machine-ls-sort branch December 12, 2014 01:16
superseb pushed a commit to superseb/machine that referenced this pull request Dec 4, 2020
…ister_subscription

Remove register Microsoft.Subscription from Azure
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.

2 participants