Documentation
¶
Overview ¶
Package cli provides common configuration and utility functions for the CM CLI.
Package cli provides common configuration and utility functions for the CM CLI.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Quiet suppresses all output except errors. Quiet bool // Verbose enables verbose output. Verbose bool // ConfigPath specifies a custom config file path. ConfigPath string )
View Source
var ( // Configuration loading errors. ErrFailedToLoadConfig = errors.New("failed to load configuration") )
Error definitions for config package.
Functions ¶
func CheckInitialization ¶
func CheckInitialization() error
CheckInitialization checks if CM is initialized and returns an error if not.
func GetConfigPath ¶
func GetConfigPath() string
GetConfigPath returns the config file path that would be used by LoadConfig.
func LoadConfig ¶
LoadConfig loads the configuration and returns an error if not found.
func NewCodeManager ¶
func NewCodeManager() (codemanager.CodeManager, error)
NewCodeManager creates a new CodeManager instance with the appropriate ConfigManager.
func NewConfigManager ¶
NewConfigManager creates a new Manager with the appropriate config path.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.