We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 54dacfc commit 5f568c7Copy full SHA for 5f568c7
1 file changed
cmd/root.go
@@ -25,6 +25,7 @@ import (
25
"fmt"
26
"os"
27
28
+ "github.com/fatih/color"
29
"github.com/joho/godotenv"
30
"github.com/spf13/cobra"
31
)
@@ -66,6 +67,12 @@ func init() {
66
67
TenantID = os.Getenv("FA_TENANT_ID")
68
APIKey = os.Getenv("FA_API_KEY")
69
70
+ if ClientID == "TODO" || TenantID == "TODO" || APIKey == "TODO" {
71
+ red := color.New(color.FgRed, color.Bold)
72
+ red.Printf("You need to finish the setup and add your FA configuration to `.env`. Do so and come back!\n")
73
+ os.Exit(1)
74
+ }
75
+
76
rootCmd.AddCommand(LoginCmd)
77
rootCmd.AddCommand(LogoutCmd)
78
rootCmd.AddCommand(FetchCmd)
0 commit comments