{"modulePath":"github.com/developerspl/gogs","version":"v0.5.2","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package cmd\n\n## Variables\n\n```go\nvar (\n\tCOMMANDS_READONLY = map[string]models.AccessType{\n\t\t\"git-upload-pack\":    models.WRITABLE,\n\t\t\"git upload-pack\":    models.WRITABLE,\n\t\t\"git-upload-archive\": models.WRITABLE,\n\t}\n\n\tCOMMANDS_WRITE = map[string]models.AccessType{\n\t\t\"git-receive-pack\": models.READABLE,\n\t\t\"git receive-pack\": models.READABLE,\n\t}\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.BoolFlag{\"verbose, v\", \"show process details\", \"\"},\n\t},\n}\n```\n\n```go\nvar CmdFix = cli.Command{\n\tName:        \"fix\",\n\tUsage:       \"This command for upgrade from old version\",\n\tAction:      runFix,\n\tSubcommands: fixCommands,\n\tFlags:       []cli.Flag{},\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}\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}\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}\n```\n\n## Functions\n\n```go\nfunc In(b string, sl map[string]models.AccessType) bool\n```\n\n","path":"github.com/developerspl/gogs/cmd","name":"cmd","synopsis":"","isRedistributable":true}
