gitea/cmd
techknowlogick 435123fe65
Switch `cmd/` to use constructor functions. (#36962)
This is a step towards potentially splitting command groups into their
own folders to clean up `cmd/` as one folder for all cli commands.
Returning fresh command instances will also aid in adding tests as you
don't need to concern yourself with the whole command tree being one
mutable variable.

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2026-03-25 15:53:13 +01:00
..
actions.go Switch `cmd/` to use constructor functions. (#36962) 2026-03-25 15:53:13 +01:00
admin.go Switch `cmd/` to use constructor functions. (#36962) 2026-03-25 15:53:13 +01:00
admin_auth.go Switch `cmd/` to use constructor functions. (#36962) 2026-03-25 15:53:13 +01:00
admin_auth_ldap.go Add an option to automatically verify SSH keys from LDAP (#35927) 2025-12-27 12:33:08 +00:00
admin_auth_ldap_test.go fix nilnil in onedev downloader (#36154) 2025-12-16 02:16:58 +00:00
admin_auth_oauth.go Refactor OpenIDConnect to support SSH/FullName sync (#34978) 2025-07-10 18:35:59 +00:00
admin_auth_oauth_test.go Refactor OpenIDConnect to support SSH/FullName sync (#34978) 2025-07-10 18:35:59 +00:00
admin_auth_smtp.go Fix incorrect cli default values and default command (#34765) 2025-06-18 23:25:11 +08:00
admin_auth_smtp_test.go Fix incorrect cli default values and default command (#34765) 2025-06-18 23:25:11 +08:00
admin_regenerate.go Switch `cmd/` to use constructor functions. (#36962) 2026-03-25 15:53:13 +01:00
admin_user.go Switch `cmd/` to use constructor functions. (#36962) 2026-03-25 15:53:13 +01:00
admin_user_change_password.go Migrate to urfave v3 (#34510) 2025-06-10 12:35:12 +00:00
admin_user_change_password_test.go Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
admin_user_create.go Address some CodeQL security concerns (#35572) 2025-10-04 01:21:26 +08:00
admin_user_create_test.go Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
admin_user_delete.go Migrate to urfave v3 (#34510) 2025-06-10 12:35:12 +00:00
admin_user_delete_test.go Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
admin_user_generate_access_token.go Switch `cmd/` to use constructor functions. (#36962) 2026-03-25 15:53:13 +01:00
admin_user_list.go Switch `cmd/` to use constructor functions. (#36962) 2026-03-25 15:53:13 +01:00
admin_user_must_change_password.go Address some CodeQL security concerns (#35572) 2025-10-04 01:21:26 +08:00
admin_user_must_change_password_test.go Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
cert.go Run `gopls modernize` on codebase (#34751) 2025-06-18 01:48:09 +00:00
cert_test.go Migrate to urfave v3 (#34510) 2025-06-10 12:35:12 +00:00
cmd.go Fix cli "Before" handling (#35797) 2025-10-31 18:12:03 +00:00
cmd_test.go Fix incorrect cli default values and default command (#34765) 2025-06-18 23:25:11 +08:00
config.go Intorduce "config edit-ini" sub command to help maintaining INI config file (#35735) 2025-10-25 10:54:55 +08:00
config_test.go Intorduce "config edit-ini" sub command to help maintaining INI config file (#35735) 2025-10-25 10:54:55 +08:00
docs.go Switch `cmd/` to use constructor functions. (#36962) 2026-03-25 15:53:13 +01:00
doctor.go Switch `cmd/` to use constructor functions. (#36962) 2026-03-25 15:53:13 +01:00
doctor_convert.go Switch `cmd/` to use constructor functions. (#36962) 2026-03-25 15:53:13 +01:00
doctor_test.go Switch `cmd/` to use constructor functions. (#36962) 2026-03-25 15:53:13 +01:00
dump.go Switch `cmd/` to use constructor functions. (#36962) 2026-03-25 15:53:13 +01:00
dump_repo.go Switch `cmd/` to use constructor functions. (#36962) 2026-03-25 15:53:13 +01:00
embedded.go Switch `cmd/` to use constructor functions. (#36962) 2026-03-25 15:53:13 +01:00
generate.go Switch `cmd/` to use constructor functions. (#36962) 2026-03-25 15:53:13 +01:00
hook.go Switch `cmd/` to use constructor functions. (#36962) 2026-03-25 15:53:13 +01:00
hook_test.go Fix some trivial problems (#36336) 2026-01-09 20:58:21 +02:00
keys.go Switch `cmd/` to use constructor functions. (#36962) 2026-03-25 15:53:13 +01:00
mailer.go Correct spelling (#36783) 2026-02-28 11:23:20 -08:00
main.go Switch `cmd/` to use constructor functions. (#36962) 2026-03-25 15:53:13 +01:00
main_test.go chore: add comments for "api/healthz", clean up test env (#36481) 2026-01-30 10:23:38 +08:00
manager.go Switch `cmd/` to use constructor functions. (#36962) 2026-03-25 15:53:13 +01:00
manager_logging.go Switch `cmd/` to use constructor functions. (#36962) 2026-03-25 15:53:13 +01:00
migrate.go Switch `cmd/` to use constructor functions. (#36962) 2026-03-25 15:53:13 +01:00
migrate_storage.go Switch `cmd/` to use constructor functions. (#36962) 2026-03-25 15:53:13 +01:00
migrate_storage_test.go Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
restore_repo.go Switch `cmd/` to use constructor functions. (#36962) 2026-03-25 15:53:13 +01:00
serv.go Switch `cmd/` to use constructor functions. (#36962) 2026-03-25 15:53:13 +01:00
web.go Switch `cmd/` to use constructor functions. (#36962) 2026-03-25 15:53:13 +01:00
web_acme.go various fixes (#36697) 2026-02-22 08:01:43 +01:00
web_graceful.go Refactor some tests (#34580) 2025-06-03 01:26:19 +00:00
web_https.go