Fredrik Luthander | 700f6de | 2014-03-17 01:07:58 +0100 | [diff] [blame] | 1 | = gerrit ls-members |
James Ring | 8e34272 | 2013-05-01 01:40:53 -0700 | [diff] [blame] | 2 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 3 | == NAME |
James Ring | 8e34272 | 2013-05-01 01:40:53 -0700 | [diff] [blame] | 4 | gerrit ls-members - Show members of a given group |
| 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 | -- |
James Ring | 8e34272 | 2013-05-01 01:40:53 -0700 | [diff] [blame] | 8 | 'ssh' -p <port> <host> 'gerrit ls-members GROUPNAME' |
| 9 | [--recursive] |
Yuxuan 'fishy' Wang | d85b687 | 2013-11-15 11:47:46 -0800 | [diff] [blame] | 10 | -- |
James Ring | 8e34272 | 2013-05-01 01:40:53 -0700 | [diff] [blame] | 11 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 12 | == DESCRIPTION |
James Ring | 8e34272 | 2013-05-01 01:40:53 -0700 | [diff] [blame] | 13 | Displays the members of the given group, one per line, so long as the given |
| 14 | group is visible to the user. The users' id, username, full name and email are |
| 15 | shown tab-separated. |
| 16 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 17 | == ACCESS |
James Ring | 8e34272 | 2013-05-01 01:40:53 -0700 | [diff] [blame] | 18 | Any user who has configured an SSH key. |
| 19 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 20 | == SCRIPTING |
James Ring | 8e34272 | 2013-05-01 01:40:53 -0700 | [diff] [blame] | 21 | This command is intended to be used in scripts. Output is either an error |
| 22 | message or a heading followed by zero or more lines, one for each member of the |
| 23 | group. If any field is not set, or if the field is the user's full name and the |
| 24 | name is empty, "n/a" is emitted as the field value. |
| 25 | |
| 26 | All non-printable characters (ASCII value 31 or less) are escaped |
| 27 | according to the conventions used in languages like C, Python, and Perl, |
| 28 | employing standard sequences like `\n` and `\t`, and `\xNN` for all |
| 29 | others. In shell scripts, the `printf` command can be used to unescape |
| 30 | the output. |
| 31 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 32 | == OPTIONS |
James Ring | 8e34272 | 2013-05-01 01:40:53 -0700 | [diff] [blame] | 33 | --recursive:: |
| 34 | If a member of the group is itself a group, the sub-group's |
| 35 | members are included in the list. Otherwise members of any sub-group |
| 36 | are not shown and no indication is given that a sub-group is present |
| 37 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 38 | == EXAMPLES |
James Ring | 8e34272 | 2013-05-01 01:40:53 -0700 | [diff] [blame] | 39 | |
| 40 | List members of the Administrators group: |
| 41 | ===== |
| 42 | $ ssh -p 29418 review.example.com gerrit ls-members Administrators |
| 43 | id username full name email |
| 44 | 100000 jim Jim Bob somebody@example.com |
| 45 | 100001 johnny John Smith n/a |
| 46 | 100002 mrnoname n/a someoneelse@example.com |
| 47 | ===== |
| 48 | |
| 49 | List members of a non-existent group: |
| 50 | ===== |
| 51 | $ ssh -p 29418 review.example.com gerrit ls-members BadlySpelledGroup |
| 52 | Group not found or not visible |
| 53 | ===== |
| 54 | |
| 55 | GERRIT |
| 56 | ------ |
| 57 | Part of link:index.html[Gerrit Code Review] |
Yuxuan 'fishy' Wang | 99cb68d | 2013-10-31 17:26:00 -0700 | [diff] [blame] | 58 | |
| 59 | SEARCHBOX |
| 60 | --------- |