@@ -12,29 +12,29 @@ import (
1212)
1313
1414const (
15- ConfigDir = ".cre"
16- ProfilesFile = "profiles.yaml"
17- LegacyFile = "cre.yaml" // for backwards compatibility
15+ ConfigDir = ".cre"
16+ ProfilesFile = "profiles.yaml"
17+ LegacyFile = "cre.yaml" // for backwards compatibility
1818)
1919
2020// Profile represents a single account/organization profile
2121type Profile struct {
22- Name string `yaml:"name"`
23- Org string `yaml:"org,omitempty"` // organization name for reference
24- OrgID string `yaml:"org_id,omitempty"`
25- Email string `yaml:"email,omitempty"`
26- Tokens * credentials.CreLoginTokenSet `yaml:"tokens,omitempty"`
27- APIKey string `yaml:"api_key,omitempty"`
28- AuthType string `yaml:"auth_type,omitempty"`
29- CreatedAt string `yaml:"created_at,omitempty"`
30- UpdatedAt string `yaml:"updated_at,omitempty"`
22+ Name string `yaml:"name"`
23+ Org string `yaml:"org,omitempty"` // organization name for reference
24+ OrgID string `yaml:"org_id,omitempty"`
25+ Email string `yaml:"email,omitempty"`
26+ Tokens * credentials.CreLoginTokenSet `yaml:"tokens,omitempty"`
27+ APIKey string `yaml:"api_key,omitempty"`
28+ AuthType string `yaml:"auth_type,omitempty"`
29+ CreatedAt string `yaml:"created_at,omitempty"`
30+ UpdatedAt string `yaml:"updated_at,omitempty"`
3131}
3232
3333// ProfilesConfig represents the entire profiles configuration
3434type ProfilesConfig struct {
35- Version string `yaml:"version"`
36- ActiveProfile string `yaml:"active_profile"`
37- Profiles []* Profile `yaml:"profiles"`
35+ Version string `yaml:"version"`
36+ ActiveProfile string `yaml:"active_profile"`
37+ Profiles []* Profile `yaml:"profiles"`
3838}
3939
4040// Manager handles profile operations
@@ -282,4 +282,3 @@ func (m *Manager) GetProfileByOrgID(orgID string) *Profile {
282282func (m * Manager ) GetActiveProfileName () string {
283283 return m .config .ActiveProfile
284284}
285-
0 commit comments