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

Implement --quiet option for cogctl #779

Closed
christophermaier opened this issue Jun 17, 2016 · 1 comment
Closed

Implement --quiet option for cogctl #779

christophermaier opened this issue Jun 17, 2016 · 1 comment

Comments

@christophermaier
Copy link
Collaborator

christophermaier commented Jun 17, 2016

In order to more easily make command pipelines with cogctl, provide a --quiet/-q option on listing commands, which would simply return a list of the canonical identifiers for a thing.

As an example, right now you need to type something like this to assign all the permissions from a given bundle to a role:

cogctl permissions | grep $MY_BUNDLE | awk '{print $1 ":" $2}' | xargs cogctl permissions grant --role $MY_ROLE

With a --quiet / -q option, that could be reduced to:

cogctl permissions -q | grep $MY_BUNDLE | xargs cogctl permissions grant --role $MY_ROLE

assuming that cogctl permissions -q returned output like:

bundle1:perm1
bundle1:perm2
bundle2:perm1
@christophermaier
Copy link
Collaborator Author

This issue was moved to operable/cogctl#135

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