Help us shape the future of Go! Take the 2026 Go Developer Survey

initrun

package
v1.153.2 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: Apache-2.0 Imports: 9 Imported by: 4

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