Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hhatto/zoth
CLI Cache Tool
https://github.com/hhatto/zoth
cache cli rust tool
Last synced: about 1 month ago
JSON representation
CLI Cache Tool
- Host: GitHub
- URL: https://github.com/hhatto/zoth
- Owner: hhatto
- Created: 2017-11-17T12:46:06.000Z (almost 7 years ago)
- Default Branch: main
- Last Pushed: 2024-04-20T06:50:27.000Z (7 months ago)
- Last Synced: 2024-05-09T21:56:27.594Z (6 months ago)
- Topics: cache, cli, rust, tool
- Language: Rust
- Homepage:
- Size: 34.2 KB
- Stars: 5
- Watchers: 3
- 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