Skip to content

Commit

Permalink
add possibility to execute array of commands, add silent mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Gaal committed Aug 10, 2022
1 parent d66f400 commit c37a919
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions aliases.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"about": [
"echo 'A PHP CLI application that helps you organize your aliases.'"
],
"update": [
"composer update"
]
}
4 changes: 2 additions & 2 deletions app/Commands/ExecuteCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

class ExecuteCommand extends Command
{
protected $signature = 'execute {alias?} {-q|--quiet}';
protected $signature = 'execute {alias?}';

protected $description = 'Executes an alias.';

Expand Down Expand Up @@ -40,7 +40,7 @@ public function handle()
if ($quiet) {
@shell_exec($task);
} else {
shell_exec($task);
$this->components->info(shell_exec($task));
}
}

Expand Down
Binary file modified builds/alias
Binary file not shown.

0 comments on commit c37a919

Please sign in to comment.