cmd

package
Version: v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2022 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Config holds the global configuration for kkpctl
	Config *config.Config

	// Version represents the Version of the kkpctl binary, should be set via ldflags -X
	Version string

	// Date represents the Date of when the kkpctl binary was build, should be set via ldflags -X
	Date string

	// Commit represents the Commit-hash from which kkpctl binary was build, should be set via ldflags -X
	Commit string

	// BuiltBy represents who build the binary, should be set via ldflags -X
	BuiltBy string
)

Functions

func AddClusterFlag added in v0.1.14

func AddClusterFlag(cmd *cobra.Command)

AddClusterFlag adds the --cluster flag to the cobra.Command

this ensures that the --cluster flag is always added in the same way and
having the completion function working

func AddLabelsFlag added in v0.1.14

func AddLabelsFlag(cmd *cobra.Command)

AddLabelsFlag adds the --labels flag to the cobra.Command

this ensures that the --datacenter flag is always added in the same way

func AddProjectFlag added in v0.1.14

func AddProjectFlag(cmd *cobra.Command)

AddProjectFlag adds the --project flag to the cobra.Command

this ensures that the --project flag is always added in the same way and
having the completion function working

func Execute

func Execute(version, commit, date, builtBy string)

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

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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