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

Would be useful for listgroup to take a parameter. #7

Closed
huxoll opened this issue May 17, 2018 · 1 comment
Closed

Would be useful for listgroup to take a parameter. #7

huxoll opened this issue May 17, 2018 · 1 comment

Comments

@huxoll
Copy link

huxoll commented May 17, 2018

I'd like to use gghelper to check if a Greengrass group exists before creating it (for multi-user, idempotent use). I thought that listgroup would take a parameter to support that, but it lists the most recently created group instead.

I would like to run

$ gghelper listgroup -name mygroup
# Nonzero return code? Message "No such group is available."? Or just:
# group: {}
# Not found, therefore I can run
$ gghelper creategroup -name mygroup

This would allow gghelper to be used in CI and DevOps contexts.

@markpeek
Copy link
Member

Thanks for the issue. Should work close to your specification with the error code being returned.

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

No branches or pull requests

2 participants