cmd

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BuildDate string
View Source
var RootCmd = &cobra.Command{
	Use:   "ksctl",
	Short: "CLI tool for managing multiple K8s clusters",
	Long: `
  _             _   _ 
 | |           | | | |
 | | _____  ___| |_| |
 | |/ / __|/ __| __| |
 |   <\__ \ (__| |_| |
 |_|\_\___/\___|\__|_|

	CLI tool which can manage multiple K8s clusters
from local clusters to cloud provider specific clusters.`,
}
View Source
var Version string = "dev"

change this using ldflags

Functions

func AllFeatures

func AllFeatures()

func Execute

func Execute()

func SetDefaults

func SetDefaults(provider consts.KsctlCloud, clusterType consts.KsctlClusterType)

func SetRequiredFeatureFlags

func SetRequiredFeatureFlags(ctx context.Context, log types.LoggerFactory, cmd *cobra.Command)

Types

type CobraCmd

type CobraCmd struct {
	ClusterName string
	Region      string
	Client      types.KsctlClient
	Version     string
}

Jump to

Keyboard shortcuts

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