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 GetInitLoggerOptions ¶ added in v2.52.2
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
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 NewCommand ¶ added in v2.52.2
Initialize initializes the configuration manager and c8y client
Click to show internal directories.
Click to hide internal directories.