appconfig

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package appconfig defines application configuration defaults and schema.

Package appconfig defines application configuration defaults and schema.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	RootPath         string          `yaml:"root_path"`
	ProjectDirPrefix string          `yaml:"project_dir_prefix"`
	GitLocation      string          `yaml:"git_location"`
	LogLevel         zerolog.Level   `yaml:"log_level"`
	PostSteps        PostStepsConfig `yaml:"post_steps"`
}

Config contains app-wide settings loaded from defaults, YAML, and CLI overrides.

func Default

func Default() *Config

Default returns a config initialized with built-in defaults.

func (*Config) LoadYAML

func (c *Config) LoadYAML(path string) error

LoadYAML merges YAML configuration from path into the config.

func (*Config) Normalize

func (c *Config) Normalize()

Normalize expands config values that should be resolved before command execution.

type PostStepsConfig

type PostStepsConfig struct {
	GoGetUpdate bool `yaml:"go_get_update"`
	GoModTidy   bool `yaml:"go_mod_tidy"`
	GitInit     bool `yaml:"git_init"`
	GitCommit   bool `yaml:"git_commit"`
}

PostStepsConfig contains configurable post-generation step toggles.

Jump to

Keyboard shortcuts

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