https://github.com/saresend/shack
A CLI for storing simple stuff thats hard to remember
https://github.com/saresend/shack
cli keyvaluestore rust rust-crate
Last synced: 3 months ago
JSON representation
A CLI for storing simple stuff thats hard to remember
- Host: GitHub
- URL: https://github.com/saresend/shack
- Owner: saresend
- Created: 2018-04-16T21:22:47.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-04-27T04:13:30.000Z (about 7 years ago)
- Last Synced: 2025-03-22T06:41:50.493Z (3 months ago)
- Topics: cli, keyvaluestore, rust, rust-crate
- Language: Rust
- Homepage:
- Size: 321 KB
- Stars: 20
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Shack
[](https://travis-ci.org/saresend/shack)
Shack, a dead simple CLI key value store, for saving simple stuff thats hard to remember.
## Installation
The best way to install to install this is to use the Rust's package manager, cargo!
cargo install shack
## Usage
[](https://asciinema.org/a/cZHrSyoKerYPQeMeQFnNck1VO)
Shack will persist simple key values, and supports the Following commands:
* *get* - will attempt to retrieve the value for a given key
* *set* - will attempt to set the key value pair provided
* *ls* - lists all the currently saved key value pairs
* *del* - deletes the key value pair with the specified key## Examples
Suppose that you manage a couple servers, and each has their own IP address. When SSHing into them, instead of having to look up the IP address each time, you can use shack to save them like so:
shack set server1_ip 133.234.5.4
shack set server2_ip 132.133.54.1
Then, when you want to retrieve them, you can simply list them:
shack ls
or, you can get them by name
shack get server1_ip