Skip to content

Commit bd0a2e8

Browse files
committed
Bring back Mix.Shell.cmd/2
It was not brought back when Mix.Shell.cmd/3 was "undeprecated" in b2e5b69. Signed-off-by: Michał Muskała <[email protected]>
1 parent df50dca commit bd0a2e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/mix/lib/mix/shell.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ defmodule Mix.Shell do
8181
* `:quiet` - overrides the callback to no-op
8282
8383
"""
84-
def cmd(command, options, callback) when is_function(callback, 1) do
84+
def cmd(command, options \\ [], callback) when is_function(callback, 1) do
8585
callback =
8686
if Keyword.get(options, :quiet, false) do
8787
fn x -> x end

0 commit comments

Comments
 (0)