https://github.com/hhatto/zoth
CLI Cache Tool
https://github.com/hhatto/zoth
cache cli rust tool
Last synced: about 1 year ago
JSON representation
CLI Cache Tool
- Host: GitHub
- URL: https://github.com/hhatto/zoth
- Owner: hhatto
- Created: 2017-11-17T12:46:06.000Z (over 8 years ago)
- Default Branch: main
- Last Pushed: 2024-06-09T05:01:16.000Z (about 2 years ago)
- Last Synced: 2025-04-11T03:14:12.996Z (about 1 year ago)
- Topics: cache, cli, rust, tool
- Language: Rust
- Homepage:
- Size: 36.1 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# zoth
CLI Cache Tool
## Requirements
* CMake
## Installation
```
$ cargo install --git https://github.com/hhatto/zoth.git
```
## Usage
for example with plantuml
```shell
$ time cat ~/relations.pu | zoth exec -- java -Xmx256m -jar -Dfile.encoding=UTF-8 plantuml.jar -tsvg -p > out.svg
cat ~/relations.pu 0.00s user 0.00s system 34% cpu 0.006 total
./target/release/zoth exec -- java -Xmx256m -jar -Dfile.encoding=UTF-8 -tsvg -p 60.15s user 1.56s system 121% cpu 50.658 total
# second time
$ time cat ~/relations.pu | zoth exec -- java -Xmx256m -jar -Dfile.encoding=UTF-8 plantuml.jar -tsvg -p > out.svg
cat ~/relations.pu 0.00s user 0.00s system 30% cpu 0.008 total
./target/release/zoth exec -- java -Xmx256m -jar -Dfile.encoding=UTF-8 -tsvg -p 0.00s user 0.00s system 46% cpu 0.010 total
```
## TODO
* Purge Cache (zothcl with clear sub-command)
* Configurable (zothcl/zothd)
* Server Mode (zothd)
* HTTP Interface (zothd)
## For Developer
build:
```console
$ cargo build
```
build with generte grpc code:
```console
$ cargo build --features=genproto
```
## LICENSE
MIT