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

Method RequireTargetedOrg

actor/sharedaction/check_target.go:43–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41}
42
43func (actor Actor) RequireTargetedOrg() (string, error) {
44 if !actor.IsOrgTargeted() {
45 return "", actionerror.NoOrganizationTargetedError{
46 BinaryName: actor.Config.BinaryName(),
47 }
48 }
49
50 return actor.Config.TargetedOrganizationName(), nil
51}

Callers

nothing calls this directly

Implementers 1

FakeActorcommand/v7/v7fakes/fake_actor.go

Calls 3

IsOrgTargetedMethod · 0.95
BinaryNameMethod · 0.65

Tested by

no test coverage detected