config

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package config manages application configuration from environment variables and flags.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyEnvOverrides

func ApplyEnvOverrides(cfg *Config)

ApplyEnvOverrides reads supported environment variables and overrides cfg in place.

func Finalize

func Finalize(cfg *Config) error

Finalize validates and normalizes paths.

func RegisterFlags

func RegisterFlags(fs *pflag.FlagSet, cfg *Config)

RegisterFlags attaches configuration flags to the provided FlagSet.

Types

type Config

type Config struct {
	RootDir       string
	StaticOutput  string
	AssetsDir     string
	Port          int
	AutoOpen      bool
	DarkModeFirst bool
	Verbose       bool
}

Config holds runtime configuration for the wiki server and exporter.

func Default

func Default() Config

Default returns ready-to-use defaults prior to env/flag overrides.

Jump to

Keyboard shortcuts

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