Packages

Mix tasks for creating and running interactive workshops for teaching people how to program in Elixir, and other things.

Current section

Files

Jump to
workshop lib tasks scratch.ex
Raw

lib/tasks/scratch.ex

defmodule Mix.Tasks.Workshop.Scratch do
use Mix.Task
@spec run(OptionParser.argv) :: :ok
def run(argv) do
Workshop.start([], [])
{_opts, _, _} = OptionParser.parse(argv, switches: [system: :boolean])
version = "0.3.7" # Workshop.Info.get(Workshop.Meta, :generator_version)
requirement = Workshop.Mixfile.project[:version]
IO.inspect {"version: #{version}, req: ~> #{requirement}", Version.match?(version, "~> #{requirement}")}
end
end