feat: add extra info

This commit is contained in:
Compositr 2024-12-25 23:05:44 +08:00
parent 5c30144507
commit 5a6df1a917
Signed by: compositr
GPG key ID: 91E3DE20129A0B4A
2 changed files with 4 additions and 1 deletions

View file

@ -4,7 +4,9 @@ use clap::{Parser, Subcommand};
use diaryrs::macros::UnwrapOrFatalAble;
use serde::Deserialize;
/// Overengineered and overly opinionated Rust-based diary keeper and processor
#[derive(Parser)]
#[command(version, about)]
pub struct Args {
#[command(subcommand)]
pub cmd: Commands,

View file

@ -19,7 +19,8 @@ fn main() {
"[TIME] Timestamp: {}, Timezone: {}",
time.timestamp, time.timezone
);
println!("[CONFIG] {:?}", config);
println!("[CONFIG] Found at path: {}", config.config_path.display());
println!("[CONFIG] Configuration: {:?}", config)
}
args::Commands::Today => {
let time = Time::build().unwrap_or_fatal("Failed to determine time information");