Skip to content
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

Merged
merged 3 commits into from
Sep 26, 2023
Merged

Conversation

RiSKeD
Copy link
Contributor

@RiSKeD RiSKeD commented Sep 14, 2023

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

@@ -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 ';')")
Copy link
Contributor

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

Copy link
Contributor Author

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.

@Foxboron
Copy link
Owner

Missing a section in the manpage :)

https://github.com/Foxboron/sbctl/blob/master/docs/sbctl.8.txt#L35

@RiSKeD
Copy link
Contributor Author

RiSKeD commented Sep 20, 2023

Missing a section in the manpage :)

https://github.com/Foxboron/sbctl/blob/master/docs/sbctl.8.txt#L35

I added comments for each of the flags I added.

@Foxboron Foxboron merged commit 4d40e79 into Foxboron:master Sep 26, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants