87952aecef
Build & Deploy Platform / build (push) Waiting to run
Platform admin: - IsPlatformAdmin field on user model (DB migration v331) - CLI: gitea admin user set-platform-admin, --platform-admin flag on create - Token scope: read:platform / write:platform - API + web routes restricted to platform admins - Only @tinqs.com emails can be platform admins Branding: - brand_mark.tmpl, head_icons.tmpl templates - ARCHITECTURE.md monorepo overview
25 lines
503 B
Go
25 lines
503 B
Go
// Copyright 2023 The Gitea Authors. All rights reserved.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package cmd
|
|
|
|
import (
|
|
"github.com/urfave/cli/v3"
|
|
)
|
|
|
|
func newUserCommand() *cli.Command {
|
|
return &cli.Command{
|
|
Name: "user",
|
|
Usage: "Modify users",
|
|
Commands: []*cli.Command{
|
|
microcmdUserCreate(),
|
|
newUserListCommand(),
|
|
microcmdUserChangePassword(),
|
|
microcmdUserDelete(),
|
|
newUserGenerateAccessTokenCommand(),
|
|
microcmdUserMustChangePassword(),
|
|
microcmdUserSetPlatformAdmin(),
|
|
},
|
|
}
|
|
}
|