cmd

package
v1.0.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 25, 2022 License: MPL-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "hub",
	Short: "Hub CLI is a stack composition and lifecycle tool",
	Long: `Hub CLI is a stack composition and lifecycle tool:
- template and stack creation, stack deploy / undeploy / backup lifecycle;
- stack and component parameters, output variables, and status;
- management of templates, stacks, components on SuperHub.io`,

	PersistentPreRun: func(cmd *cobra.Command, args []string) {
		config.Update()
		if config.Debug {
			log.Printf("Hub CLI %s %s\n", util.Version(), runtime.Version())
		}
		maybeMeterCommand(cmd)
	},

	PersistentPostRun: func(cmd *cobra.Command, args []string) {
		util.PrintAllWarnings()
	},
}

RootCmd represents the base command when called without any subcommands

Functions

func Execute

func Execute()

Types

type CmdContext

type CmdContext struct {
	Pipe io.WriteCloser
}

type ContextKey

type ContextKey string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL