MCPcopy
hub / github.com/cloudfoundry/cli / targetSpace

Method targetSpace

command/v7/login_command.go:550–557  ·  view source on GitHub ↗
(space resources.Space)

Source from the content-addressed store, hash-verified

548}
549
550func (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
559func (cmd *LoginCommand) validateFlags() error {
560 if cmd.Origin != "" && cmd.SSO {

Callers 1

ExecuteMethod · 0.95

Calls 3

SetSpaceInformationMethod · 0.65
DisplayTextWithFlavorMethod · 0.65
DisplayNewlineMethod · 0.65

Tested by

no test coverage detected