Skip to content

Commit

Permalink
More non-terminal userfriendly
Browse files Browse the repository at this point in the history
  • Loading branch information
41Baloo committed Sep 14, 2024
1 parent 1e9329d commit 0b81037
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"errors"
"fmt"
"log"
"os"
"runtime"
"strings"
"sync"
Expand Down Expand Up @@ -169,7 +168,7 @@ func main() {

if !strings.HasPrefix(bearerToken, "eyJ") { // 'eyJ' is base64 for '{"'
fmt.Println(red("Your input does not seem to be a BearerToken. Make sure you copied the JavaScript's output correctly. BearerTokens start with 'eyJ'."))
os.Exit(1)
select {}
}

fmt.Println()
Expand All @@ -183,7 +182,7 @@ func main() {

if err != nil {
fmt.Println(red(fmt.Sprintf("Failed to do promotions: %s", err.Error())))
os.Exit(1)
select {}
}

fmt.Println(green("Promotion requests sent. Depending on timing, multiple leaders may be promoted."))
Expand Down
Binary file modified out/linux/crewInator_linux
Binary file not shown.
Binary file modified out/windows/crewInator_32.exe
Binary file not shown.
Binary file modified out/windows/crewInator_64.exe
Binary file not shown.

0 comments on commit 0b81037

Please sign in to comment.