notes-cli is a simple command-line tool for managing notes in Rust.
To install notes-cli, clone the repository and build the project:
git clone https://github.com/paranoid-git/notes-cli.git
cd notes-cli
cargo build --releaseTo use notes-cli, run the binary and follow the prompts:
./target/release/notes-cliHere are the available commands:
create: Create a new notelist: List all notesdelete: Delete a noteimport: Import notes from a JSON fileexport: Export notes to a JSON filehelp: Helpful messagesearch: Search for notes via tag
For example, to create a new note with the content "Hello, World!", run:
create important "Hello, World!"To list all notes, run:
listTo delete a note with the ID 2, run:
delete 2To import notes from a JSON file, run:
import notes.jsonTo export notes to a JSON file, run:
export notes.jsonTo search for notes with the tag "important", run:
search important