-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
David Wu
committed
Jul 27, 2018
1 parent
6e2816a
commit 3235ee4
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | ||
} |