Introduce global state for options so we don't have to pass it around

This commit is contained in:
Uku Taht
2016-03-07 17:53:41 +02:00
parent c105f586bf
commit a59ce4f294
5 changed files with 34 additions and 27 deletions

View File

@@ -7,8 +7,8 @@ defmodule Mix.Tasks.Meditate do
Code.compiler_options(ignore_module_conflict: true)
Watcher.start
options = Options.parse(args)
Runner.run(options)
Options.parse(args)
Runner.run
:timer.sleep(:infinity)
end