From ae4547209a486c5a74358be943d9c172d9bf982c Mon Sep 17 00:00:00 2001 From: srinandan Date: Mon, 9 Dec 2019 14:57:15 -0800 Subject: [PATCH] support create alias and key stores --- cmd/developers/getdevapps/getdevapps.go | 4 ++-- cmd/keyaliases/crtka/crtka.go | 4 ++-- cmd/keystores/crtks/crtks.go | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cmd/developers/getdevapps/getdevapps.go b/cmd/developers/getdevapps/getdevapps.go index 5190c2ba..3ad19e3b 100644 --- a/cmd/developers/getdevapps/getdevapps.go +++ b/cmd/developers/getdevapps/getdevapps.go @@ -37,9 +37,9 @@ func init() { Cmd.Flags().StringVarP(&name, "name", "n", "", "email of the developer") - + Cmd.Flags().BoolVarP(&expand, "expand", "x", - false, "expand app details") + false, "expand app details") _ = Cmd.MarkFlagRequired("org") _ = Cmd.MarkFlagRequired("name") diff --git a/cmd/keyaliases/crtka/crtka.go b/cmd/keyaliases/crtka/crtka.go index b523c13a..86c02dd7 100644 --- a/cmd/keyaliases/crtka/crtka.go +++ b/cmd/keyaliases/crtka/crtka.go @@ -45,7 +45,7 @@ var Cmd = &cobra.Command{ _, err = shared.PostHttpOctet(true, u.String(), aliasName+".pem") } else if format == "pkcs12" { _, err = shared.PostHttpOctet(true, u.String(), aliasName+".pfx") - } + } return }, } @@ -62,7 +62,7 @@ func init() { Cmd.Flags().StringVarP(&format, "format", "f", "", "Format of the certificate") Cmd.Flags().StringVarP(&password, "password", "p", - "", "PKCS12 password") + "", "PKCS12 password") Cmd.Flags().BoolVarP(&ignoreExpiry, "exp", "x", false, "Ignore expiry validation") Cmd.Flags().BoolVarP(&ignoreNewLine, "nl", "w", diff --git a/cmd/keystores/crtks/crtks.go b/cmd/keystores/crtks/crtks.go index d643b3ef..f7a13e10 100644 --- a/cmd/keystores/crtks/crtks.go +++ b/cmd/keystores/crtks/crtks.go @@ -30,4 +30,4 @@ func init() { "", "Name of the key store") _ = Cmd.MarkFlagRequired("name") -} \ No newline at end of file +}