File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ package cmd
6
6
import (
7
7
"bufio"
8
8
"encoding/json"
9
- "errors"
10
9
"fmt"
11
10
"os"
12
11
@@ -16,14 +15,10 @@ import (
16
15
17
16
// keygenCmd represents the keygen command
18
17
var keygenCmd = & cobra.Command {
19
- Use : "keygen [directory]" ,
20
- Short : "generate a hppk private/public key pair" ,
21
- Args : func (cmd * cobra.Command , args []string ) error {
22
- if err := cobra .ExactArgs (1 )(cmd , args ); err != nil {
23
- return errors .New ("Missing directory, Use `hppktool keygen -h` to see how the usage.\n " )
24
- }
25
- return nil
26
- },
18
+ Use : "keygen [directory]" ,
19
+ Short : "generate a hppk private/public key pair" ,
20
+ Example : "hppktool keygen /tmp\n " + "hppktool keygen /tmp --order 5" ,
21
+ Args : cobra .ExactArgs (1 ),
27
22
Run : func (cmd * cobra.Command , args []string ) {
28
23
dir := args [0 ]
29
24
order , err := cmd .Flags ().GetInt ("order" )
You can’t perform that action at this time.
0 commit comments