Help us shape the future of Go! Take the 2026 Go Developer Survey

cmd

package
v1.27.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 29, 2026 License: MIT Imports: 95 Imported by: 0

Documentation

Overview

Package cmd provides subcommands to the gitea binary - such as "web" or "admin".

Index

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.27.0

func NewKeysCommand() *cli.Command

NewKeysCommand returns the internal SSH key lookup sub-command.

func NewMainApp added in v1.27.0

func NewMainApp(appVer AppVersion) *cli.Command

func NoHTTPRedirector added in v1.27.0

func NoHTTPRedirector()

NoHTTPRedirector tells our cleanup routine that we will not be using a fallback http redirector

func NoInstallListener added in v1.27.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.27.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.

func PrepareSubcommandWithGlobalFlags added in v1.27.0

func PrepareSubcommandWithGlobalFlags(originCmd *cli.Command)

func RunMainApp added in v1.27.0

func RunMainApp(app *cli.Command, args ...string) error

Types

type AppVersion added in v1.27.0

type AppVersion struct {
	Version string
	Extra   string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL