What's Changed
- Support environment variables
BKT_TTL,BKT_SCOPE, andBKT_CACHE_DIRas alternatives for flags--ttl,--scope, and--cache-dir, respectively (#15). - Added support for keying the cache off one or more files' last-modified time via the
--modtimeflag (#10). --discard_failuresis included in the cache key, meaningbkt -- fooandbkt --discard_failures -- foowill be cached separately.- Updated to Clap v4 (#25).
- Added CI test coverage of
feature="debug"behavior. - Fixed flaky tests that relied unnecessarily on how file modtimes change (#14).
API Changes
Bkt::discard_failures()is now set onCommandDesc, and affects the cache key.- Added a
CommandStatetype, makingCommandDescsafe to persist and pass around. Environment details like the working directory and environment variables are captured when theCommandStateinstance is constructed. Bkt::retrieveandBkt::refreshnow return more metadata about the cache state (e.g. whether there was a cache hit or miss).
Full Changelog: 0.5.4...0.6.0