2022-08-05 16:48:22 +03:00
|
|
|
use crate::CurrentTaskInfo;
|
|
|
|
|
|
|
|
pub fn execute(current_task_info: Option<CurrentTaskInfo>) {
|
|
|
|
match current_task_info {
|
|
|
|
None => {
|
2022-08-05 22:13:25 +03:00
|
|
|
eprintln!("You don't have an active task.");
|
2022-08-05 16:48:22 +03:00
|
|
|
}
|
|
|
|
Some(info) => {
|
|
|
|
println!("Information about your current task:");
|
|
|
|
println!(" {}", info.task.name);
|
|
|
|
if let Some(link) = info.task.link {
|
|
|
|
println!(" link: {}", link);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|