Example #1
0
func init() {
	ui := &cli.BasicUi{
		Writer: os.Stdout,
	}

	common.RegisterCommand("query", func() (cli.Command, error) {
		return &Command{
			UI: ui,
		}, nil
	})
}
Example #2
0
func init() {
	ui := &cli.BasicUi{
		Writer: os.Stdout,
	}

	common.RegisterCommand("version", func() (cli.Command, error) {
		return &Command{
			Revision:          GitCommit,
			Version:           Version,
			VersionPrerelease: Release,
			UI:                ui,
		}, nil
	})
}