Example #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.
}
Example #2
0
func main() {
	plugin.Start(new(Test1))
}
Example #3
0
func main() {
	plugin.Start(new(TestWithPushShortName))
}
Example #4
0
File: echo.go Project: nttlabs/cli
func main() {
	plugin.Start(new(PluginDemonstratingParams))
}
Example #5
0
func main() {
	plugin.Start(new(TestWithPush))
}
Example #6
0
func main() {
	plugin.Start(new(MySay))
}
Example #7
0
func main() {
	plugin.Start(new(TestWithHelp))
}
Example #8
0
File: input.go Project: nttlabs/cli
func main() {
	plugin.Start(new(Input))
}
Example #9
0
func main() {
	plugin.Start(new(Interactive))
}
Example #10
0
func main() {
	plugin.Start(new(EmptyPlugin))
}
Example #11
0
func main() {
	plugin.Start(new(CoreCmd))
}
Example #12
0
func main() {
	plugin.Start(new(CliCmd))
}
Example #13
0
func main() {
	plugin.Start(new(Panics))
}