lib/mix/tasks/memorex.read_notes.ex

defmodule Mix.Tasks.Memorex.ReadNotes do
  @moduledoc """
  Reads the notes from the notes dirs

  ```bash
  $ mix memorex.read_notes
  ```
  """

  alias Memorex.Parser

  @shortdoc "Reads the notes from the notes dirs"
  use Mix.Task

  @impl Mix.Task
  def run(_args) do
    Mix.Task.run("app.start")
    Parser.read_note_dirs()
  end
end