diff options
author | Unknwon <joe2010xtmf@163.com> | 2015-02-08 21:26:14 -0500 |
---|---|---|
committer | Unknwon <joe2010xtmf@163.com> | 2015-02-08 21:26:14 -0500 |
commit | f15fa9167ade8262bed437451585d319f12d1182 (patch) | |
tree | 1f6e32e4377d0c09fd3a57a66caf5098e0c16c97 /cmd/cert_stub.go | |
parent | cd0ee35b3f887cc4ab6ba16cc2d955bfae607678 (diff) | |
download | gitea-f15fa9167ade8262bed437451585d319f12d1182.tar.gz gitea-f15fa9167ade8262bed437451585d319f12d1182.zip |
cmd: code fix for #905
- routers/admin: add rewrite update hook operation
- conf/locale: update locale file due to ini behavior changes
- cmd/cert_stub.go: remove useless code
- cmd/fix.go: no longer need fix command(at least now)
Diffstat (limited to 'cmd/cert_stub.go')
-rw-r--r-- | cmd/cert_stub.go | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/cmd/cert_stub.go b/cmd/cert_stub.go index 69c9821e02..1b68ca83f1 100644 --- a/cmd/cert_stub.go +++ b/cmd/cert_stub.go @@ -9,7 +9,6 @@ package cmd import ( "fmt" "os" - "time" "github.com/codegangsta/cli" ) @@ -20,14 +19,6 @@ var CmdCert = cli.Command{ Description: `Generate a self-signed X.509 certificate for a TLS server. 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", ""}, - }, } func runCert(ctx *cli.Context) { |