Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 1 | = gerrit set-members |
David Ostrovsky | 4adb97e | 2013-06-11 01:01:28 +0200 | [diff] [blame] | 2 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 3 | == NAME |
David Ostrovsky | 4adb97e | 2013-06-11 01:01:28 +0200 | [diff] [blame] | 4 | gerrit set-members - Set group members |
| 5 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 6 | == SYNOPSIS |
Yuxuan 'fishy' Wang | d85b687 | 2013-11-15 11:47:46 -0800 | [diff] [blame] | 7 | -- |
David Ostrovsky | 4adb97e | 2013-06-11 01:01:28 +0200 | [diff] [blame] | 8 | 'ssh' -p <port> <host> 'gerrit set-members' |
| 9 | [--add USER ...] |
| 10 | [--remove USER ...] |
| 11 | [--include GROUP ...] |
| 12 | [--exclude GROUP ...] |
| 13 | [--] |
| 14 | <GROUP> ... |
Yuxuan 'fishy' Wang | d85b687 | 2013-11-15 11:47:46 -0800 | [diff] [blame] | 15 | -- |
David Ostrovsky | 4adb97e | 2013-06-11 01:01:28 +0200 | [diff] [blame] | 16 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 17 | == DESCRIPTION |
David Ostrovsky | 4adb97e | 2013-06-11 01:01:28 +0200 | [diff] [blame] | 18 | Set the group members for the specified groups. |
| 19 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 20 | == OPTIONS |
David Ostrovsky | 4adb97e | 2013-06-11 01:01:28 +0200 | [diff] [blame] | 21 | <GROUP>:: |
| 22 | Required; name of the group for which the members should be set. |
| 23 | The members for multiple groups can be set at once by specifying |
| 24 | multiple groups. |
| 25 | |
| 26 | --add:: |
| 27 | -a:: |
| 28 | A user that should be added to the specified groups. Multiple |
| 29 | users can be added at once by using this option multiple times. |
| 30 | |
| 31 | --remove:: |
| 32 | -r:: |
| 33 | Remove this user from the specified groups. Multiple users can be |
| 34 | removed at once by using this option multiple times. |
| 35 | |
| 36 | --include:: |
| 37 | -i:: |
| 38 | A group that should be included to the specified groups. Multiple |
| 39 | groups can be included at once by using this option multiple |
| 40 | times. |
| 41 | |
| 42 | --exclude:: |
| 43 | -e:: |
| 44 | Exclude this group from the specified groups. Multiple groups can |
| 45 | be excluded at once by using this option multiple times. |
| 46 | |
| 47 | The `set-members` command is processing the options in the following |
| 48 | order: `--remove`, `--exclude`, `--add`, `--include` |
| 49 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 50 | == ACCESS |
David Ostrovsky | 4adb97e | 2013-06-11 01:01:28 +0200 | [diff] [blame] | 51 | Any user who has configured an SSH key. |
| 52 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 53 | == SCRIPTING |
David Ostrovsky | 4adb97e | 2013-06-11 01:01:28 +0200 | [diff] [blame] | 54 | This command is intended to be used in scripts. |
| 55 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 56 | == EXAMPLES |
David Ostrovsky | 4adb97e | 2013-06-11 01:01:28 +0200 | [diff] [blame] | 57 | |
| 58 | Add alice and bob, but remove eve from the groups my-committers and |
| 59 | my-verifiers. |
| 60 | ===== |
| 61 | $ ssh -p 29418 review.example.com gerrit set-members \ |
| 62 | -a alice@example.com -a bob@example.com \ |
| 63 | -r eve@example.com my-committers my-verifiers |
| 64 | ===== |
| 65 | |
| 66 | Include the group my-friends into the group my-committers, but |
| 67 | exclude the included group my-testers from the group my-committers. |
| 68 | ===== |
| 69 | $ ssh -p 29418 review.example.com gerrit set-members \ |
| 70 | -i my-friends -e my-testers my-committers |
| 71 | ===== |
| 72 | |
| 73 | GERRIT |
| 74 | ------ |
| 75 | Part of link:index.html[Gerrit Code Review] |
Yuxuan 'fishy' Wang | 99cb68d | 2013-10-31 17:26:00 -0700 | [diff] [blame] | 76 | |
| 77 | SEARCHBOX |
| 78 | --------- |