MCPcopy Create free account
hub / github.com/InkSha/rust-tutorial / main

Function main

src/main.rs:14–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12}
13
14fn 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}

Callers

nothing calls this directly

Calls 4

read_todo_listFunction · 0.85
create_todoFunction · 0.85
list_todoFunction · 0.85
save_todo_listFunction · 0.85

Tested by

no test coverage detected