We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ece0530 commit 8c1b563Copy full SHA for 8c1b563
lib/mix/lib/mix/shell.ex
@@ -18,6 +18,8 @@ defmodule Mix.Shell do
18
19
@doc """
20
Executes the given command and returns its exit status.
21
+
22
+ Shortcut for `cmd/2` with empty options.
23
"""
24
@callback cmd(command :: String.t()) :: integer
25
@@ -46,6 +48,17 @@ defmodule Mix.Shell do
46
48
47
49
50
Prompts the user for confirmation.
51
52
+ Shortcut for `yes?/2` with empty options.
53
+ """
54
+ @callback yes?(message :: binary) :: boolean
55
56
+ @doc """
57
+ Prompts the user for confirmation.
58
59
+ ## Options
60
61
+ * `:default` - `:yes` or `:no` (the default is `:yes`)
62
63
@callback yes?(message :: binary, options :: keyword) :: boolean
64
0 commit comments