Mix v1.6.6 Mix.Shell.IO View Source

This is Mix’s default shell.

It simply prints messages to stdio and stderr.

Link to this section Summary

Functions

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

Prints the given ANSI error to the shell followed by a newline

Prints the given ANSI message to the shell followed by a newline

Prints the current application to the shell if it was not printed yet

Prints a message and prompts the user for input

Prints a message and asks the user if they want to proceed

Link to this section Functions

Link to this function cmd(command, opts \\ []) View Source

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

Prints the given ANSI error to the shell followed by a newline.

Prints the given ANSI message to the shell followed by a newline.

Prints a message and prompts the user for input.

Input will be consumed until Enter is pressed.

Prints a message and asks the user if they want to proceed.

The user must press Enter or type one of “y”, “yes”, “Y”, “YES” or “Yes”.