wp-cli / dist-archive-command

Create a distribution .zip or .tar.gz based on a plugin or theme's .distignore file
https://developer.wordpress.org/cli/commands/dist-archive/
MIT License
48 stars 24 forks source link

Add --force option to overwrite #102

Closed GeoJunkie closed 2 months ago

GeoJunkie commented 2 months ago

Fixes #99

Adds a --force option that forces overwrite of an existing file. This prevents having to answer the prompt inside a script.

--force was chosen to match the wp plugin/theme install command options.

Added a test for the new option.

Part of https://github.com/wp-cli/wp-cli/issues/5985