Skip to content

Commit dec91bd

Browse files
hawiczwxiaoguang
authored andcommitted
Add "--fullname" arg to gitea admin user create (go-gitea#34241)
Co-authored-by: wxiaoguang <[email protected]> (cherry picked from commit 166ec1b)
1 parent eb67c4c commit dec91bd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cmd/admin_user_create.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ var microcmdUserCreate = &cli.Command{
7676
Name: "restricted",
7777
Usage: "Make a restricted user account",
7878
},
79+
&cli.StringFlag{
80+
Name: "fullname",
81+
Usage: `The full, human-readable name of the user`,
82+
},
7983
},
8084
}
8185

@@ -161,6 +165,7 @@ func runCreateUser(c *cli.Context) error {
161165
IsAdmin: isAdmin,
162166
MustChangePassword: mustChangePassword,
163167
Visibility: visibility,
168+
FullName: c.String("fullname"),
164169
}
165170

166171
overwriteDefault := &user_model.CreateUserOverwriteOptions{

0 commit comments

Comments
 (0)