rump

Crates.iorump
lib.rsrump
version0.1.0
sourcesrc
created_at2015-02-15 10:44:53.971524
updated_at2015-12-11 23:55:55.315022
descriptionText snippets on the command line.
homepage
repositoryhttps://github.com/jimmycuadra/rump
max_upload_size
id1406
size6,340
Owners (github:rustaudio:owners)

documentation

README

Rump

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.

Synopsis

Usage: rump [OPTIONS] [KEY] [VALUE]

Options:
    -h --help           output usage information
    -v --version        output the version number
    -d --delete KEY     delete the specified key

CLI usage

Get a key:

rump my_key

Set a key:

rump my_key my_value

Delete a key:

rump -d my_key

Library usage

Import the crate and command module:

extern crate rump;
use rump::commands;

Get a key:

let value: Option<String> = commands::get("my_key");

Set a key:

commands::set("my_key", "my_value");

Delete a key:

commands::delete("my_key");

Storage

Data is serialized to JSON and stored in a file at ~/.rump.

License

MIT

Commit count: 14

cargo fmt