commands

package
v0.0.0-jobs1 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ApiServerName         string = "testkube-api-server"
	ApiServerPort         int    = 8088
	DashboardURI          string = "http://dashboard.testkube.io?apiEndpoint="
	IngressControllerName string = "testkube-ing-ctrlr"
	CurrentApiVersion     string = apiclient.Version
)

Variables

View Source
var (
	Commit  string
	Version string
	BuiltBy string
	Date    string
)
View Source
var RootCmd = &cobra.Command{
	Use:   "testkube",
	Short: "testkube entrypoint for plugin",
	Long:  `testkube`,
	Run: func(cmd *cobra.Command, args []string) {
		ui.Logo()
		cmd.Usage()
		cmd.DisableAutoGenTag = true
	},

	PersistentPreRun: func(cmd *cobra.Command, args []string) {
		ui.Verbose = verbose

		client, _ := scripts.GetClient(cmd)

		err := ValidateVersions(client)
		if err != nil {
			ui.Warn(err.Error())
		}
	},
}

Functions

func Execute

func Execute()

func NewDashboardCmd added in v0.5.52

func NewDashboardCmd() *cobra.Command

func NewDocsCmd

func NewDocsCmd() *cobra.Command

func NewExecutorsCmd added in v0.6.4

func NewExecutorsCmd() *cobra.Command

func NewInstallCmd

func NewInstallCmd() *cobra.Command

func NewScriptsCmd

func NewScriptsCmd() *cobra.Command

func NewUninstallCmd

func NewUninstallCmd() *cobra.Command

func NewVersionCmd

func NewVersionCmd() *cobra.Command

func ValidateVersions added in v0.6.3

func ValidateVersions(c apiclient.Client) error

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