fix: Accept the CN through a flag
This commit is contained in:
1 parent
3c83ac6e7f
commit
068db76488
2 files changed
+13
-3
No files matched your search
@@ -8,6 +8,9 @@ import (
|
||||
var Name string
|
||||
var OutDir string
|
||||
|
||||
// Needed by all subcommands that generate certificates.
|
||||
var CommonName string
|
||||
|
||||
func init() {
|
||||
rootCmd.AddCommand(generateCmd)
|
||||
|
||||
@@ -17,7 +20,7 @@ func init() {
|
||||
"name",
|
||||
"n",
|
||||
"",
|
||||
"name of the artifact being benerated",
|
||||
"name of the artifact being generated",
|
||||
)
|
||||
generateCmd.MarkPersistentFlagRequired("name")
|
||||
|
||||
|
||||
Reference in new issue
Block a user