github.com/mook-as/cf-cli@v7.0.0-beta.28.0.20200120190804-b91c115fae48+incompatible/fixtures/plugins/empty_plugin.go (about)

     1  // +build !V7
     2  
     3  package main
     4  
     5  import "code.cloudfoundry.org/cli/plugin"
     6  
     7  type EmptyPlugin struct{}
     8  
     9  func (c *EmptyPlugin) Run(cliConnection plugin.CliConnection, args []string) {}
    10  
    11  func (c *EmptyPlugin) GetMetadata() plugin.PluginMetadata {
    12  	return plugin.PluginMetadata{
    13  		Name:     "EmptyPlugin",
    14  		Commands: []plugin.Command{},
    15  	}
    16  }
    17  
    18  func main() {
    19  	plugin.Start(new(EmptyPlugin))
    20  }