generated from Astrial.org/template
Compare commits
No commits in common. "624e3457e11949980bc9f4fdd5c8887a26d40859" and "5c30144507915e4e2a6cf043d0faec33c489465f" have entirely different histories.
624e3457e1
...
5c30144507
2 changed files with 1 additions and 5 deletions
|
@ -4,9 +4,7 @@ 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,
|
||||
|
|
|
@ -15,13 +15,11 @@ fn main() {
|
|||
args::Commands::Info => {
|
||||
let time = Time::build().unwrap_or_fatal("Failed to determine time information");
|
||||
let config = Config::read().unwrap_or_fatal("Failed to read config file");
|
||||
println!("diaryrs");
|
||||
println!(
|
||||
"[TIME] Timestamp: {}, Timezone: {}",
|
||||
time.timestamp, time.timezone
|
||||
);
|
||||
println!("[CONFIG] Found at path: {}", config.config_path.display());
|
||||
println!("[CONFIG] Configuration: {:?}", config)
|
||||
println!("[CONFIG] {:?}", config);
|
||||
}
|
||||
args::Commands::Today => {
|
||||
let time = Time::build().unwrap_or_fatal("Failed to determine time information");
|
||||
|
|
Loading…
Reference in a new issue