github.com/franc20/ayesa_sap@v7.0.0-beta.28.0.20200124003224-302d4d52fa6c+incompatible/integration/assets/test_plugin_with_panic_v7/test_plugin.go (about) 1 package main 2 3 import plugin "code.cloudfoundry.org/cli/plugin/v7" 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 }