Created
July 2, 2014 19:35
-
-
Save koudelka/126cfad6acfac0c793c2 to your computer and use it in GitHub Desktop.
a silent Mix.Shell.Process
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule Mix.Shell.Process.Quiet do | |
@moduledoc """ | |
This is a Mix shell, identical to Mix.Shell.Process, except that console output is silenced. | |
""" | |
@behaviour Mix.Shell | |
defdelegate [flush(callback), cmd(command), prompt(message), yes?(message)], to: Mix.Shell.Process | |
def print_app, do: nil | |
def info(_), do: :ok | |
def error(_), do: :ok | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment