Browse Source

Merge cert command as generate subcommand

pull/1234/head
lunnyxiao 10 years ago committed by Paolo Borelli
parent
commit
1f5a6d1bff
  1. 3
      cmd/generate.go
  2. 1
      gogs.go

3
cmd/generate.go

@ -17,12 +17,13 @@ import (
var CmdGenerate = cli.Command{
Name: "generate",
Usage: "Generate web server configuration files",
Usage: "Generate self-signed certificate, apache and nginx configuration files",
Description: `Generate configuration files to use a web server as a proxy for Gogs.`,
Flags: []cli.Flag{
cli.StringFlag{"config, c", "custom/conf/app.ini", "Custom configuration file path", ""},
},
Subcommands: []cli.Command{
CmdCert,
{
Name: "apache",
Usage: "generate Apache configuration file",

1
gogs.go

@ -34,7 +34,6 @@ func main() {
cmd.CmdServ,
cmd.CmdUpdate,
cmd.CmdDump,
cmd.CmdCert,
cmd.CmdGenerate,
}
app.Flags = append(app.Flags, []cli.Flag{}...)

Loading…
Cancel
Save