Skip to content

starovoid/kvrs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

Console binary key-value storage with output highlighting, searchability with regular expressions and aliasing of bash commands.

Usage

Basic operations

Set a key-value pair:

kvrs set "key" "value" --file="storage.kv"

Get the value by key

kvrs get "key" --file="storage.kv"

Update the value by key

kvrs update "key" "new value" --file="storage.kv"

Delete a key-value pair

kvrs remove "key" --file="storage.kv"

Find a key-value pair by regexp

kvrs find "regexp" --file="storage.kv"

This command tries to treat the keys as text and match them to the sample, returning all matches.

Sort

kvrs sort --file="storage.kv"

Returns a list of keys in lexicographic order.

Run the value as a bash command

kvrs set "list" "ls -la"
kvrs cmd "list" --file="storage.kv"

Common parameters

  • --file - the database file that the command will work with. By default, this parameter will be equal to the path to the file "storage.kv" in the home directory.

Roadmap

  • get, set, update, remove
  • cmd
  • sort
  • find

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages