config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: Apache-2.0 Imports: 7 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"`
	MarkdownConfig   *markdown_generators.MarkdownConfig `mapstructure:"markdown_config"`
	AIProviderConfig *providers.AIProviderConfig         `mapstructure:"ai_provider_config"`
}

Config represents the structure of the configuration file

func LoadConfigs

func LoadConfigs(rootCmd *cobra.Command) *Config

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

Jump to

Keyboard shortcuts

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