-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add append option #244
Add append option #244
Conversation
Signed-off-by: Fabian Wienand <[email protected]>
a803d3b
to
8733e65
Compare
cmd/sbctl/reset.go
Outdated
@@ -150,6 +207,7 @@ func RunReset(cmd *cobra.Command, args []string) error { | |||
func resetKeysCmdFlags(cmd *cobra.Command) { | |||
f := cmd.Flags() | |||
f.VarPF(&resetCmdOpts.Partial, "partial", "p", "reset a partial set of keys") | |||
f.StringVarP(&resetCmdOpts.CertFiles, "cert-files", "c", "", "optional paths to certificate file to remove from db (seperate individual paths by ';')") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This may not only be db, but also other variables, right? Even though the function is called the same, this seems a bit confusing to me from the wording
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
right, db is referring to the cert database of any hierarchy, the wording is a bit off there.
8733e65
to
b19c29a
Compare
…e reset Signed-off-by: Fabian Wienand <[email protected]>
b19c29a
to
fb65331
Compare
Missing a section in the manpage :) https://github.com/Foxboron/sbctl/blob/master/docs/sbctl.8.txt#L35 |
Signed-off-by: Fabian Wienand <[email protected]>
I added comments for each of the flags I added. |
Added one more flags to enroll-keys and reset respectively:
Enroll-keys: Append the key to be enrolled to the existing db
Reset: Only remove a specific certs by providing a flag with their paths
I am hesitant to add more flags to the enroll-keys cmd but they do seem useful to me