[WIP] KVS
Key Value Services is a cli tools that help to you create your Key-Value store services.
Motivation
I want to create a content sharing tool that is managed by only one person and readable by many people in a secure network environment, so that I can use some common content in the terminal.
Usage
- Start kvs in your server
> kvs
- Concent the kvs services from client
# connect the service as admin
> kvs
# connect the service as user
> kvs
- Create a key value (admin)
> kvs create foo --value="hello world"
- Create a key and let file content as value (admin)
> kvs create biz --file ./content.txt
- List all key in your services (admin & user)
> kvs ls
biz
foo
- Remove a key (admin)
> kvs rm biz
- Read a key (admin & user)
> kvs cat foo
hello world
Example
Your team have a big list of resource id.
# important_resource_id.txt
Some times, the team member need create the url by the big list.
# important_resource_urls.txt
Let's assume we have written a command line tool named transform to handle this case.
cat important_resource_urls.txt | transform
The question is, how do I share important_resource_urls.txt with other team members.
Granted, there are many ways to share it. But you can fast finish it if you use the kvs.
# create the key
# and then, other team member can use it.
|