Skip to content

feat!: add list subcommand and XDG-based config discovery#18

Merged
endoze merged 1 commit into
masterfrom
add-list-mods-subcommand
Mar 29, 2026
Merged

feat!: add list subcommand and XDG-based config discovery#18
endoze merged 1 commit into
masterfrom
add-list-mods-subcommand

Conversation

@endoze
Copy link
Copy Markdown
Owner

@endoze endoze commented Mar 29, 2026

Users need a way to inspect resolved mod lists without running a full
update, and the tool previously required a writable local directory for
its config file, making global installation awkward.

This introduces a vmm list command that resolves and prints all mods
(including transitive dependencies) from the current configuration, with
optional JSON output for scripting.

Config discovery is reworked to follow XDG conventions: vmm now looks
for a local vmm_config.toml first, then falls back to
~/.config/vmm/vmm_config.toml, creating the latter on first run if
neither exists. A --config flag is also added for explicit overrides.

The cache_dir config field is removed — the XDG config home is now
always used for cached data, removing the need for users to configure
this manually.

BREAKING CHANGE: The cache_dir field is no longer read from config.
Any existing vmm_config.toml files using cache_dir should remove
that field; cached data now always lives under ~/.config/vmm/.

@endoze endoze force-pushed the add-list-mods-subcommand branch from be635e5 to 2ce72a9 Compare March 29, 2026 20:41
Users need a way to inspect resolved mod lists without running a full
update, and the tool previously required a writable local directory for
its config file, making global installation awkward.

This introduces a `vmm list` command that resolves and prints all mods
(including transitive dependencies) from the current configuration, with
optional JSON output for scripting.

Config discovery is reworked to follow XDG conventions: vmm now looks
for a local `vmm_config.toml` first, then falls back to
`~/.config/vmm/vmm_config.toml`, creating the latter on first run if
neither exists. A `--config` flag is also added for explicit overrides.

The `cache_dir` config field is removed — the XDG config home is now
always used for cached data, removing the need for users to configure
this manually.

BREAKING CHANGE: The `cache_dir` field is no longer read from config.
Any existing `vmm_config.toml` files using `cache_dir` should remove
that field; cached data now always lives under `~/.config/vmm/`.
@endoze endoze force-pushed the add-list-mods-subcommand branch from 2ce72a9 to 1c47ad1 Compare March 29, 2026 22:22
@endoze endoze merged commit 69f3afe into master Mar 29, 2026
6 checks passed
@endoze endoze deleted the add-list-mods-subcommand branch March 29, 2026 22:25
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.

1 participant