{"modulePath":"github.com/kernel164/gogs","version":"v0.7.6","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 (\n\tCOMMANDS = map[string]models.AccessMode{\n\t\t\"git-upload-pack\":    models.ACCESS_MODE_READ,\n\t\t\"git-upload-archive\": models.ACCESS_MODE_READ,\n\t\t\"git-receive-pack\":   models.ACCESS_MODE_WRITE,\n\t}\n)\n```\n\n```go\nvar CmdCert = cli.Command{\n\tName:  \"cert\",\n\tUsage: \"Generate self-signed certificate\",\n\tDescription: `Generate a self-signed X.509 certificate for a TLS server. \nOutputs to 'cert.pem' and 'key.pem' and will overwrite existing files.`,\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\tcli.StringFlag{\"config, c\", \"custom/conf/app.ini\", \"Custom configuration file path\", \"\"},\n\t\tcli.BoolFlag{\"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\tcli.StringFlag{\"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 SSH shell\",\n\tDescription: `Update get pushed info and insert into database`,\n\tAction:      runUpdate,\n\tFlags: []cli.Flag{\n\t\tcli.StringFlag{\"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\tcli.StringFlag{\"port, p\", \"3000\", \"Temporary port number to prevent conflict\", \"\"},\n\t\tcli.StringFlag{\"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/kernel164/gogs/cmd","name":"cmd","synopsis":"","isRedistributable":true}
