config

package
v0.0.0-...-6a623f1 Latest Latest
Warning

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

Go to latest
Published: May 1, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ExportTemplatesRootDirectory string `json:"export-templates-root-directory"`
	GodotRootDirectory           string `json:"godot-root-directory"`
	CacheDirectory               string `json:"cache-directory"`
	BinDirectory                 string `json:"bin-directory"`

	ConfigPath string            `json:"-"`
	Platform   platform.Platform `json:"-"`
	Logger     logger.Logger     `json:"-"`
	Silent     bool              `json:"-"`
}

func DefaultConfig

func DefaultConfig() (*Config, error)

func New

func New(options ...Option) (*Config, error)

func (*Config) Reset

func (c *Config) Reset() error

func (*Config) Save

func (c *Config) Save() error

type Option

type Option func(*Config)

func OptionSetConfigPath

func OptionSetConfigPath(configPath string) Option

func OptionSetLogger

func OptionSetLogger(logger logger.Logger) Option

func OptionSetSilent

func OptionSetSilent(silent bool) Option

Jump to

Keyboard shortcuts

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