Spec: notes/Spec/2115/07-enhancements.md, item E20.
Problem
ConfigDir() exists, config is a command, and kit gives us a --profile global. Nothing reads a config file, so --profile selects from an empty set. All configuration is flags and environment variables.
What to do
- Read
~/.config/ccrawl/config.toml with a [default] section plus named profiles, overriding endpoints, timeouts, workers, library dir, HF repo and global rate.
- Precedence is flag, then env, then profile, then default.
- Make
config show print the resolved value and where it came from.
Done when
Estimate: 1 day.
Spec: notes/Spec/2115/07-enhancements.md, item E20.
Problem
ConfigDir()exists,configis a command, and kit gives us a--profileglobal. Nothing reads a config file, so--profileselects from an empty set. All configuration is flags and environment variables.What to do
~/.config/ccrawl/config.tomlwith a[default]section plus named profiles, overriding endpoints, timeouts, workers, library dir, HF repo and global rate.config showprint the resolved value and where it came from.Done when
ccrawl --profile bulk search ...picks up the profile settingsconfig showattributes every value to flag, env, profile or defaultEstimate: 1 day.