-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add possibility to execute array of commands, add silent mode
- Loading branch information
Alexander Gaal
committed
Aug 10, 2022
1 parent
df29f85
commit d66f400
Showing
6 changed files
with
45 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
{ | ||
"update": "composer update" | ||
"about": [ | ||
"echo 'A PHP CLI application that helps you organize your aliases.'" | ||
], | ||
"update": [ | ||
"composer update" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
test('execute command test will show aliases without argument', function () { | ||
$output = $this->artisan('execute'); | ||
|
||
$output | ||
->expectsChoice('Please select alias to execute', 'about', ['about']) | ||
->assertExitCode(0); | ||
}); | ||
|
||
test('execute about will description', function () { | ||
$output = $this->artisan('execute about'); | ||
|
||
/** @var \Illuminate\Testing\PendingCommand $output */ | ||
$output | ||
->expectsOutputToContain('Executing: about.') | ||
->expectsOutputToContain('A PHP CLI application that helps you organize your aliases.') | ||
->assertExitCode(0); | ||
}); |