Converts a todo list id to an absolute path in the cwd
(os: &Os, id: &str)
| 122 | |
| 123 | /// Converts a todo list id to an absolute path in the cwd |
| 124 | pub fn id_to_path(os: &Os, id: &str) -> Result<PathBuf> { |
| 125 | Ok(os |
| 126 | .env |
| 127 | .current_dir()? |
| 128 | .join(get_todo_list_dir(os)?) |
| 129 | .join(format!("{id}.json"))) |
| 130 | } |
| 131 | |
| 132 | /// Gets all todo lists from the local directory |
| 133 | pub async fn get_all_todos(os: &Os) -> Result<(Vec<TodoListState>, Vec<Report>)> { |
no test coverage detected