Mix.Shell.IO

This is Mix's default shell. It simply prints messages to stdio and stderr.

Source

Summary

cmd(command)

Executes the given command and prints its output to stdout as it comes

error(message)

Writes an error message to the shell followed by new line

info(message)

Writes a message to the shell followed by new line

yes?(message)

Receives a message and asks the user if he wants to proceed. He must press enter or type anything that matches the a "yes" regex ~r/^Y(es)?$/i

Functions

cmd(command)

Executes the given command and prints its output to stdout as it comes.

Source
error(message)

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

Source
info(message)

Writes a message to the shell followed by new line.

Source
yes?(message)

Receives a message and asks the user if he wants to proceed. He must press enter or type anything that matches the a "yes" regex ~r/^Y(es)?$/i.

Source