GetPluginCommand returns the plugin command details
()
| 39 | |
| 40 | // GetPluginCommand returns the plugin command details |
| 41 | func (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 | |
| 55 | func (c *MtaCommand) defineCommandOptions(flags *flag.FlagSet) { |
| 56 | flags.String(namespaceOpt, "", "") |
nothing calls this directly
no test coverage detected