12 releases (7 breaking)
0.8.1 | Sep 7, 2023 |
---|---|
0.7.1 | Sep 1, 2023 |
0.5.0 | Jun 30, 2023 |
#1174 in Command line utilities
154 downloads per month
34KB
536 lines
Safir
Simple CLI key/value store.
Store key/value pairs in the terminal and retrieve them later for use like in different shell sessions.
Install
To install safir
, run cargo install safir
.
To build from source, clone the repository and run:
cargo build --release
Then move the binary to somewhere in your $PATH
Usage
When safir
is run, it creates a store file in your $HOME
directory ($HOME/.safirstore/safirstore.json
).
Run safir --help
for usage:
Key/Value store to share information between shell sessions
Usage: safir <COMMAND>
Commands:
add Add a value to the store with the given key
get Get a value from the store
rm Remove values from the store
alias Output the alias command for a key / value pair to be entered into a shell session
export Output the export command for a key / value pair to be entered into a shell session
clear Clear all keys/values from the store
purge Purges the .safirstore directory, removing it and its contents
headless Set the headless mode
help Print this message or the help of the given subcommand(s)
Options:
-h, --help Print help
-V, --version Print version
Dependencies
~10–22MB
~313K SLoC