summaryrefslogtreecommitdiffstats
path: root/cmd/admin_auth_ldap.go
diff options
context:
space:
mode:
authorNanguan Lin <70063547+lng2020@users.noreply.github.com>2023-09-27 20:25:38 +0800
committerGitHub <noreply@github.com>2023-09-27 12:25:38 +0000
commit70f8d10fc5b1a5c8a80e5c05ef6e864154d9b272 (patch)
tree04fa4c8ecb363180204f74c46e4d29291e1b4863 /cmd/admin_auth_ldap.go
parent5600504eed2473691b86962be2f9733e6bfce879 (diff)
downloadgitea-70f8d10fc5b1a5c8a80e5c05ef6e864154d9b272.tar.gz
gitea-70f8d10fc5b1a5c8a80e5c05ef6e864154d9b272.zip
move the `gitea admin` subcommands into separate files (#27307)
As title. Probably it's better to put those sub cmd to different dirs. Will do that in the future.
Diffstat (limited to 'cmd/admin_auth_ldap.go')
-rw-r--r--cmd/admin_auth_ldap.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/cmd/admin_auth_ldap.go b/cmd/admin_auth_ldap.go
index cfa1a23235..111bc7955c 100644
--- a/cmd/admin_auth_ldap.go
+++ b/cmd/admin_auth_ldap.go
@@ -132,10 +132,10 @@ var (
ldapSimpleAuthCLIFlags = append(commonLdapCLIFlags,
&cli.StringFlag{
Name: "user-dn",
- Usage: "The user’s DN.",
+ Usage: "The user's DN.",
})
- cmdAuthAddLdapBindDn = &cli.Command{
+ microcmdAuthAddLdapBindDn = &cli.Command{
Name: "add-ldap",
Usage: "Add new LDAP (via Bind DN) authentication source",
Action: func(c *cli.Context) error {
@@ -144,7 +144,7 @@ var (
Flags: ldapBindDnCLIFlags,
}
- cmdAuthUpdateLdapBindDn = &cli.Command{
+ microcmdAuthUpdateLdapBindDn = &cli.Command{
Name: "update-ldap",
Usage: "Update existing LDAP (via Bind DN) authentication source",
Action: func(c *cli.Context) error {
@@ -153,7 +153,7 @@ var (
Flags: append([]cli.Flag{idFlag}, ldapBindDnCLIFlags...),
}
- cmdAuthAddLdapSimpleAuth = &cli.Command{
+ microcmdAuthAddLdapSimpleAuth = &cli.Command{
Name: "add-ldap-simple",
Usage: "Add new LDAP (simple auth) authentication source",
Action: func(c *cli.Context) error {
@@ -162,7 +162,7 @@ var (
Flags: ldapSimpleAuthCLIFlags,
}
- cmdAuthUpdateLdapSimpleAuth = &cli.Command{
+ microcmdAuthUpdateLdapSimpleAuth = &cli.Command{
Name: "update-ldap-simple",
Usage: "Update existing LDAP (simple auth) authentication source",
Action: func(c *cli.Context) error {