cmd

package
v0.0.0-...-b8e83fa Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddDefaultAirshipCTLCommands

func AddDefaultAirshipCTLCommands(cmd *cobra.Command, factory cfg.Factory) *cobra.Command

AddDefaultAirshipCTLCommands is a convenience function for adding all of the default commands to airshipctl

func NewAirshipCTLCommand

func NewAirshipCTLCommand(out io.Writer) *cobra.Command

NewAirshipCTLCommand creates a root `airshipctl` command with the default commands attached

func NewVersionCommand

func NewVersionCommand() *cobra.Command

NewVersionCommand creates a command for displaying the version of airshipctl

Types

type RootOptions

type RootOptions struct {
	Debug             bool
	AirshipConfigPath string
}

RootOptions stores global flags values

func NewRootCommand

func NewRootCommand(out io.Writer) (*cobra.Command, *RootOptions)

NewRootCommand creates the root `airshipctl` command. All other commands are subcommands branching from this one

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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