Packages

A configurable mix task to watch file changes Watch file changes in a project and run the corresponding command when a change happens.

Current section

Files

Jump to
eye_drops lib mix tasks eye_drops.ex
Raw

lib/mix/tasks/eye_drops.ex

defmodule Mix.Tasks.EyeDrops do
use Mix.Task
alias EyeDrops.EyeBall
alias EyeDrops.Commands
def run(args) do
:ok = Application.start :fs, :permanent
IO.puts "Eye drops applied"
{:ok, switches} = Commands.parse(args)
{:ok, _} = EyeBall.open(switches)
Commands.watch
end
end