View Source Excalt.Helpers.TodoFormatter (Excalt v0.1.2)

Helpers to format a list of todos as returned and parsed by Excalt.Todo.

Link to this section Summary

Functions

Formats the list of todos into human-readable format. The input is a list of todos as returned from Excalt.Todo.parsed_list!/4. If exclude_completed is true, only the not yet completed todos are being shown.

Link to this section Functions

Link to this function

formatted_txt(todos, exclude_completed \\ false)

View Source
@spec formatted_txt(
  todos :: [Excalt.Todo.t()],
  exclude_completed :: Boolean.t()
) :: String.t()

Formats the list of todos into human-readable format. The input is a list of todos as returned from Excalt.Todo.parsed_list!/4. If exclude_completed is true, only the not yet completed todos are being shown.