cli/edit: allow to edit a task info

This commit is contained in:
Dmitriy Pleshevskiy 2022-08-18 12:15:38 +03:00
parent 273d224e04
commit 9674918396
Signed by: pleshevskiy
GPG Key ID: 1B59187B161C0215
1 changed files with 0 additions and 10 deletions

View File

@ -42,16 +42,6 @@ pub struct Args {
}
pub fn execute(repo: impl Repository, args: Args) {
match repo.get_current_task_opt() {
Ok(Some(_)) => {
return eprintln!("You can edit task only when you don't have an active task, yet")
}
Err(err) => {
return eprintln!("Cannot read current task: {}", err);
}
_ => {}
}
let res = repo.update_task(
args.idx,
repo::UpdateTaskData {