This commit is contained in:
Andrew Martinez
2021-02-03 17:04:51 -05:00
parent 2790fa2ff0
commit eac5a99314
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -92,9 +92,9 @@ func NewEnrollCommand() *cobra.Command {
var keyDesc = ""
engines := certtools.ListEngines()
if len(engines) > 0 {
keyDesc = fmt.Sprintf("The key to use with the certifcate. Optionally specify the engine to use. supported engines: %v", engines)
keyDesc = fmt.Sprintf("The key to use with the certificate. Optionally specify the engine to use. supported engines: %v", engines)
} else {
keyDesc = fmt.Sprintf("The key to use with the certifcate.")
keyDesc = fmt.Sprintf("The key to use with the certificate.")
}
enrollSubCmd.Flags().StringVarP(&keyPath, "key", "k", "", keyDesc)
+2 -2
View File
@@ -53,9 +53,9 @@ func init() {
var keyDesc = ""
engines := certtools.ListEngines()
if len(engines) > 0 {
keyDesc = fmt.Sprintf("The key to use with the certifcate. Optionally specify the engine to use. supported engines: %v", engines)
keyDesc = fmt.Sprintf("The key to use with the certificate. Optionally specify the engine to use. supported engines: %v", engines)
} else {
keyDesc = fmt.Sprintf("The key to use with the certifcate.")
keyDesc = fmt.Sprintf("The key to use with the certificate.")
}
rootCmd.Flags().StringVarP(&keyPath, "key", "k", "", keyDesc)