{"modulePath":"github.com/stackdocker/gogs","version":"v0.9.13","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package cmd\n\nCopyright 2009 The Go Authors. All rights reserved. Copyright 2014 The Gogs Authors. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file.\n\n## Variables\n\n```go\nvar CmdCert = cli.Command{\n\tName:        \"cert\",\n\tUsage:       \"Generate self-signed certificate\",\n\tDescription: `Please use build tags \"cert\" to rebuild Gogs in order to have this ability`,\n\tAction:      runCert,\n}\n```\n\n```go\nvar CmdDump = cli.Command{\n\tName:  \"dump\",\n\tUsage: \"Dump Gogs files and database\",\n\tDescription: `Dump compresses all related files and database into zip file.\nIt can be used for backup and capture Gogs server image to send to maintainer`,\n\tAction: runDump,\n\tFlags: []cli.Flag{\n\t\tstringFlag(\"config, c\", \"custom/conf/app.ini\", \"Custom configuration file path\"),\n\t\tboolFlag(\"verbose, v\", \"show process details\"),\n\t},\n}\n```\n\n```go\nvar CmdServ = cli.Command{\n\tName:        \"serv\",\n\tUsage:       \"This command should only be called by SSH shell\",\n\tDescription: `Serv provide access auth for repositories`,\n\tAction:      runServ,\n\tFlags: []cli.Flag{\n\t\tstringFlag(\"config, c\", \"custom/conf/app.ini\", \"Custom configuration file path\"),\n\t},\n}\n```\n\n```go\nvar CmdUpdate = cli.Command{\n\tName:        \"update\",\n\tUsage:       \"This command should only be called by Git hook\",\n\tDescription: `Update get pushed info and insert into database`,\n\tAction:      runUpdate,\n\tFlags: []cli.Flag{\n\t\tstringFlag(\"config, c\", \"custom/conf/app.ini\", \"Custom configuration file path\"),\n\t},\n}\n```\n\n```go\nvar CmdWeb = cli.Command{\n\tName:  \"web\",\n\tUsage: \"Start Gogs web server\",\n\tDescription: `Gogs web server is the only thing you need to run,\nand it takes care of all the other things for you`,\n\tAction: runWeb,\n\tFlags: []cli.Flag{\n\t\tstringFlag(\"port, p\", \"3000\", \"Temporary port number to prevent conflict\"),\n\t\tstringFlag(\"config, c\", \"custom/conf/app.ini\", \"Custom configuration file path\"),\n\t},\n}\n```\n\n## Types\n\n```go\ntype VerChecker struct {\n\tImportPath string\n\tVersion    func() string\n\tExpected   string\n}\n```\n\n","path":"github.com/stackdocker/gogs/cmd","name":"cmd","synopsis":"","isRedistributable":true}
