From 9c008e4d2cc36afdc184b74f001602b647cd5279 Mon Sep 17 00:00:00 2001 From: aaron-jack-manning Date: Sun, 21 Aug 2022 12:19:39 +1000 Subject: [PATCH] include id in task created response --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index ed95e9c..f50cdee 100644 --- a/src/main.rs +++ b/src/main.rs @@ -159,7 +159,7 @@ fn program() -> Result<(), error::Error> { match command { New { name, info, tags, dependencies, priority } => { let task = tasks::Task::new(name, info, tags, dependencies, priority, vault_folder, &mut state)?; - println!("Created task {}", colour::task_name(&task.data.name)); + println!("Created task {} (ID: {})", colour::task_name(&task.data.name), colour::id(&task.data.id.to_string())); }, Delete { id } => { tasks::Task::delete_by_id(id, vault_folder)?;