github.com/mook-as/cf-cli@v7.0.0-beta.28.0.20200120190804-b91c115fae48+incompatible/command/v6/unbind_route_service_command.go (about)

     1  package v6
     2  
     3  import (
     4  	"code.cloudfoundry.org/cli/command"
     5  	"code.cloudfoundry.org/cli/command/flag"
     6  	"code.cloudfoundry.org/cli/command/translatableerror"
     7  )
     8  
     9  type UnbindRouteServiceCommand struct {
    10  	RequiredArgs    flag.RouteServiceArgs `positional-args:"yes"`
    11  	Force           bool                  `short:"f" description:"Force unbinding without confirmation"`
    12  	Hostname        string                `long:"hostname" short:"n" description:"Hostname used in combination with DOMAIN to specify the route to unbind"`
    13  	Path            string                `long:"path" description:"Path used in combination with HOSTNAME and DOMAIN to specify the route to unbind"`
    14  	usage           interface{}           `usage:"CF_NAME unbind-route-service DOMAIN [--hostname HOSTNAME] [--path PATH] SERVICE_INSTANCE [-f]\n\nEXAMPLES:\n   CF_NAME unbind-route-service example.com --hostname myapp --path foo myratelimiter"`
    15  	relatedCommands interface{}           `related_commands:"delete-service, routes, services"`
    16  }
    17  
    18  func (UnbindRouteServiceCommand) Setup(config command.Config, ui command.UI) error {
    19  	return nil
    20  }
    21  
    22  func (UnbindRouteServiceCommand) Execute(args []string) error {
    23  	return translatableerror.UnrefactoredCommandError{}
    24  }