Skip to content

feat: add global config defaults#12

Merged
AlecRust merged 1 commit into
AlecRust:mainfrom
asainz:wkb/global-config
May 1, 2026
Merged

feat: add global config defaults#12
AlecRust merged 1 commit into
AlecRust:mainfrom
asainz:wkb/global-config

Conversation

@asainz
Copy link
Copy Markdown
Collaborator

@asainz asainz commented May 1, 2026

Current problem

Workbox requires every repository to include its own config file before commands can run. This forces users to copy the same default config into new repositories even when their preferences are shared across projects.

Proposed solution

Load a global config from the XDG config directory, falling back to ~/.workbox/config.toml when XDG_CONFIG_HOME is not set. Merge any project config over the global defaults, validate the merged result, and document the lookup order with tests for global-only, local-only, merged, and invalid config cases.

# Current problem

Workbox requires every repository to include its own config file before commands can run. This forces users to copy the same default config into new repositories even when their preferences are shared across projects.

# Proposed solution

Load a global config from the XDG config directory, falling back to ~/.workbox/config.toml when XDG_CONFIG_HOME is not set. Merge any project config over the global defaults, validate the merged result, and document the lookup order with tests for global-only, local-only, merged, and invalid config cases.
@AlecRust AlecRust merged commit 4c95823 into AlecRust:main May 1, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants