Beispiel #1
0
/*
* 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 "github.com/nttlabs/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(new(BasicPlugin))
	// Plugin code should be written in the Run([]string) method,
	// ensuring the plugin environment is bootstrapped.
}
Beispiel #2
0
func main() {
	plugin.Start(new(Test1))
}
func main() {
	plugin.Start(new(TestWithPushShortName))
}
Beispiel #4
0
func main() {
	plugin.Start(new(PluginDemonstratingParams))
}
Beispiel #5
0
func main() {
	plugin.Start(new(TestWithPush))
}
Beispiel #6
0
func main() {
	plugin.Start(new(MySay))
}
Beispiel #7
0
func main() {
	plugin.Start(new(TestWithHelp))
}
Beispiel #8
0
func main() {
	plugin.Start(new(Input))
}
Beispiel #9
0
func main() {
	plugin.Start(new(Interactive))
}
Beispiel #10
0
func main() {
	plugin.Start(new(EmptyPlugin))
}
Beispiel #11
0
func main() {
	plugin.Start(new(CoreCmd))
}
Beispiel #12
0
func main() {
	plugin.Start(new(CliCmd))
}
Beispiel #13
0
func main() {
	plugin.Start(new(Panics))
}