Rump is a command line tool for quick storage and retrival of text snippets. It is a port of Bang/Gong/Pork to Rust. Rump provides an executable, rump
, as well as programmatic access to the text snippets via a Rust library.
``` Usage: rump [OPTIONS] [KEY] [VALUE]
Options: -h --help output usage information -v --version output the version number -d --delete KEY delete the specified key ```
Get a key:
bash
rump my_key
Set a key:
rump my_key my_value
Delete a key:
rump -d my_key
Import the crate and command module:
rust
extern crate rump;
use rump::commands;
Get a key:
rust
let value: Option<String> = commands::get("my_key");
Set a key:
rust
commands::set("my_key", "my_value");
Delete a key:
rust
commands::delete("my_key");
Data is serialized to JSON and stored in a file at ~/.rump
.