tapioca icon indicating copy to clipboard operation
tapioca copied to clipboard

`bin/tapioca dsl --only` should not purge existing directory

Open KaanOzkan opened this issue 2 years ago • 2 comments

I believe --only is mostly used as a debugging tool to test specific compiler output. However, its output is hard to understand since tapioca purges the files that aren't generated and creates a large diff https://github.com/Shopify/tapioca/blob/5a9d90c9b6f65681609cd38a84595bd3639646b7/lib/tapioca/commands/abstract_dsl.rb#L88

We could skip the purging if --only is present. Am I missing any valid use cases where --only will be used permanently by a repo? In that case we could have a separate flag to skip purging.

KaanOzkan avatar Aug 17 '23 16:08 KaanOzkan

Hi, I'd like to work on this if it's available.

drewhoffer avatar Jun 24 '25 00:06 drewhoffer

Hi, I'd like to work on this if it's available.

Thank you. It's available. We should also output a log saying something like "Skipping purging because of --only flag" to inform the user.

KaanOzkan avatar Jun 25 '25 14:06 KaanOzkan