| 5 | ) |
| 6 | |
| 7 | type ServiceKeyCommand struct { |
| 8 | BaseCommand |
| 9 | |
| 10 | RequiredArgs flag.ServiceInstanceKey `positional-args:"yes"` |
| 11 | GUID bool `long:"guid" description:"Retrieve and display the given service-key's guid. All other output is suppressed."` |
| 12 | JSON bool `long:"json" description:"Output credentials as JSON. All other output is suppressed."` |
| 13 | } |
| 14 | |
| 15 | func (cmd ServiceKeyCommand) Execute(args []string) error { |
| 16 | if err := cmd.SharedActor.CheckTarget(true, true); err != nil { |
nothing calls this directly
no outgoing calls
no test coverage detected