pantheon-systems / terminus-site-clone-plugin

A Terminus plugin that adds the `site:clone` command to facilitate cloning sites on Pantheon
MIT License
21 stars 11 forks source link

Feature request: Add destination site if it doesn't already exist based on the source upstream #14

Open uberhacker opened 5 years ago

uberhacker commented 5 years ago

In order to use this plugin, I needed to create a new "empty" site first before I could clone. It would be nice to remove this requirement to avoid the extra manual step.

ataylorme commented 5 years ago

Thank you for the feature request @uberhacker. However, it is not something I plan on implementing in the short term. Creating a site is easy enough but terminus site:create has a variety of arguments, such as organization, that simply creating a site with the name given in the destination, if it doesn't exist, would not cover.

uberhacker commented 5 years ago

Hey @ataylorme: So what you are saying is there may be a scenario where someone wants to clone a site from one organization to another? I guess that makes sense. Maybe add in the help to manually run terminus site:create if the site doesn't already exist for those of us not bright enough to figure that out before running the terminus site:clone command? I'm talking about simpletons like myself. ;)

ataylorme commented 5 years ago

👍a helpful error message sounds good.

We could also probably prompt for a site to be created if the destination does not exist, whether the new site should be in an org, etc. That is a larger chunk of work than I have time for at the moment though