config

package
v1.7.4 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitFlags

func InitFlags(rootCmd *cobra.Command)

InitFlags initializes the flags for the root command.

Types

type Config

type Config struct {
	Version          string                      `mapstructure:"version"`
	Theme            string                      `mapstructure:"theme"`
	RAG              bool                        `mapstructure:"rag"`
	AIProviderConfig *providers.AIProviderConfig `mapstructure:"ai_provider_config"`
}

Config represents the structure of the configuration file

func LoadConfigs

func LoadConfigs(rootCmd *cobra.Command, cwd string) *Config

LoadConfigs initializes the configuration from file, flags, and environment variables, and returns the final config.

Jump to

Keyboard shortcuts

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