Skip to content

tskoyo/cli-keyvalue-store

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

31 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ—ƒοΈ CLI Key-Value Store (Rust)

A lightweight command-line key-value store built in Rust for storing, retrieving, and managing simple person records.


Features

βœ… Add (set) a new person
βœ… Retrieve (get) a person by ID
βœ… List all persons (list)
βœ… Delete a person (delete)
βœ… Data persisted to a local db.json file

(Planned features)

  • update: modify an existing record
  • search: find by name or age
  • export / import: backup and restore data
  • stats: quick summary (count, average age, etc.)

Installation

Clone the repository and build it locally:

git clone https://github.com/<your-username>/cli-keyvalue-store.git
cd cli-keyvalue-store
cargo build

Usage

Run directly with Cargo:

cargo run -- <COMMAND> [ARGS]

Commands

βž• Add a new person

cargo run -- set <first_name> <last_name> <age>

Example:

cargo run -- set Alice Johnson 30

πŸ” Get a person by ID

cargo run -- get <id>

Example:

cargo run -- get 1

πŸ—‘οΈ Delete a person

cargo run -- delete <id>

πŸ“‹ List all persons

cargo run -- list

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages