summaryrefslogtreecommitdiffstats
path: root/cmd/cert.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-11-15 17:07:44 -0500
committerUnknwon <u@gogs.io>2015-11-15 17:07:44 -0500
commite030109b5af9015c018cdc6f18655e201f6008bf (patch)
tree700c4255054e4e261ce25f3c0deaa81778d74a84 /cmd/cert.go
parent35d49d3b34983cb6ae2b0931ddba8132e1f494c4 (diff)
downloadgitea-e030109b5af9015c018cdc6f18655e201f6008bf.tar.gz
gitea-e030109b5af9015c018cdc6f18655e201f6008bf.zip
fix api broken
Diffstat (limited to 'cmd/cert.go')
-rw-r--r--cmd/cert.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/cmd/cert.go b/cmd/cert.go
index 5b182da9e0..7b68f330ec 100644
--- a/cmd/cert.go
+++ b/cmd/cert.go
@@ -32,12 +32,12 @@ var CmdCert = cli.Command{
Outputs to 'cert.pem' and 'key.pem' and will overwrite existing files.`,
Action: runCert,
Flags: []cli.Flag{
- cli.StringFlag{"host", "", "Comma-separated hostnames and IPs to generate a certificate for", ""},
- cli.StringFlag{"ecdsa-curve", "", "ECDSA curve to use to generate a key. Valid values are P224, P256, P384, P521", ""},
- cli.IntFlag{"rsa-bits", 2048, "Size of RSA key to generate. Ignored if --ecdsa-curve is set", ""},
- cli.StringFlag{"start-date", "", "Creation date formatted as Jan 1 15:04:05 2011", ""},
- cli.DurationFlag{"duration", 365 * 24 * time.Hour, "Duration that certificate is valid for", ""},
- cli.BoolFlag{"ca", "whether this cert should be its own Certificate Authority", ""},
+ stringFlag("host", "", "Comma-separated hostnames and IPs to generate a certificate for"),
+ stringFlag("ecdsa-curve", "", "ECDSA curve to use to generate a key. Valid values are P224, P256, P384, P521"),
+ intFlag("rsa-bits", 2048, "Size of RSA key to generate. Ignored if --ecdsa-curve is set"),
+ stringFlag("start-date", "", "Creation date formatted as Jan 1 15:04:05 2011"),
+ durationFlag("duration", 365*24*time.Hour, "Duration that certificate is valid for"),
+ boolFlag("ca", "whether this cert should be its own Certificate Authority"),
},
}