diff --git a/app/Commands/ExecuteCommand.php b/app/Commands/ExecuteCommand.php index 932bdc4..3abeeb4 100644 --- a/app/Commands/ExecuteCommand.php +++ b/app/Commands/ExecuteCommand.php @@ -8,7 +8,7 @@ class ExecuteCommand extends Command { - protected $signature = 'execute {alias?}'; + protected $signature = 'execute {alias?} {parameters?*}'; protected $description = 'Executes an alias.'; @@ -18,6 +18,7 @@ public function handle() { $alias = $this->argument('alias'); $quiet = $this->option('quiet') ?? false; + $parameters = $this->argument('parameters'); try { $this->getProjectAliases(); @@ -37,6 +38,14 @@ public function handle() } foreach ($this->aliases[$alias] as $task) { + if ($parameters) { + $task = sprintf( + '%s %s', + $task, + implode(' ', $parameters) + ); + } + if ($quiet) { @shell_exec($task); } else {