Add ssh command to list groups.

Change-Id: Iaae73ec644e4f1ca631e8be1d90f7334ae5bd8c7
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
This commit is contained in:
Edwin Kempin
2011-09-01 15:55:15 +02:00
parent 8e7a35be30
commit cf6c35942d
9 changed files with 163 additions and 14 deletions

View File

@@ -0,0 +1,44 @@
gerrit ls-groups
================
NAME
----
gerrit ls-groups - List groups visible to caller
SYNOPSIS
--------
[verse]
'ssh' -p <port> <host> 'gerrit ls-groups'
DESCRIPTION
-----------
Displays the list of group names, one per line, that are visible to
the account of the calling user.
If the caller is a member of the privileged 'Administrators' group,
all groups are listed.
ACCESS
------
Any user who has configured an SSH key.
SCRIPTING
---------
This command is intended to be used in scripts.
EXAMPLES
--------
List visible groups:
=====
$ ssh -p 29418 review.example.com gerrit ls-groups
Administrators
Anonymous Users
MyProject_Committers
Project Owners
Registered Users
=====
GERRIT
------
Part of link:index.html[Gerrit Code Review]