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

Check capacity against multiple metros, facilities, and plans at once #161

Merged
merged 3 commits into from
Dec 10, 2021

Conversation

displague
Copy link
Member

@displague displague commented Dec 10, 2021

fixes #158

Deprecations:

  • --plan becomes --plans (-P is backwards compatible, --plan adds to --plans args)
  • --metro becomes --metros (-m is backwards compatible, --metro adds to --metros args)
  • --facility becomes --facilities (-f is backwards compatible, --facility adds to --facilities args)
$ go run ./cmd/metal/main.go  capacity check -m sv,ny -P c3.small,c3.medium -q 10 
+-------+-----------+----------+--------------+
| METRO |   PLAN    | QUANTITY | AVAILABILITY |
+-------+-----------+----------+--------------+
| sv    | c3.small  | 10       | true         |
| sv    | c3.medium | 10       | true         |
| ny    | c3.small  | 10       | false        |
| ny    | c3.medium | 10       | true         |
+-------+-----------+----------+--------------+

Copy link
Contributor

@cprivitere cprivitere left a comment

Choose a reason for hiding this comment

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

/lgtm

@cprivitere cprivitere merged commit e66e434 into main Dec 10, 2021
@cprivitere cprivitere deleted the more-capacity branch December 10, 2021 22:35
@cprivitere cprivitere restored the more-capacity branch January 13, 2022 17:52
@cprivitere cprivitere deleted the more-capacity branch January 13, 2022 18:06
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.

can't filter capacity list by metro or facility
2 participants