cli/edit: allow to edit a task info
This commit is contained in:
parent
273d224e04
commit
9674918396
1 changed files with 0 additions and 10 deletions
|
@ -42,16 +42,6 @@ pub struct Args {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn execute(repo: impl Repository, args: 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(
|
let res = repo.update_task(
|
||||||
args.idx,
|
args.idx,
|
||||||
repo::UpdateTaskData {
|
repo::UpdateTaskData {
|
||||||
|
|
Loading…
Reference in a new issue