pub fn populate_cache_from_inputs<'a>(
inputs: impl Iterator<Item = (&'a str, &'a str)>,
no_cache: bool,
)Expand description
Populate the cache with inputs from a flake.
This is a convenience function that loads the cache, adds any new inputs, and commits the changes. It’s designed to be called from any command that reads inputs, helping build up the cache over time.
Errors are logged but don’t cause failures - caching is best-effort.
If no_cache is true, this function does nothing.