MCPcopy Index your code
hub / github.com/cloudfoundry/multiapps-cli-plugin / GetPluginCommand

Method GetPluginCommand

commands/mta_command.go:41–53  ·  view source on GitHub ↗

GetPluginCommand returns the plugin command details

()

Source from the content-addressed store, hash-verified

39
40// GetPluginCommand returns the plugin command details
41func (c *MtaCommand) GetPluginCommand() plugin.Command {
42 return plugin.Command{
43 Name: "mta",
44 HelpText: "Display health and status for a multi-target app",
45 UsageDetails: plugin.Usage{
46 Usage: "cf mta MTA_ID [--namespace NAMESPACE] [-u URL]" + util.BaseEnvHelpText,
47 Options: map[string]string{
48 util.GetShortOption(namespaceOpt): "namespace of the requested mta, empty by default",
49 deployServiceURLOpt: "Deploy service URL, by default 'deploy-service.<system-domain>'",
50 },
51 },
52 }
53}
54
55func (c *MtaCommand) defineCommandOptions(flags *flag.FlagSet) {
56 flags.String(namespaceOpt, "", "")

Callers

nothing calls this directly

Calls 1

GetShortOptionFunction · 0.92

Tested by

no test coverage detected