Skip to content

Commit

Permalink
Add back in the main()
Browse files Browse the repository at this point in the history
  • Loading branch information
David Wu committed Jul 27, 2018
1 parent 6e2816a commit 3235ee4
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions create-services-plugin.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package main

import (
"code.cloudfoundry.org/cli/plugin"
"github.com/dawu415/CF-CLI-Create-Service-Push-Plugin/createServicePush"
)

// Unlike most Go programs, the `Main()` function will not be used to run all of the
// commands provided in your plugin. Main will be used to initialize the plugin
// process, as well as any dependencies you might require for your
// plugin.
func main() {
// Any initialization for your plugin can be handled here
//
// Note: to run the plugin.Start method, we pass in a pointer to the struct
// implementing the interface defined at "code.cloudfoundry.org/cli/plugin/plugin.go"
//
// Note: The plugin's main() method is invoked at install time to collect
// metadata. The plugin will exit 0 and the Run([]string) method will not be
// invoked.
plugin.Start(createServicePush.Create())
// Plugin code should be written in the Run method,
// ensuring the plugin environment is bootstrapped.
}

0 comments on commit 3235ee4

Please sign in to comment.