Currently the ceo groups addmember and removemember commands only take one argument. This is painful when we need to bulk update membership of groups. Implement the following:
Take an arbitrary number of arguments after the above commands, where each whitespace-separated argument is a username, except for the first which is the name of the group.
Create a new command under ceo groups called removeall that takes a single argument, the name of the group, and removes all users from that group.
Currently the `ceo groups addmember` and `removemember` commands only take one argument. This is painful when we need to bulk update membership of groups. Implement the following:
1. Take an arbitrary number of arguments after the above commands, where each whitespace-separated argument is a username, except for the first which is the name of the group.
2. Create a new command under `ceo groups` called `removeall` that takes a single argument, the name of the group, and removes all users from that group.
Why not integrate it into CEO with a simple for loop than have to use a bash script each time? UX :) Plus I have CEO commands aliased so this wouldn't work very well for me.
Why not integrate it into CEO with a simple for loop than have to use a bash script each time? UX :) Plus I have CEO commands aliased so this wouldn't work very well for me.
Currently the
ceo groups addmember
andremovemember
commands only take one argument. This is painful when we need to bulk update membership of groups. Implement the following:ceo groups
calledremoveall
that takes a single argument, the name of the group, and removes all users from that group.What about...
Why not integrate it into CEO with a simple for loop than have to use a bash script each time? UX :) Plus I have CEO commands aliased so this wouldn't work very well for me.