import{a as f}from"./chunk-OASPW2P2.js";import{a as c}from"./chunk-YBFCDINU.js";import{f as l,o as p}from"./chunk-5T3OVTF5.js";import{p as s,v as d}from"./chunk-PTIJDS6I.js";import{b as h}from"./chunk-Q6LCSRIW.js";import{v as i}from"./chunk-E24W34C4.js";import{r as F}from"./chunk-T6CC5WUU.js";import{e as w,g as n}from"./chunk-VKWPEFWQ.js";n();n();async function v(t,r){let o=t.name??await l("New name for the theme"),a=await f(r,{header:"Select a theme to rename",filter:{theme:t.theme,development:t.development,live:t.live}});await p(a.id,{name:o},r),i({body:[...t.environment?[{subdued:`Environment: ${t.environment}

`}]:[],"The theme",...c(a),"was renamed to",`'${o}'`]})}var m=w(F(),1);var u,e=class extends d{async command(r,o){await v(r,o)}};u=e;e.summary="Renames an existing theme.";e.descriptionWithMarkdown=`Renames a theme in your store.

  If no theme is specified, then you're prompted to select the theme that you want to rename from the list of themes in your store.
  `;e.description=u.descriptionWithoutMarkdown();e.flags={...h,...s,name:m.Flags.string({char:"n",description:"The new name for the theme.",env:"SHOPIFY_FLAG_NEW_NAME",required:!1}),development:m.Flags.boolean({char:"d",description:"Rename your development theme.",env:"SHOPIFY_FLAG_DEVELOPMENT"}),theme:m.Flags.string({char:"t",description:"Theme ID or name of the remote theme.",env:"SHOPIFY_FLAG_THEME_ID"}),live:m.Flags.boolean({char:"l",description:"Rename your remote live theme.",env:"SHOPIFY_FLAG_LIVE"})};e.multiEnvironmentsFlags=["store","password","name",["live","development","theme"]];var A=e;export{A as a};
