mix cram.tutorials (cram v0.1.0)

Copy Markdown View Source

Check the nine tutorial drafts.

mix cram.tutorials

The task requires front matter, a "What can go wrong" section, an ASCII layout under tutorials/assets/, and Elixir fences that parse and run.

Summary

Functions

Check every tutorials/0*.md draft.

Functions

run(args \\ [])

Check every tutorials/0*.md draft.

args is [] or [directory]. The default directory is tutorials. Returns :ok after printing the draft count. Each draft must have its front matter, a "What can go wrong" section, an ASCII layout, and Elixir fences that run. No drafts raises Mix.Error. Any other arguments raise Mix.Error.

iex> Mix.Tasks.Cram.Tutorials.run([])
:ok