root

package
v2.52.2 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2025 License: MIT Imports: 130 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Logger *logger.Logger

Logger is used to record the log messages which should be visible to the user when using the verbose flag

Functions

func ConvertToCobraCommands added in v2.30.0

func ConvertToCobraCommands(f *cmdutil.Factory, cmd *cobra.Command, extensions []extensions.Extension) error

func GetInitLoggerOptions added in v2.52.2

func GetInitLoggerOptions(args []string) logger.Options

GetInitLoggerOptions create a simple logger with a best-guess log level based on the given arguments It will not activate on any environment variables, however it will do a simplistic parsing of the common logging options before the configuration has been read which enables debugging around the configuration and extensions etc.

Types

type CmdRoot

type CmdRoot struct {
	*cobra.Command

	Verbose            bool
	Debug              bool
	ProgressBar        bool
	NoColor            bool
	SessionFile        string
	SessionUsername    string
	SessionPassword    string
	SessionMode        string
	NoLog              bool
	ActivityLogMessage string

	Factory *cmdutil.Factory
	// contains filtered or unexported fields
}

func NewCmdRoot

func NewCmdRoot(f *cmdutil.Factory, version, buildDate string) *CmdRoot

func NewCommand added in v2.52.2

func NewCommand(buildVersion, buildBranch string) (*CmdRoot, error)

Initialize initializes the configuration manager and c8y client

func (*CmdRoot) Configure

func (c *CmdRoot) Configure(disableEncryptionCheck, forceVerbose, forceDebug bool) error

Jump to

Keyboard shortcuts

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