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 #135

Open
christophermaier opened this issue Mar 31, 2017 · 0 comments
Open

Implement --quiet option for cogctl #135

christophermaier opened this issue Mar 31, 2017 · 0 comments
Labels

Comments

@christophermaier
Copy link
Collaborator

From @christophermaier on June 17, 2016 17:55

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

Copied from original issue: operable/cog#779

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant