Skip to content

Instantly share code, notes, and snippets.

@koudelka
Created July 2, 2014 19:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save koudelka/126cfad6acfac0c793c2 to your computer and use it in GitHub Desktop.
Save koudelka/126cfad6acfac0c793c2 to your computer and use it in GitHub Desktop.
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