cli

package
v0.27.1 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2025 License: GPL-3.0 Imports: 14 Imported by: 0

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

func LoadConfig() (config.Config, error)

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

func NewConfigManager() config.Manager

NewConfigManager creates a new Manager with the appropriate config path.

Types

This section is empty.

Jump to

Keyboard shortcuts

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