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

Add a --force option to the publish command #669

Conversation

spasstiger23
Copy link
Contributor

This provides a simple way to ensure the published files are the latest available.

This provides a simple way to ensure the published files are the latest available.

/**
* The console command description.
*
* @var string
*/
protected $description = 'Publish the Laravel Sail Docker files';
protected $description = 'Publish the Laravel Sail Docker files. If you want overwrite the existing files, you can add the `--force` option';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need for the extra explanation here.

Suggested change
protected $description = 'Publish the Laravel Sail Docker files. If you want overwrite the existing files, you can add the `--force` option';
protected $description = 'Publish the Laravel Sail Docker files.';

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @driesvints,

thanks for your suggestions.
Just for learning: is this really extra explanation? For me it was useful, because it's shown when php artisan is called.

echo " ${GREEN}sail artisan sail:publish${NC} Publish the Sail configuration files"
echo " ${GREEN}sail build --no-cache${NC} Rebuild all of the Sail containers"
echo " ${GREEN}sail artisan sail:publish${NC} Publish the Sail configuration files"
echo " ${GREEN}sail artisan sail:publish --force${NC} Force publishing the Sail configuration (override existing files)"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
echo " ${GREEN}sail artisan sail:publish --force${NC} Force publishing the Sail configuration (override existing files)"
echo " ${GREEN}sail artisan sail:publish --force${NC} Force publish the Sail configuration (overrides existing files)"

@taylorotwell
Copy link
Member

Thanks for your pull request to Laravel!

Unfortunately, I'm going to delay merging this code for now. To preserve our ability to adequately maintain the framework, we need to be very careful regarding the amount of code we include.

If possible, please consider releasing your code as a package so that the community can still take advantage of your contributions!

If you feel absolutely certain that this code corrects a bug in the framework, please "@" mention me in a follow-up comment with further explanation so that GitHub will send me a notification of your response.

@spasstiger23 spasstiger23 deleted the add-force-option-to-publish-command branch February 19, 2024 14:05
@spasstiger23 spasstiger23 restored the add-force-option-to-publish-command branch February 23, 2024 04:30
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.

None yet

3 participants