| 10 | const purgeServiceInstanceWarning = "WARNING: This operation assumes that the service broker responsible for this service instance is no longer available or is not responding with a 200 or 410, and the service instance has been deleted, leaving orphan records in Cloud Foundry's database. All knowledge of the service instance will be removed from Cloud Foundry, including service bindings and service keys." |
| 11 | |
| 12 | type PurgeServiceInstanceCommand struct { |
| 13 | BaseCommand |
| 14 | |
| 15 | RequiredArgs flag.ServiceInstance `positional-args:"yes"` |
| 16 | Force bool `short:"f" long:"force" description:"Force deletion without confirmation"` |
| 17 | relatedCommands interface{} `related_commands:"delete-service, service-brokers, services"` |
| 18 | } |
| 19 | |
| 20 | func (cmd PurgeServiceInstanceCommand) Execute(args []string) error { |
| 21 | if err := cmd.SharedActor.CheckTarget(true, true); err != nil { |
nothing calls this directly
no outgoing calls
no test coverage detected