basecamp / kamal

Deploy web apps anywhere.
https://kamal-deploy.org
MIT License
10.66k stars 410 forks source link

`kamal init` should offer the option to overwrite files and/or create new ones #737

Open luizkowalski opened 6 months ago

luizkowalski commented 6 months ago

Kamal 1.4.0 launched with a new hook (docker-setup). I thought that running kamal init would offer me the option to revise each file from the setup and overwrite or just create as Rails and many other projects do:

Overwrite /Users/luiz/Projects/app/file? (enter "h" for help) [Ynaqdhm]

It doesn't, and if you want to get these new files, you either create them manually or just rename hooks to, for example, hooks.old and then compare the changes in the files.

It would be nice if init also offered a diff on the files and created new hooks if they don't exist.

morgoth commented 6 months ago

relates to https://github.com/basecamp/kamal/pull/723