File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -26,11 +26,11 @@ func Generate(c *cli.Context) error {
26
26
silent := c .Bool ("silent" )
27
27
28
28
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" )
30
30
}
31
31
32
32
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" )
34
34
}
35
35
36
36
if hostname != "api.github.com" && ! strings .Contains (hostname , "/api/v3" ) {
Original file line number Diff line number Diff line change @@ -17,15 +17,15 @@ import (
17
17
func Installations (c * cli.Context ) error {
18
18
appID := c .String ("app-id" )
19
19
keyPath := c .String ("key" )
20
- keyBase64 := c .String ("key- base64" )
20
+ keyBase64 := c .String ("base64-key " )
21
21
hostname := strings .ToLower (c .String ("hostname" ))
22
22
23
23
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" )
25
25
}
26
26
27
27
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" )
29
29
}
30
30
31
31
if hostname != "api.github.com" && ! strings .Contains (hostname , "/api/v3" ) {
You can’t perform that action at this time.
0 commit comments