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

Method Execute

command/v7/service_key_command.go:15–28  ·  view source on GitHub ↗
(args []string)

Source from the content-addressed store, hash-verified

13}
14
15func (cmd ServiceKeyCommand) Execute(args []string) error {
16 if err := cmd.SharedActor.CheckTarget(true, true); err != nil {
17 return err
18 }
19
20 switch {
21 case cmd.GUID:
22 return cmd.guid()
23 case cmd.JSON:
24 return cmd.json()
25 default:
26 return cmd.details()
27 }
28}
29
30func (cmd ServiceKeyCommand) Usage() string {
31 return `CF_NAME service-key SERVICE_INSTANCE SERVICE_KEY`

Callers

nothing calls this directly

Calls 4

guidMethod · 0.95
jsonMethod · 0.95
detailsMethod · 0.95
CheckTargetMethod · 0.65

Tested by

no test coverage detected