commands

package
v0.0.0-...-ed79881 Latest Latest
Warning

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

Go to latest
Published: May 6, 2020 License: Apache-2.0 Imports: 51 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:                    "awless COMMAND",
	Short:                  "Manage  and explore your cloud",
	Long:                   "awless is a powerful CLI to explore, sync and manage your cloud infrastructure",
	BashCompletionFunction: bashCompletionFunc,
	RunE: func(c *cobra.Command, args []string) error {
		if versionGlobalFlag {
			printVersion(c, args)
			return nil
		}
		return c.Usage()
	},
}

Functions

func HasCmdOnelinerChilds

func HasCmdOnelinerChilds(cmd *cobra.Command) bool

func IsCmdAnnotatedOneliner

func IsCmdAnnotatedOneliner(annot map[string]string) bool

func NewRunner

func NewRunner(tpl *template.Template, msg, tplPath string, fillers ...map[string]interface{}) *template.Runner

func NewRunnerRequiredParamsOnly

func NewRunnerRequiredParamsOnly(tpl *template.Template, msg, tplPath string, fillers ...map[string]interface{}) *template.Runner

Types

This section is empty.

Jump to

Keyboard shortcuts

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