12345678910111213141516171819202122 |
- #!/bin/bash
-
- shellfu import pretty
-
-
- cached() {
- #
- # Get cached or new output of command $@
- #
- # Usage:
- # cached [-m] [-e|-E] [-o|-O] [-d|-D] CMD [ARG]
- #
- # Look up CMD with any ARGs in local cache and return result on hit.
- # In case of miss, run command to create the cache first.
- #
- # Specify -m to enforce cache miss, ie. as if CMD is run for the first
- # time.
- #
- :
- }
-
- #shellfu module-version=__MKIT_PROJ_VERSION__
|