File tree 5 files changed +9
-9
lines changed
5 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -23,16 +23,16 @@ func Execute() {
23
23
rootCmd := & cobra.Command { //nolint:exhaustruct,exhaustivestruct
24
24
Use : "jwt" ,
25
25
Short : "JWT Encoder and Decoder" ,
26
- Long : `Encode and Decode JWT Tokens` ,
26
+ Long : `Command and Command JWT Tokens` ,
27
27
}
28
28
cmd .SetConfigFlag (rootCmd )
29
29
30
30
rootCmd .AddCommand (
31
- encode .Encode (),
32
- decode .Decode (),
33
- configure .Configure (),
31
+ encode .Command (),
32
+ decode .Command (),
33
+ configure .Command (),
34
34
edit .Command (),
35
- key .Key (),
35
+ key .Command (),
36
36
)
37
37
38
38
if err := rootCmd .Execute (); err != nil {
Original file line number Diff line number Diff line change 6
6
"github.com/spf13/cobra"
7
7
)
8
8
9
- func Configure () * cobra.Command {
9
+ func Command () * cobra.Command {
10
10
c := & cobra.Command {
11
11
Use : "config" ,
12
12
Short : "config jwt cli" ,
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import (
12
12
"github.com/tidwall/pretty"
13
13
)
14
14
15
- func Decode () * cobra.Command {
15
+ func Command () * cobra.Command {
16
16
command := & cobra.Command {
17
17
Use : "decode" ,
18
18
Short : "decode jwt token" ,
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import (
12
12
"github.com/spf13/cobra"
13
13
)
14
14
15
- func Encode () * cobra.Command {
15
+ func Command () * cobra.Command {
16
16
root := & cobra.Command { //nolint:exhaustivestruct
17
17
Use : "encode" ,
18
18
Short : "Create JWT Token" ,
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import (
10
10
"github.com/spf13/cobra"
11
11
)
12
12
13
- func Key () * cobra.Command {
13
+ func Command () * cobra.Command {
14
14
c := & cobra.Command {
15
15
Use : "key" ,
16
16
Short : "generate different jwt keys" ,
You can’t perform that action at this time.
0 commit comments