X-Git-Url: https://git.danieliu.xyz/?p=taskasaur.git;a=blobdiff_plain;f=taskasaur.c;h=8925d0423154294397e8b34cc6d74feef3433d08;hp=50b72d4ab43c7769f834c1895463dd456fede760;hb=b9f6674ee02c6eb557f2b4a1032774729aa67af0;hpb=fad59c5fb6ea2c0f71928bf1479aaf6678615814 diff --git a/taskasaur.c b/taskasaur.c index 50b72d4..8925d04 100644 --- a/taskasaur.c +++ b/taskasaur.c @@ -1,39 +1,21 @@ + #include "headers/parser.h" +#include "headers/render.h" int main(int argc, char** argv) { - Board* board; - - board = begin_parse("test_board.md"); - - for (int i = 0; i < board->todolist_count; i++) { - TodoList* todolist; - printf("List =-=-=-=-=-==-=-=-=-=-=-\n"); - todolist = board->todolist_list[i]; - printf("List name: %s\n", todolist->list_name); - printf("Num of items: %d\n", todolist->item_count); + /* Board* board; */ + /* board = begin_parse("test_board.md"); */ + /* log_todo(board); */ - for (int j = 0; j < todolist->item_count; j++) { - TodoItem* todoitem; - printf("Item =-=-=-=-=-\n"); - todoitem = todolist->item_list[j]; - printf("Item name: %s\n", todoitem->item_name); - printf("Description: %s\n", todoitem->description); - printf("Num of subtasks: %d\n", todoitem->subtask_count); + /* init curses */ + init_tscurses(); - for (int k = 0; k < todoitem->subtask_count; k++) { - SubTask* subtask; - int done; + getch(); - subtask = todoitem->subtask_list[k]; - printf("Subtask: %s, %d\n", subtask->subtask_name, subtask->done); - } - } - - } - /* printf("%d\n", board->todolist_count); */ - /* printf("%s\n", board->todolist_list[1]->list_name); */ + exit_tscurses(); return 0; } +