MCPcopy Create free account
hub / github.com/cloudfoundry/multiapps-cli-plugin / GetMetadata

Method GetMetadata

multiapps_plugin.go:61–71  ·  view source on GitHub ↗

GetMetadata returns the metadata of this plugin

()

Source from the content-addressed store, hash-verified

59
60// GetMetadata returns the metadata of this plugin
61func (p *MultiappsPlugin) GetMetadata() plugin.PluginMetadata {
62 metadata := plugin.PluginMetadata{
63 Name: "multiapps",
64 Version: parseSemver(Version),
65 MinCliVersion: plugin.VersionType{Major: 6, Minor: 7, Build: 0},
66 }
67 for _, command := range Commands {
68 metadata.Commands = append(metadata.Commands, command.GetPluginCommand())
69 }
70 return metadata
71}
72
73func main() {
74 plugin.Start(new(MultiappsPlugin))

Callers

nothing calls this directly

Calls 2

parseSemverFunction · 0.85
GetPluginCommandMethod · 0.65

Tested by

no test coverage detected