Commit dec6681f authored by Sietse Ringers's avatar Sietse Ringers
Browse files

feat: simplify revocation commands of irma CLI

The revocation subcommands are now subcommands of irma issuer.
parent ac250089
......@@ -6,7 +6,7 @@ import (
)
var revokeKeypairCmd = &cobra.Command{
Use: "keypair <privatekey> <publickey>",
Use: "revocation-keypair <privatekey> <publickey>",
Short: "Augment an IRMA private-public keypair with revocation key material",
Long: `Augment an IRMA private-public keypair with newly generated revocation key material.
This is required before credential types requiring revocation can be issued under this keypair.
......@@ -44,5 +44,5 @@ This is required before credential types requiring revocation can be issued unde
}
func init() {
revocationCmd.AddCommand(revokeKeypairCmd)
issuerCmd.AddCommand(revokeKeypairCmd)
}
package cmd
import "github.com/sietseringers/cobra"
// revocationCmd represents the revocation command
var revocationCmd = &cobra.Command{
Use: "revocation",
Short: "Revocation",
}
func init() {
issuerCmd.AddCommand(revocationCmd)
}
......@@ -90,5 +90,5 @@ func init() {
flags.String("name", "", "Requestor name")
flags.CountP("verbose", "v", "verbose (repeatable)")
revocationCmd.AddCommand(revokeCmd)
issuerCmd.AddCommand(revokeCmd)
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment