cmd

package
v0.0.0-...-bb05487 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2026 License: MIT Imports: 96 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

func NewKeysCommand() *cli.Command

NewKeysCommand returns the internal SSH key lookup sub-command.

func NewMainApp

func NewMainApp(appVer AppVersion) *cli.Command

func NoHTTPRedirector

func NoHTTPRedirector()

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

func NoInstallListener

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

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

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

Types

type AppVersion

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