config

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package config loads CLI configuration from file and environment.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Path is the resolved config file path (empty if none found).
	Path string
	// Cooldown controls how recently a tag must have been released to
	// be excluded from upgrade suggestions.
	Cooldown tag.CooldownConfig
	// Workers is the concurrency limit for pool-parallelized phases.
	// Defaults to 8; overridden by GH_ACTIONS_LOCK_WORKERS.
	Workers int
	// StallHintMS is the stall-detection threshold in milliseconds.
	// 0 disables the watcher. Overridden by GH_ACTIONS_LOCK_STALL_HINT_MS.
	StallHintMS int
	// DebugProgress enables per-phase progress tracing.
	DebugProgress bool
}

Config holds process-wide settings loaded from the config file and environment variables. Create one via LoadConfig at startup and pass it through the pipeline.

func Load

func Load() Config

Load reads the config file and environment, returning a Config with sensible defaults for any unset values.

Jump to

Keyboard shortcuts

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