PluginCommands returns the plugin's commands sorted by command name.
()
| 41 | |
| 42 | // PluginCommands returns the plugin's commands sorted by command name. |
| 43 | func (p Plugin) PluginCommands() []PluginCommand { |
| 44 | sort.Slice(p.Commands, func(i, j int) bool { |
| 45 | return strings.ToLower(p.Commands[i].Name) < strings.ToLower(p.Commands[j].Name) |
| 46 | }) |
| 47 | return p.Commands |
| 48 | } |
| 49 | |
| 50 | // PluginVersion is the plugin version information |
| 51 | type PluginVersion struct { |
no outgoing calls
no test coverage detected