(space resources.Space)
| 548 | } |
| 549 | |
| 550 | func (cmd *LoginCommand) targetSpace(space resources.Space) { |
| 551 | cmd.Config.SetSpaceInformation(space.GUID, space.Name, true) |
| 552 | |
| 553 | cmd.UI.DisplayTextWithFlavor("Targeted space {{.Space}}.", map[string]interface{}{ |
| 554 | "Space": space.Name, |
| 555 | }) |
| 556 | cmd.UI.DisplayNewline() |
| 557 | } |
| 558 | |
| 559 | func (cmd *LoginCommand) validateFlags() error { |
| 560 | if cmd.Origin != "" && cmd.SSO { |
no test coverage detected