-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathexample.go
68 lines (43 loc) · 1.18 KB
/
example.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
package main
import (
"fmt"
"github.com/urfave/cli"
)
func cmdShowExamples(c *cli.Context) error {
examples := `
- - - - - - - - - - - - - - - - - - - -
List the email addresses of all users.
gws user list
List the groups of which the user is a member.
gws user membership john.doe
gws user membership john.doe@company.com
Show details of a user.
gws user info john.doe
gws user info john.doe@company.com
Manage users
gws user suspend martin "left the company"
List the email address of all groups
gws group list
List the members of a group
gws group members all
gws group members all@company.com
Show details of a group.
gws group info all
gws group info all@company.com
Managing groups
gws group create brand-new-group
gws group delete my-old-group
gws group add my-group john.doe
gws group remove my-group john.doe
List the available roles to manage.
gws role list
List the users who have the administration role
gws role assignments _USER_MANAGEMENT_ADMIN_ROLE
List the (internet) domains that are managed
gws domain list
See full documentation on https://github.com/emicklei/gws
- - - - - - - - - - - - - - - - - - - -
`
fmt.Println(examples)
return nil
}