CommandName returns the name of the plugin. The name is concatenated with alias if alias is specified.
()
| 73 | // CommandName returns the name of the plugin. The name is concatenated with |
| 74 | // alias if alias is specified. |
| 75 | func (c PluginCommand) CommandName() string { |
| 76 | if c.Name != "" && c.Alias != "" { |
| 77 | return fmt.Sprintf("%s, %s", c.Name, c.Alias) |
| 78 | } |
| 79 | return c.Name |
| 80 | } |
| 81 | |
| 82 | // PluginUsageDetails contains the usage metadata provided by the plugin |
| 83 | type PluginUsageDetails struct { |
no outgoing calls
no test coverage detected