You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* fix label of --id in admin delete user
This pr fixes the label descriptor of `gitea admin delete user`
but also adds a `--username` option.
Fix#13995
Signed-off-by: Andrew Thornton <[email protected]>
* fix-spacing
Signed-off-by: Andrew Thornton <[email protected]>
* Add delete email support
Signed-off-by: Andrew Thornton <[email protected]>
Co-authored-by: 6543 <[email protected]>
Co-authored-by: techknowlogick <[email protected]>
Copy file name to clipboardExpand all lines: docs/content/doc/usage/command-line.en-us.md
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -69,7 +69,10 @@ Admin operations:
69
69
-`gitea admin user list`
70
70
-`delete`:
71
71
- Options:
72
-
-`--id`: ID of user to be deleted. Required.
72
+
-`--email`: Email of the user to be deleted.
73
+
-`--username`: Username of user to be deleted.
74
+
-`--id`: ID of user to be deleted.
75
+
- One of `--id`, `--username` or `--email` is required. If more than one is provided then all have to match.
73
76
- Examples:
74
77
-`gitea admin user delete --id 1`
75
78
-`create`: - Options: - `--name value`: Username. Required. As of gitea 1.9.0, use the `--username` flag instead. - `--username value`: Username. Required. New in gitea 1.9.0. - `--password value`: Password. Required. - `--email value`: Email. Required. - `--admin`: If provided, this makes the user an admin. Optional. - `--access-token`: If provided, an access token will be created for the user. Optional. (default: false). - `--must-change-password`: If provided, the created user will be required to choose a newer password after
0 commit comments