Skip to content

Implement --quiet option for cogctl #779

Closed

Description

@christophermaier

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

Activity

  1. added this to the Cog 0.9.0 milestone on Jun 17, 2016
  2. modified the milestones: Cog 0.10.0, Cog 0.9.0 on Jun 28, 2016
  3. removed this from the Cog 0.10.0 milestone on Jul 13, 2016
  4. christophermaier commented on Mar 31, 2017

    @christophermaier
    CollaboratorAuthor

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions