()
| 12 | } |
| 13 | |
| 14 | fn main() { |
| 15 | let args = Program::parse(); |
| 16 | let save_file = "todo.json"; |
| 17 | let mut todos = read_todo_list(save_file); |
| 18 | |
| 19 | match args.command { |
| 20 | TodoCommand::Create { title, content } => { |
| 21 | todo::create::create_todo(&mut todos, title, content) |
| 22 | } |
| 23 | TodoCommand::List { title, content } => todo::list::list_todo(&todos, title, content), |
| 24 | } |
| 25 | |
| 26 | save_todo_list(save_file, &todos); |
| 27 | } |
nothing calls this directly
no test coverage detected