config

package
v0.26.0 Latest Latest
Warning

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

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

Documentation

Overview

Package config provides common configuration and utility functions for the CM CLI.

Package config 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 added in v0.26.0

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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