MCPcopy Index your code
hub / github.com/cloudfoundry/cli / clearTargets

Method clearTargets

command/v7/target_command.go:77–83  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

75}
76
77func (cmd TargetCommand) clearTargets() {
78 if cmd.Organization != "" {
79 cmd.Config.UnsetOrganizationAndSpaceInformation()
80 } else if cmd.Space != "" {
81 cmd.Config.UnsetSpaceInformation()
82 }
83}
84
85// setOrgAndSpace sets organization and space
86func (cmd *TargetCommand) setOrgAndSpace() error {

Callers 1

ExecuteMethod · 0.95

Tested by

no test coverage detected