Instantly share code, notes, and snippets.

Embed
What would you like to do?
a silent Mix.Shell.Process
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