(config command.Config, ui command.UI)
| 23 | } |
| 24 | |
| 25 | func (cmd *APICommand) Setup(config command.Config, ui command.UI) error { |
| 26 | cmd.UI = ui |
| 27 | cmd.Config = config |
| 28 | |
| 29 | ccClient := shared.NewWrappedCloudControllerClient(config, ui) |
| 30 | cmd.Actor = v7action.NewActor(ccClient, config, nil, nil, nil, clock.NewClock()) |
| 31 | return nil |
| 32 | } |
| 33 | |
| 34 | func (cmd *APICommand) Execute(args []string) error { |
| 35 | if cmd.Unset { |
nothing calls this directly
no test coverage detected