initrun

package
v1.110.3 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2025 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitRun

func InitRun(cmd *cobra.Command, opts Options, name string) (logr.Logger, error)

InitRun initializes the run command by completing and validating the options, creating and settings a logger, printing all command line flags, and configuring command settings.

Types

type Options

type Options interface {
	// Complete completes the options.
	Complete() error
	// Validate validates the options.
	Validate() error
	// LogConfig returns the logging config.
	LogConfig() (logLevel, logFormat string)
}

Options is an interface for options.

Jump to

Keyboard shortcuts

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