cmd

package
v0.0.0-...-2a0defc Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2016 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "spinex",
	Short: "Spinex is a simple CLI for Spinnaker.",
	Long: `Spinex is a simple CLI for Spinnaker.

To get autocompletion, run 'sudo spinex gen autocomplete'`,
	Run: func(cmd *cobra.Command, args []string) {
		if showVersion {
			fmt.Println("Spinex version 0.1")
		} else {
			cmd.Help()
		}
	},
}

RootCmd represents the base command when called without any subcommands

Functions

func Execute

func Execute()

Execute adds all child commands to the root command sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func FormatApplicationList

func FormatApplicationList(apps []types.Application)

FormatApplicationList will format a list of applications

func FormatExecutionInfo

func FormatExecutionInfo(exec types.Execution)

FormatExecutionInfo formats information about pipeline execution

func FormatExecutionList

func FormatExecutionList(executions []types.Execution)

FormatExecutionList formats output of a list of pipeline executions

func FormatPipelineList

func FormatPipelineList(pipelines []types.Pipeline)

FormatPipelineList ..

Types

This section is empty.

Jump to

Keyboard shortcuts

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