https://github.com/mrusme/cexec
Execute any command, cache its output and get cached output on subsequent execution
https://github.com/mrusme/cexec
cache cached caching command command-line command-line-tool exec execution timeout
Last synced: 10 months ago
JSON representation
Execute any command, cache its output and get cached output on subsequent execution
- Host: GitHub
- URL: https://github.com/mrusme/cexec
- Owner: mrusme
- License: gpl-3.0
- Created: 2022-04-28T21:57:37.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2024-03-30T18:36:25.000Z (almost 2 years ago)
- Last Synced: 2024-10-18T06:35:52.946Z (over 1 year ago)
- Topics: cache, cached, caching, command, command-line, command-line-tool, exec, execution, timeout
- Language: Go
- Homepage: https://xn--gckvb8fzb.com
- Size: 28.3 KB
- Stars: 17
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
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):
```sh
cexec echo Hello World
```
Run a program and cache its output for 120 seconds:
```sh
cexec -t 120 echo Hello World
```