codestudiohq / laravel-totem

Manage Your Laravel Schedule From A Web Dashboard
MIT License
1.79k stars 224 forks source link

Can't Pass Single Command Parameter Without a name #307

Closed oliworx closed 2 years ago

oliworx commented 3 years ago

this one is similar to https://github.com/codestudiohq/laravel-totem/issues/48 but different.

I have a command that takes the ID of a model as a parameter:

$signature = 'team:matomo:setup {teamId}'

when I create a Task in Totem with just an integer as a parameter, and execute the task, the command complains that the parameter is missing.

running the same command in a terminal or in the unit tests everything is ok.

running Totem 6.0.3 / Laravel 6.20 / PHP 7.4

qschmick commented 3 years ago

@oliworx Just to be clear, the command works fine when it runs on a schedule but fails when you click the checkmark on the main screen or the manual execute button on the task view screen?

oliworx commented 3 years ago

I did not try to run the command on schedule. I just wantet to run the command once via the execute button.

affektde commented 2 years ago

Did you use the following syntax in the create task view?

eg.

teamId=1 as optional parameter

Because you've said "without a name", but the name would be teamId.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.