1
0
Fork
You've already forked cexec
0
Execute any command, cache its output and get cached output on subsequent execution https://xn--gckvb8fzb.com
  • Go 100%
Find a file
2025年12月15日 15:03:43 +01:00
.github Add pull_request_template.md 2025年12月15日 15:03:43 +01:00
backends Implemented first version 2022年04月28日 16:56:52 -05:00
.editorconfig Added .editorconfig 2022年04月28日 16:54:28 -05:00
.gitignore Added gitignore 2022年04月28日 16:56:40 -05:00
.goreleaser.yaml Fixed typo 2022年11月12日 11:32:43 -05:00
cexec.go Implemented stdin forwarding, updated dependencies 2022年08月29日 01:16:29 -05:00
go.mod Update Go dependencies 2025年05月14日 11:37:39 -05:00
go.sum Update Go dependencies 2025年05月14日 11:37:39 -05:00
LICENSE Added LICENSE 2022年04月28日 16:57:48 -05:00
README.md Update README.md 2025年07月15日 14:02:31 -05:00

cexec

Cached Exec

cexec allows to run commands and cache their output for a specific amount of time, so that re-running the command won't actually run it but instead return the cached output.

cexec will use the path specified in XDG_CACHE_HOME to store its cache. Please make sure it is exported in your ENV.

Examples

Run a program and cache its output for 60 seconds (default setting):

cexec echo Hello World

Run a program and cache its output for 120 seconds:

cexec -t 120 echo Hello World