commands/add_org.go
func (c *AddOrgToConfigurationCommand) Execute([]string) error {
	lo.G.Warning("This command has been deprecated use lastest cf-mgmt-config cli")
	orgConfig := &config.OrgConfig{
		Org:                  c.OrgName,
		BillingManagerGroup:  c.OrgBillingMgrGroup,
		ManagerGroup:         c.OrgMgrGroup,
		AuditorGroup:         c.OrgAuditorGroup,
		RemoveUsers:          true,
		RemovePrivateDomains: true,
	}
	spacesConfig := &config.Spaces{Org: orgConfig.Org, EnableDeleteSpaces: true}
	return config.NewManager(c.ConfigDirectory).AddOrgToConfig(orgConfig, spacesConfig)
}
func (c *AddOrgToConfigurationCommand) Execute([]string) error {
	lo.G.Warning("This command has been deprecated use lastest cf-mgmt-config cli")
	orgConfig := &config.OrgConfig{
		Org:                  c.OrgName,
		BillingManagerGroup:  c.OrgBillingMgrGroup,
		ManagerGroup:         c.OrgMgrGroup,
		AuditorGroup:         c.OrgAuditorGroup,
		RemoveUsers:          true,
		RemovePrivateDomains: true,
	}
	spacesConfig := &config.Spaces{Org: orgConfig.Org, EnableDeleteSpaces: true}
	return config.NewManager(c.ConfigDirectory).AddOrgToConfig(orgConfig, spacesConfig)
}
func ( c * AddOrgToConfigurationCommand ) Execute ( [ ] string ) error { lo . G . Warning ( " " ) orgConfig := & config . OrgConfig { Org : c . OrgName , BillingManagerGroup : c . OrgBillingMgrGroup , ManagerGroup : c . OrgMgrGroup , AuditorGroup : c . OrgAuditorGroup , RemoveUsers : true , RemovePrivateDomains : true , } spacesConfig := & config . Spaces { Org : orgConfig . Org , EnableDeleteSpaces : true } return config . NewManager ( c . ConfigDirectory ) . AddOrgToConfig ( orgConfig , spacesConfig ) }
//Execute - adds a named org to the configuration
Execute - adds a named org to the configuration