Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jimmycuadra/rump
Text snippets on the command line.
https://github.com/jimmycuadra/rump
application rust utility
Last synced: about 1 month ago
JSON representation
Text snippets on the command line.
- Host: GitHub
- URL: https://github.com/jimmycuadra/rump
- Owner: jimmycuadra
- License: mit
- Created: 2015-01-09T05:01:40.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-04-04T06:31:11.000Z (almost 10 years ago)
- Last Synced: 2024-11-30T07:47:42.889Z (about 1 month ago)
- Topics: application, rust, utility
- Language: Rust
- Size: 164 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Rump
**Rump** is a command line tool for quick storage and retrival of text snippets. It is a port of [Bang](https://github.com/jimmycuadra/bang)/[Gong](https://github.com/jimmycuadra/gong)/[Pork](https://github.com/jimmycuadra/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:
``` bash
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:
``` rust
extern crate rump;
use rump::commands;
```Get a key:
``` rust
let value: Option = commands::get("my_key");
```Set a key:
``` rust
commands::set("my_key", "my_value");
```Delete a key:
``` rust
commands::delete("my_key");
```## Storage
Data is serialized to JSON and stored in a file at `~/.rump`.
## License
[MIT](http://opensource.org/licenses/MIT)