github.com/liamawhite/cli-with-i18n@v6.32.1-0.20171122084555-dede0a5c3448+incompatible/command/v2/unbind_route_service_command.go (about)

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