Execute any command, cache its output and get cached output on subsequent execution
https://xn--gckvb8fzb.com
- Go 100%
| .github | Add pull_request_template.md | |
| backends | Implemented first version | |
| .editorconfig | Added .editorconfig | |
| .gitignore | Added gitignore | |
| .goreleaser.yaml | Fixed typo | |
| cexec.go | Implemented stdin forwarding, updated dependencies | |
| go.mod | Update Go dependencies | |
| go.sum | Update Go dependencies | |
| LICENSE | Added LICENSE | |
| README.md | Update README.md | |
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