pub fn get_task( tasks: &HashMap<String, Task>, id_or_prefix: &str, ) -> Result<Task>
Get a single task by ID or prefix.