public void Close() { Console.WriteLine("Close current sprint"); diary = Diary.Load(filename); diary.CloseSprint(); diary.Save(filename); }
public void Modify() { Console.WriteLine("Modify diary"); diary = Diary.Load(filename); diary.duration = cli.duration; diary.Save(filename); }
public void Todo() { Console.WriteLine("Add a task to current sprint"); diary = Diary.Load(filename); Todo todo = new Todo(); todo.effort_estimate = cli.estimate; todo.project = cli.project; todo.description = cli.Operand(); diary.active.Add(todo); diary.Save(filename); }
public void Blocked() { Console.WriteLine("Mark a task blocked"); diary = Diary.Load(filename); if ((cli.task == null) || (cli.task.Length < 1)) { Console.WriteLine("Need a task id to mark blocked"); return; } Console.WriteLine($"Marking task {cli.task} blocked"); diary.active.Blocked(cli.task, cli.Operand()); diary.Save(filename); }
public void Done() { Console.WriteLine("Mark a task Done"); diary = Diary.Load(filename); if ((cli.task == null) || (cli.task.Length < 1)) { Console.WriteLine("Need a task id to mark done"); return; } Console.WriteLine($"Marking task {cli.task} done"); diary.active.Done(cli.task); diary.Save(filename); }
public void Report() { Console.WriteLine("Report generation"); diary = Diary.Load(filename); diary.Report(cli.all); }