mirror of
https://github.com/FairwindsOps/polaris.git
synced 2026-05-21 16:43:57 +00:00
25 lines
622 B
Go
25 lines
622 B
Go
package auth
|
|
|
|
import "fmt"
|
|
|
|
func PrintStatus() error {
|
|
|
|
if content, err := readPolarisHostsFile(); err == nil {
|
|
if len(content) > 0 {
|
|
for k, h := range content {
|
|
fmt.Println(k, h)
|
|
// TODO: Vitor - implement this
|
|
/*
|
|
✓ Logged in to github.com as vitorvezani (keyring)
|
|
✓ Git operations for github.com configured to use ssh protocol.
|
|
✓ Token: ghp_************************************
|
|
✓ Token scopes: admin:public_key, read:org, repo
|
|
*/
|
|
}
|
|
return nil
|
|
}
|
|
}
|
|
fmt.Println("You are not logged into Fairwinds Insights. Run polaris auth login to authenticate.")
|
|
return nil
|
|
}
|