Skip to content

feat(cli): the document cache takes the config directory - #204

Draft
ecalifornica wants to merge 1 commit into
robert/config-resumefrom
robert/config-cache
Draft

feat(cli): the document cache takes the config directory#204
ecalifornica wants to merge 1 commit into
robert/config-resumefrom
robert/config-cache

Conversation

@ecalifornica

@ecalifornica ecalifornica commented Aug 13, 2026

Copy link
Copy Markdown
Collaborator

Part of #184; path-cli only. The cache, the sync engine's record surfaces, and the query scan take config_dir: &Path (20 signatures), so no function below the command layer takes &Config for its config directory alone and cache.rs reads no environment variable. Command modules resolve Config::config_dir once and pass the path; cmd_config::run takes &Config because it imported the free config_dir(), which this PR deletes. Behavior change: p export, resume, and query resolve the config directory before reading their input, so they error without $HOME, $USERPROFILE, or $TOOLPATH_CONFIG_DIR even for a file input.

@github-actions

github-actions Bot commented Aug 13, 2026

Copy link
Copy Markdown

🔍 Preview deployed: https://2989f897.toolpath.pages.dev

@ecalifornica
ecalifornica requested a review from akesling August 17, 2026 13:40
@ecalifornica
ecalifornica marked this pull request as ready for review August 17, 2026 17:02
@ecalifornica ecalifornica changed the title feat(cli): thread Config through the document cache feat(cli): the document cache takes the config directory Aug 25, 2026
@ecalifornica
ecalifornica marked this pull request as draft August 25, 2026 20:23
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