You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Changes command from hosting:site to hosting:sites.
Improves formatting for site api to align with channels.
Adds the app-id option when creating a site
Adds the prompt/force interaction for deleting sites
Adds the ability to prompt for site name when creating new site.
Co-authored-by: Bryan Kendall <bkend@google.com>
`Deleting a site is a permanent action. If you delete a site, Firebase doesn't maintain records of deployed files or deployment history, and the site ${underline(
30
+
siteId
31
+
)} cannot be reactivated by you or anyone else.`
32
+
);
33
+
logger.info();
34
+
35
+
letconfirmed=Boolean(options.force);
36
+
if(!confirmed){
37
+
confirmed=awaitpromptOnce({
38
+
message: `Are you sure you want to delete the Hosting site ${underline(
39
+
siteId
40
+
)} for project ${underline(projectId)}? `,
41
+
type: "confirm",
42
+
default: false,
43
+
});
44
+
}
45
+
if(!confirmed){
46
+
return;
47
+
}
48
+
49
+
// Check that the site exists first, to avoid giving a sucessesful message on a non-existant site.
50
+
awaitgetSite(projectId,siteId);
51
+
awaitdeleteSite(projectId,siteId);
52
+
logLabeledSuccess(
53
+
LOG_TAG,
54
+
`Successfully deleted site ${bold(siteId)} from project ${bold(projectId)}`
0 commit comments