A simple command-line tool for managing JSON
Notes built using Rust.
The project will use the serde
and serde_json
crates for serialization and deserialization, allowing users to store notes in a JSON
file.
- Clone the Repository:
git clone https://github.com/scottgriv/rust-json_note_manager
- Change to the Directory:
cd rust-json_note_manager
- Build the Project:
cargo build --release
- Run the Command:
cargo run -- <command> [arguments]
- Example:
cargo run -- add "This is a new note"
- Add a note:
cargo run -- add "Your note content"
- List notes:
cargo run -- list
- Delete a note by ID:
cargo run -- delete <note_id>
Note
Your notes will be stored in a file called notes.json
in the same directory as the executable.
rust-note-manager/ # Root directory
├── src/ # Source code
│ ├── main.rs # For running the program
│ ├── notes.rs # For managing notes
│ └── commands.rs # For parsing command-line arguments
├── sample/ # Sample data
│ └── notes_sample_output.json # Sample data
├── target/ # Generated
├── notes.json # Generated notes file
├── Cargo.toml # Dependencies
├── .gitignore # git ignore file
├── LICENSE # License file
└── README.md # This file
This project is released under the terms of The Unlicense, which allows you to use, modify, and distribute the code as you see fit.
- The Unlicense removes traditional copyright restrictions, giving you the freedom to use the code in any way you choose.
- For more details, see the LICENSE file in this repository.
Author: Scott Grivner
Email: scott.grivner@gmail.com
Website: scottgrivner.dev
Reference: Main Branch