Documentation
¶
Overview ¶
Package cmd provides subcommands to the gitea binary - such as "web" or "admin".
Index ¶
- Variables
- func NewKeysCommand() *cli.Command
- func NewMainApp(appVer AppVersion) *cli.Command
- func NoHTTPRedirector()
- func NoInstallListener()
- func PrepareConsoleLoggerLevel(defaultLevel log.Level) func(context.Context, *cli.Command) (context.Context, error)
- func RunMainApp(app *cli.Command, args ...string) error
- type AppVersion
Constants ¶
This section is empty.
Variables ¶
View Source
var PIDFile = "/run/gitea.pid"
PIDFile could be set from build tag
Functions ¶
func NewKeysCommand ¶ added in v1.26.0
NewKeysCommand returns the internal SSH key lookup sub-command.
func NewMainApp ¶ added in v1.21.0
func NewMainApp(appVer AppVersion) *cli.Command
func NoHTTPRedirector ¶ added in v1.11.0
func NoHTTPRedirector()
NoHTTPRedirector tells our cleanup routine that we will not be using a fallback http redirector
func NoInstallListener ¶ added in v1.14.0
func NoInstallListener()
NoInstallListener tells our cleanup routine that we will not be using a possibly provided listener for our install HTTP/HTTPS service
func PrepareConsoleLoggerLevel ¶ added in v1.20.0
func PrepareConsoleLoggerLevel(defaultLevel log.Level) func(context.Context, *cli.Command) (context.Context, error)
PrepareConsoleLoggerLevel by default, use INFO level for console logger, but some sub-commands (for git/ssh protocol) shouldn't output any log to stdout. Any log appears in git stdout pipe will break the git protocol, eg: client can't push and hangs forever.
Types ¶
type AppVersion ¶ added in v1.22.0
Source Files
¶
- actions.go
- admin.go
- admin_auth.go
- admin_auth_ldap.go
- admin_auth_oauth.go
- admin_auth_smtp.go
- admin_regenerate.go
- admin_user.go
- admin_user_change_password.go
- admin_user_create.go
- admin_user_delete.go
- admin_user_generate_access_token.go
- admin_user_list.go
- admin_user_must_change_password.go
- cert.go
- cmd.go
- config.go
- docs.go
- doctor.go
- doctor_convert.go
- dump.go
- dump_repo.go
- embedded.go
- generate.go
- hook.go
- keys.go
- mailer.go
- main.go
- manager.go
- manager_logging.go
- migrate.go
- migrate_storage.go
- restore_repo.go
- serv.go
- web.go
- web_acme.go
- web_graceful.go
- web_https.go
Click to show internal directories.
Click to hide internal directories.