cmd

package
v1.37.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 43 Imported by: 1

Documentation

Index

Constants

View Source
const PlainOutputFormat = "PLAIN"

Variables

View Source
var COMMIT = "unknown"

COMMIT is the short hash of the source tree. This should be substituted by Git commit hash during the build process.

View Source
var VERSION = "dev"

VERSION is the current version of decK. This should be substituted by git tag during the build process.

Functions

func Execute

func Execute(ctx context.Context)

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.

func GetKongClientForKonnectMode added in v1.16.0

func GetKongClientForKonnectMode(
	ctx context.Context, konnectConfig *utils.KonnectConfig,
) (*kong.Client, error)

GetKongClientForKonnectMode abstracts the different cloud environments users may be using, creating a Konnect client with the proper attributes set. This also includes a fallback mechanism using an address pool to establish a session with Konnect, making the different cloud environments completely transparent to users.

func NewRootCmd added in v1.12.0

func NewRootCmd() *cobra.Command

NewRootCmd represents the base command when called without any subcommands

Types

type LintResult added in v1.28.0

type LintResult struct {
	Message   string
	Severity  string
	Line      int
	Column    int
	Character int
	Path      string
}

type Severity added in v1.28.0

type Severity int
const (
	SeverityHint Severity = iota
	SeverityInfo
	SeverityWarn
	SeverityError
)

func ParseSeverity added in v1.28.0

func ParseSeverity(s string) Severity

Jump to

Keyboard shortcuts

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