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