github.com/loafoe/cli@v7.1.0+incompatible/integration/assets/test_plugin_with_panic/test_plugin.go (about) 1 package main 2 3 import "code.cloudfoundry.org/cli/plugin" 4 5 type TestPluginWithPanic struct { 6 } 7 8 func (c *TestPluginWithPanic) Run(cliConnection plugin.CliConnection, args []string) { 9 panic("oh muuuuuuuuuuuuuuuuuuuuuy!") 10 } 11 12 func (c *TestPluginWithPanic) GetMetadata() plugin.PluginMetadata { 13 return plugin.PluginMetadata{ 14 Name: "CF-CLI-Panic-Integration-Test-Plugin", 15 Version: plugin.VersionType{ 16 Major: 1, 17 Minor: 2, 18 Build: 4, 19 }, 20 MinCliVersion: plugin.VersionType{ 21 Major: 5, 22 Minor: 0, 23 Build: 0, 24 }, 25 Commands: []plugin.Command{ 26 {Name: "freak-out"}, 27 }, 28 } 29 } 30 31 func uninstalling() { 32 } 33 34 func main() { 35 plugin.Start(new(TestPluginWithPanic)) 36 }