Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

operantions:make command to return real path of the newly create file #14

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ekateiva
Copy link

@ekateiva ekateiva commented May 5, 2023

Right now the output of newly created operations file is:

php artisan operations:make Testing
>    INFO  One-time operation [2023_05_05_103905_testing] created successfully.

There is one drawback of this format, you can't cmd+click on the operation name in terminal so that the filename would be opened in IDE.

Laravel has already changed that for migrations, and they return the full path to the filename, so it is possible to cmd+click on it to be opened. An example:

php artisan make:migration testing
>   INFO  Migration [database/migrations/2023_05_05_104143_testing.php] created successfully.

So in this PR I try to replicate the same format, so we can open the newly created operations file. Each saved second counts 😄

The new output would be:

php artisan operations:make Testing
>   INFO  One-time operation [operations/2023_05_05_104056_testing.php] created successfully.

image

@ekateiva
Copy link
Author

@TimoKoerber question, is there a plan to keep this package support more active? It's almost a year since the suggestion, so just wondering if any plans to merge. It's a useful package and I would like to see it moving forward ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant