Skip to content

Commit b15d401

Browse files
committed
Fix base64-key input
1 parent 61aa3df commit b15d401

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

internal/generate.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ func Generate(c *cli.Context) error {
2626
silent := c.Bool("silent")
2727

2828
if keyPath == "" && keyBase64 == "" {
29-
return fmt.Errorf("either --key or --key-base64 must be specified")
29+
return fmt.Errorf("either --key or --base64-key must be specified")
3030
}
3131

3232
if keyPath != "" && keyBase64 != "" {
33-
return fmt.Errorf("only one of --key or --key-base64 may be specified")
33+
return fmt.Errorf("only one of --key or --base64-key may be specified")
3434
}
3535

3636
if hostname != "api.github.com" && !strings.Contains(hostname, "/api/v3") {

internal/installations.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ import (
1717
func Installations(c *cli.Context) error {
1818
appID := c.String("app-id")
1919
keyPath := c.String("key")
20-
keyBase64 := c.String("key-base64")
20+
keyBase64 := c.String("base64-key")
2121
hostname := strings.ToLower(c.String("hostname"))
2222

2323
if keyPath == "" && keyBase64 == "" {
24-
return fmt.Errorf("either --key or --key-base64 must be specified")
24+
return fmt.Errorf("either --key or --base64-key must be specified")
2525
}
2626

2727
if keyPath != "" && keyBase64 != "" {
28-
return fmt.Errorf("only one of --key or --key-base64 may be specified")
28+
return fmt.Errorf("only one of --key or --base64-key may be specified")
2929
}
3030

3131
if hostname != "api.github.com" && !strings.Contains(hostname, "/api/v3") {

0 commit comments

Comments
 (0)