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

cmd

package
v1.16.1 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: MIT Imports: 104 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/gitsss.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 PrepareSubcommandWithGlobalFlags added in v1.3.0

func PrepareSubcommandWithGlobalFlags(originCmd *cli.Command)

func RunMainApp

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

Types

type AppVersion

type AppVersion struct {
	Version string
	Extra   string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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