Mix v1.2.6 Mix.Shell.Quiet

This is Mix’s default shell when the MIX_QUIET environment variable is set.

It’s just like `Mix.Shell.IO’ but print far less.

Summary

Functions

Executes the given command quietly without outputting anything

Writes an error message to the shell followed by new line

Writes nothing to the shell

Prints the currently running application if it was not printed yet

Writes a message shell followed by prompting the user for input. Input will be consumed until enter is pressed

Receives a message and asks the user if they want to proceed. The user must press enter or type anything that matches the “yes” regex ~r/^Y(es)?$/i

Functions

cmd(command, opts \\ [])

Executes the given command quietly without outputting anything.

error(message)

Writes an error message to the shell followed by new line.

info(message)

Writes nothing to the shell.

prompt(message)

Writes a message shell followed by prompting the user for input. Input will be consumed until enter is pressed.

yes?(message)

Receives a message and asks the user if they want to proceed. The user must press enter or type anything that matches the “yes” regex ~r/^Y(es)?$/i.