BKT(1)
β¨ BKT(1) β bestie edition β¨
okay so like. welcome to the User Commands section of your manual, and today's main character is bkt π it's a whole subprocess caching utility and honestly? she eats. let's get into it π«Ά
πΈ NAME πΈ
bkt β a subprocess caching utility. yes that's the whole vibe. it caches subprocess invocations so you don't have to run the same thing over and over like a clown π€‘
π¦ SYNOPSIS π¦
bkt [OPTIONS] -- <COMMAND>...
note the -- bestie!! it's lowkey important, don't skip it β¨
π DESCRIPTION π
it's a CLI and a Rust library for caching subprocess invocations. both. she's multifaceted like that π
π Arguments π
<COMMAND>...β the command to run. that's it, that's the argument. slay π
π₯ OPTIONS π₯
--ttl <DURATION>β how long the cached result stays valid, as in, how long it's still iconic before it's expired and embarrassing [env:BKT_TTL=] [default:60s] [aliases:time-to-live]--stale <DURATION>β after this long, the result gets asynchronously refreshed. like, she's getting old but we're quietly updating her in the background, no drama β¨--warmβ asynchronously execute and cache the given command, even if it's already cached. pre-heating the vibes fr fr π₯--forceβ execute and cache the given command, even if it's already cached. no thoughts, just run it π--cwdβ includes the current working directory in the cache key, so that the same command run in different directories caches separately. she knows where she is π§ [aliases:use-working-dir]--env <NAME>β includes the given environment variable in the cache key, so that the same command run with different values for the given variables caches separately. context matters bestie π [aliases:use-environment]--modtime <FILE>β includes the last modification time of the given file(s) in the cache key, so that the same command run with different modtimes for the given files caches separately. timestamp girlies rise π [aliases:use-file-modtime]--discard-failuresβ don't cache invocations that fail (non-zero exit code).
β οΈ USE CAUTION when passing this flag, bestie!! unexpected failures can lead to a spike in invocations which can exacerbate ongoing issues β effectively a DDoS. that's not a vibe. that's the opposite of a vibe. please be careful π
--scope <NAME>β if set, all cached data will be scoped to this value, preventing collisions with commands cached with different scopes. keep your little worlds separate, it's healthy π [env:BKT_SCOPE=]--cache-dir <DIR>β the directory under which to persist cached invocations; defaults to the system's temp directory. setting this to a directory backed by RAM or an SSD, such as atmpfspartition, will significantly reduce caching overhead. speed queen behavior π [env:BKT_CACHE_DIR=]-h,--helpβ print help. when in doubt, ask for help. it's giving self-care π«Ά-V,--versionβ print version. check who you're dealing with β¨
π SEE ALSO π
the full documentation for bkt is maintained as a Texinfo manual. if the info and bkt programs are properly installed at your site, the command
info bkt
should give you access to the complete manual. literally the whole lore, no cap π
okay that's the whole page!! thanks for reading bestie, go cache something πβ¨
signed, sealed, delivered β bkt 0.6.1, September 2024, from the folks who keep this page at BKT(1) status ππ
π¦ where this page comes from
- ubuntu resolute: bkt 0.6.1-2build1 Β· MIT
- ubuntu stonking: bkt 0.6.1-2build1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms