Crates.io | rubin-cli |
lib.rs | rubin-cli |
version | 0.2.0 |
source | src |
created_at | 2023-06-29 20:38:31.505724 |
updated_at | 2023-09-25 16:29:59.018742 |
description | CLI for the Rubin lib |
homepage | https://github.com/Tyrannican/rubin |
repository | https://github.com/Tyrannican/rubin |
max_upload_size | |
id | 903700 |
size | 26,379 |
Command-line interface for the Rubin library.
You can install the Rubin CLI using cargo
:
cargo install rubin-cli
The Rubin CLI offers two options:
Creating a Rubin server which offers in-memory storage for key-value pairs (see here)
A CLI for interacting with a running Rubin server
Start a Rubin server on a given address / port
Usage: rubin server [OPTIONS]
Options:
-a, --address <ADDRESS> Server address to use [default: 127.0.0.1]
-p, --port <PORT> Server port to use [default: 9876]
-h, --help Print help
-V, --version Print version
Start the CLI to interact with a Rubin server on a given address / port
Usage: rubin cli [OPTIONS]
Options:
-a, --address <ADDRESS> Server address to use [default: 127.0.0.1]
-p, --port <PORT> Server port to use [default: 9876]
-h, --help Print help
-V, --version Print version
set [KEY] [VALUE]
: Adds a string value with a given key to the storeget [KEY]
: Gets a string value from the store with a given keyrm [KEY]
: Removes a string value from the store with the given keyclr
: Clears all values in the string store, removing the keys as wellincr
: Increment a value in the store by onedecr
: Decrement a value in the store by onedump
: Dump the store out to the server's disk. Folder needs to exist.exit
: Quit the CLI