| @@ 97-112 (lines=16) @@ | ||
| 94 | } |
|
| 95 | } |
|
| 96 | ||
| 97 | if (! function_exists('ask')) { |
|
| 98 | /** |
|
| 99 | * Prompt the user for input. |
|
| 100 | * |
|
| 101 | * @param string $question |
|
| 102 | * @param string $default |
|
| 103 | * |
|
| 104 | * @return string |
|
| 105 | */ |
|
| 106 | function ask($question, $default = null) |
|
| 107 | { |
|
| 108 | return app(ApplicationContract::class) |
|
| 109 | ->getRunningCommand() |
|
| 110 | ->ask($question, $default); |
|
| 111 | } |
|
| 112 | } |
|
| 113 | ||
| 114 | if (! function_exists('anticipate')) { |
|
| 115 | /** |
|
| @@ 187-203 (lines=17) @@ | ||
| 184 | } |
|
| 185 | } |
|
| 186 | ||
| 187 | if (! function_exists('table')) { |
|
| 188 | /** |
|
| 189 | * Format input to textual table. |
|
| 190 | * |
|
| 191 | * @param array $headers |
|
| 192 | * @param \Illuminate\Contracts\Support\Arrayable|array $rows |
|
| 193 | * @param string $style |
|
| 194 | * |
|
| 195 | * @return void |
|
| 196 | */ |
|
| 197 | function table($headers, $rows, $style = 'default') |
|
| 198 | { |
|
| 199 | app(ApplicationContract::class) |
|
| 200 | ->getRunningCommand() |
|
| 201 | ->table($headers, $rows, $style); |
|
| 202 | } |
|
| 203 | } |
|
| 204 | ||
| 205 | if (! function_exists('info')) { |
|
| 206 | /** |
|