root

package
v2.54.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2026 License: MIT Imports: 134 Imported by: 0

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.

func ShouldIgnoreSessionFile added in v2.53.0

func ShouldIgnoreSessionFile(args []string) bool

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