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