cmd

package
v1.26.0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2026 License: MIT Imports: 95 Imported by: 65

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

func NewKeysCommand() *cli.Command

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.

func RunMainApp added in v1.20.3

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

Types

type AppVersion added in v1.22.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