cmd

package
v0.0.0-...-10d6984 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2018 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "kubicorn",
	Short: "Kubernetes cluster management, without any magic",
	Long: fmt.Sprintf(`
%s
`, Unicorn),
	Run: func(cmd *cobra.Command, args []string) {
		if logger.Fabulous {
			cmd.SetOutput(logger.FabulousWriter)
		}
		if viper.GetString(keyTrueColor) != "" {
			cmd.SetOutput(logger.FabulousTrueWriter)
		}
		cmd.Help()
	},
	BashCompletionFunction: bashCompletionFunc,
}

RootCmd represents the base command when called without any subcommands

View Source
var (
	Unicorn = fmt.Sprintf(`-----------------------------------------------------------------------------------
                                                         ,/
                                                        //
                                                      ,//
                                          ___   /|   |//
                                       __/\_ --(/|___/-/
 The Kubicorn Authors               \|\_-\___ __-_ - /-/ \.
    Copyright 2017                |\_-___,-\_____--/_)' ) \
                                   \ -_ /     __ \(  ( __ \|
                                    \__|      |\)\ ) /(/|
           ,._____.,            ',--//-|      \  |  '   /
          /     __. \,          / /,---|       \       /
         / /    _. \  \         / _/ _,'        |     |
        |  | ( (  \   |      ,/\'__/'/          |     |
        |  \  \ --,  _/_------______/           \(   )/
        | | \  \_. \,                            \___/\
        | |  \_   \  \                                 \
        \ \    \_ \   \   /              Kubicorn       \
         \ \  \._  \__ \_|       |       v%s        \
          \ \___  \      \       |                        \
           \__ \__ \  \_ |       \                         |
           |  \_____ \  ____      |                        |
           | \  \__ ---' .__\     |        |               |
           \  \__ ---   /   )     |        \              /
            \   \____/ / ()(      \           ---_       /|
             \__________/(,--__    \_________.    |    ./ |
               |     \ \   ---_\--,           \   \_,./   |
               |      \  \_   \    / ---_______-\   \\    /
                \      \.___, |   /              \   \\   \
                 \     |  \_ \|   \              (   |:    |
                  \    \      \    |             /  / |    ;
                   \    \      \    \          (  _'   \  |
                    \.   \      \.   \           __/   |  |
                      \   \       \.  \                |  |
                       \   \        \  \               (  )
                        \   |        \  |              |  |
                         |  \         \ \              |  |  ----
                         ( __;        ( _;            ('-_';  --------
                         |___\        \___:            \___:   ---------------

----[ %s ]--------------------------------------------

Create, Manage, and Scale Kubernetes infrastructure in the cloud.
`, version.GetVersion().Version, version.GetVersion().GitCommit)
)

Functions

func AdoptCmd

func AdoptCmd() *cobra.Command

AdoptCmd represents the adopt command

func ApplyCmd

func ApplyCmd() *cobra.Command

ApplyCmd represents the apply command

func CRDCmd

func CRDCmd() *cobra.Command

func CompletionCmd

func CompletionCmd() *cobra.Command

CompletionCmd represents the completion command

func CreateCmd

func CreateCmd() *cobra.Command

CreateCmd represents create command

func DeleteCmd

func DeleteCmd() *cobra.Command

DeleteCmd represents the delete command

func DeployControllerCmd

func DeployControllerCmd() *cobra.Command

DeployControllerCmd represents the apply command

func EditCmd

func EditCmd() *cobra.Command

EditCmd represents edit command

func Execute

func Execute()

Execute performs root command task.

func ExplainCmd

func ExplainCmd() *cobra.Command

ExplainCmd represents the explain command

func GetConfigCmd

func GetConfigCmd() *cobra.Command

GetConfigCmd represents the apply command

func ImageCmd

func ImageCmd() *cobra.Command

ImageCmd represents the image command

func ListCmd

func ListCmd() *cobra.Command

ListCmd represents the list command

func PromptCmd

func PromptCmd() *cobra.Command

PromptCmd represents the kubicorn interactive prompt.

func RunCreate

func RunCreate(options *cli.CreateOptions) error

RunCreate is the starting point when a user runs the create command.

func VersionCmd

func VersionCmd() *cobra.Command

VersionCmd represents the version command

Types

type OutputData

type OutputData struct {
	Actual   *cluster.Cluster
	Expected *cluster.Cluster
}

Jump to

Keyboard shortcuts

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