Skip to content

Commit c15b57b

Browse files
committed
Update flag names and aliases to preserve backwards compatibility
Signed-off-by: Brett Logan <[email protected]>
1 parent 744de1d commit c15b57b

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

internal/generate_flags.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ func GenerateFlags() []cli.Flag {
99
Name: "app-id",
1010
Usage: "GitHub App ID",
1111
Required: true,
12-
Aliases: []string{"a"},
12+
Aliases: []string{"i", "app_id"},
1313
},
1414
&cli.StringFlag{
1515
Name: "installation-id",
1616
Usage: "GitHub App installation ID. Defaults to the first installation returned by the GitHub API if not specified",
1717
Required: false,
18-
Aliases: []string{"i"},
18+
Aliases: []string{"l", "installation_id"},
1919
},
2020
&cli.StringFlag{
2121
Name: "key",
@@ -24,10 +24,10 @@ func GenerateFlags() []cli.Flag {
2424
Aliases: []string{"k"},
2525
},
2626
&cli.StringFlag{
27-
Name: "key-base64",
27+
Name: "base64-key",
2828
Usage: "A base64 encoded private key",
2929
Required: false,
30-
Aliases: []string{"b"},
30+
Aliases: []string{"b", "base64_key"},
3131
},
3232
&cli.StringFlag{
3333
Name: "hostname",
@@ -50,10 +50,10 @@ func GenerateFlags() []cli.Flag {
5050
Value: false,
5151
},
5252
&cli.IntFlag{
53-
Name: "jwt-expiry",
53+
Name: "duration",
5454
Usage: "The expiry time of the JWT in minutes up to a maximum value of 10, useful when using the --jwt flag",
5555
Required: false,
56-
Aliases: []string{"e"},
56+
Aliases: []string{"d"},
5757
Value: 1,
5858
},
5959
&cli.BoolFlag{

internal/installations_flags.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ func InstallationsFlags() []cli.Flag {
99
Name: "app-id",
1010
Usage: "GitHub App ID",
1111
Required: true,
12-
Aliases: []string{"a"},
12+
Aliases: []string{"i", "app_id"},
1313
},
1414
&cli.StringFlag{
1515
Name: "key",
@@ -18,10 +18,10 @@ func InstallationsFlags() []cli.Flag {
1818
Aliases: []string{"k"},
1919
},
2020
&cli.StringFlag{
21-
Name: "key-base64",
21+
Name: "base64-key",
2222
Usage: "A base64 encoded private key",
2323
Required: false,
24-
Aliases: []string{"b"},
24+
Aliases: []string{"b", "base64_key"},
2525
},
2626
&cli.StringFlag{
2727
Name: "hostname",

0 commit comments

Comments
 (0)