You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 17, 2026. It is now read-only.
Repository navigation
Commit d8984ad
Browse filesBrowse the repository at this point in the historyBrowse files
Short: fmt.Sprintf("Login to %s", version.ProductName),
17
18
Long: fmt.Sprintf("Login to the %s CLI.", version.ProductName),
18
19
Run: func(cmd*cobra.Command, args []string) {
20
+
ifos.Getenv(AccessTokenEnvVar) !="" {
21
+
cobra.CheckErr(fmt.Errorf("currently using a personal access token via %s environment variable\nUnset %s to login manually", AccessTokenEnvVar, AccessTokenEnvVar))
Short: fmt.Sprintf("Logout from %s", version.ProductName),
33
38
Long: fmt.Sprintf("Logout from the %s CLI.", version.ProductName),
34
39
Run: func(cmd*cobra.Command, args []string) {
40
+
ifos.Getenv(AccessTokenEnvVar) !="" {
41
+
cobra.CheckErr(fmt.Errorf("currently using a personal access token via %s environment variable\nUnset %s to logout", AccessTokenEnvVar, AccessTokenEnvVar))
0 commit comments