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

Method guid

command/v7/service_key_command.go:38–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36}
37
38func (cmd ServiceKeyCommand) guid() error {
39 key, warnings, err := cmd.Actor.GetServiceKeyByServiceInstanceAndName(
40 cmd.RequiredArgs.ServiceInstance,
41 cmd.RequiredArgs.ServiceKey,
42 cmd.Config.TargetedSpace().GUID,
43 )
44 if err != nil {
45 cmd.UI.DisplayWarnings(warnings)
46 return err
47 }
48
49 cmd.UI.DisplayText(key.GUID)
50 return nil
51}
52
53func (cmd ServiceKeyCommand) json() error {
54 details, warnings, err := cmd.Actor.GetServiceKeyDetailsByServiceInstanceAndName(

Callers 1

ExecuteMethod · 0.95

Calls 4

TargetedSpaceMethod · 0.65
DisplayWarningsMethod · 0.65
DisplayTextMethod · 0.65

Tested by

no test coverage detected