Git Product home page Git Product logo

kv's Introduction

NAME

kv - a simple flat file key value store.

SYNOPSIS

kv [OPTION]... [FILE]...

DESCRIPTION

kv provides an interface for storing, retrieving and deleting key-value pairs stored in json encoded flat files. Its usage is aimed towards shell scripts and command line driven environments.

OPTIONS

-d, --delete

delete a key in the database

-f, --format

specify a format string; %k and %v are placeholders for key and value respectively

-h, --help

displays a short-help text and exits

-l, --list

list couples of key and values

-k, --key

display value of this key or update the key if --value is specified

-v, --value

update or set a key in the database

-V, --version

displays the program version, copyright and license information and exists.

EXAMPLE

Record a new key-value pair.

$ kv -k kv_location -v /home/user/.local/bin/ /home/user/.cache/kv.db

Get the value of a record

$ kv -k kv_location /home/user/.cache/kv.db

List all records and print them with a custom format

$ kv -l -f "%k -- %v" /home/user/.cache/kv.db

COPYRIGHT

Copyright (C) 2017 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later (http://gnu.org/licenses/gpl.html). This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.

AUTHOR

Written by Francesco Mecca ([email protected]).

kv's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.