Crates.io | kvu |
lib.rs | kvu |
version | 0.1.3 |
source | src |
created_at | 2022-07-04 19:13:49.297273 |
updated_at | 2022-07-08 10:14:59.998865 |
description | The simplest command line tool to manage key-value pair lines. |
homepage | https://github.com/jihchi/kvu |
repository | https://github.com/jihchi/kvu |
max_upload_size | |
id | 619124 |
size | 28,546 |
The simplest command line tool to manage key-value pair lines.
┌──────────────────────────┐ ┌──────────────────────────┐
│ DB_URI=postgres://db/kvu │ ┌─────────────────────┐ │ DB_URI=postgres://db/kvu │
│ DB_USERNAME=username │──stdin─▶│ kvu DB_USERNAME=kvu │─stdout─▶│ DB_USERNAME=kvu │
│ DB_PASSWORD=password │ └─────────────────────┘ │ DB_PASSWORD=password │
└──────────────────────────┘ └──────────────────────────┘
The release page includes precompiled binaries for Linux, macOS and Windows.
With Rust's package manager cargo, you can install kvu via:
cargo install kvu
Note that rust version 1.62.0 or later is required.
Arguments without any flag works as upsert operation - create new pair if the key does not exist, or update the value of the key if the key does exist.
$ echo -e "BUCKET=public\nREGION=ap-southeast-1" | kvu TOKEN=348a1912 REGION=eu-north-1
BUCKET=public
REGION=eu-north-1
TOKEN=348a1912
-c/--create
Create new pairDoes nothing when the key exists.
$ echo -e "BUCKET=public\nREGION=ap-southeast-1" | kvu --create REGION=eu-north-1
BUCKET=public
REGION=ap-southeast-1
-u/--update
Update existing pairDoes nothing when the key does not exist.
$ echo -e "BUCKET=public\nREGION=ap-southeast-1" | kvu --update TOKEN=348a1912
BUCKET=public
REGION=ap-southeast-1
-d/--delete
Delete existing pairDoes nothing when the key does not exist.
$ echo -e "BUCKET=public\nREGION=ap-southeast-1" | kvu --delete REGION
BUCKET=public