diff --git a/src/domain.rs b/src/domain.rs
index 45ca64b..093a784 100644
--- a/src/domain.rs
+++ b/src/domain.rs
@@ -15,7 +15,7 @@
//!
use std::path::PathBuf;
-pub type TaskId = usize;
+pub type TaskIdx = usize;
pub struct Task {
pub name: String,
diff --git a/src/repo.rs b/src/repo.rs
index c75ec0b..50f66cc 100755
--- a/src/repo.rs
+++ b/src/repo.rs
@@ -28,6 +28,7 @@ pub enum Error {
NotFound,
InvalidData,
InsertData,
+ UpdateData,
RemoveData,
}
@@ -40,6 +41,7 @@ impl std::fmt::Display for Error {
Error::NotFound => f.write_str("Cannot find data"),
Error::InvalidData => f.write_str("Invalid data format"),
Error::InsertData => f.write_str("Cannot insert data"),
+ Error::UpdateData => f.write_str("Cannot update data"),
Error::RemoveData => f.write_str("Cannot remove data"),
}
}
@@ -65,21 +67,21 @@ pub struct UpdateTaskData {
pub trait Repository {
fn get_current_task_opt(&self) -> Result