Monolog is a simple command-line application for managing notes. It allows you to add notes, view today's notes, and retrieve the most recent notes.
- Add Notes: Add new notes quickly from the command line.
- Today's Notes: Display notes created today.
- Recent Notes: View a specific number of the most recent notes.
Ensure you have the following tools installed:
Run rustc --version and cargo --version to confirm installation.
Follow these steps to install and build monolog:
cargo install --git https://github.com/alexpetrean80/monolog.gitmonolog uses the following dependencies:
tokio: For async runtime.
sqlx: For database interactions.
chrono: To handle date and time.
clap: To parse command-line arguments.
These dependencies are specified in Cargo.toml. To fetch and install them, run:
cargo fetchCompile the project using Cargo:
cargo build --releaseThe binary will be available in the target/release directory.
The monolog application provides the following subcommands:
To add a new note:
monolog add <your_note>Example:
monolog add "This is my first note."To display all notes added today:
monolog todayExample output:
# 2024-06-17
## 14:32
> This is my first note.
## 15:45
> Follow up on project status.To display the n most recent notes:
monolog last <number_of_notes>Example:
monolog last 5