pub fn build_cache<F>( config: &Config, fingerprint: &str, command_exists: F, ) -> CmdCachewhere F: Fn(&str) -> bool,
Build a cache by checking each command with the provided closure.