@shopify/cli
Version:
A CLI tool to build for the Shopify platform
7 lines (4 loc) • 3 kB
JavaScript
import{a as c}from"../../../chunk-GVQIPEZT.js";import{a as f}from"../../../chunk-DN2IE3VY.js";import"../../../chunk-JAO53IH2.js";import{k as l,q as p}from"../../../chunk-XITQULK4.js";import{f as h,o as d}from"../../../chunk-CBXSPL4W.js";import"../../../chunk-UJVH7FZS.js";import"../../../chunk-EKXY5COY.js";import"../../../chunk-4DCQNGUV.js";import"../../../chunk-XONFGLJQ.js";import"../../../chunk-4LNCYIS3.js";import"../../../chunk-L2MGAEV3.js";import"../../../chunk-PRKBO42R.js";import"../../../chunk-ZSBA6VIC.js";import"../../../chunk-F2QU6WWX.js";import"../../../chunk-XULPJ6UG.js";import{b as s}from"../../../chunk-XR6GMMEU.js";import"../../../chunk-3TNEIDOD.js";import"../../../chunk-MHWV5RQV.js";import"../../../chunk-XOTA6JTZ.js";import"../../../chunk-MOA33ZFO.js";import"../../../chunk-JUVAGMIH.js";import{v as a}from"../../../chunk-6G6TMKXF.js";import"../../../chunk-P6XE4MH5.js";import"../../../chunk-KLMDWDT2.js";import"../../../chunk-5CH3B62S.js";import"../../../chunk-QUTQDXSL.js";import"../../../chunk-WSDN25F5.js";import"../../../chunk-M56NDIMD.js";import"../../../chunk-PD5ZHJWI.js";import{r as g}from"../../../chunk-LDGAHMS7.js";import"../../../chunk-ZR76GGZ6.js";import"../../../chunk-EENHXSWU.js";import"../../../chunk-FUOIGXI4.js";import"../../../chunk-6M3ZYNGO.js";import"../../../chunk-QYR5VPQA.js";import"../../../chunk-OBEWZXOQ.js";import"../../../chunk-N5PQPIBF.js";import"../../../chunk-CERXUPGC.js";import"../../../chunk-T4M5CWAO.js";import"../../../chunk-PRVQAHWI.js";import"../../../chunk-YTNDFQJT.js";import"../../../chunk-ULQG3XQS.js";import"../../../chunk-IU2ZQ6TE.js";import"../../../chunk-PIBY5DDZ.js";import{e as u,g as o}from"../../../chunk-VPRTJUIN.js";o();o();async function v(e,m){let n=e.name??await h("New name for the theme"),i=await f(m,{header:"Select a theme to rename",filter:{theme:e.theme,development:e.development,live:e.live}});await d(i.id,{name:n},m),a({body:[...e.environment?[{subdued:`Environment: ${e.environment}
`}]:[],"The theme",...c(i),"was renamed to",`'${n}'`]})}var t=u(g(),1);var r=class extends p{static{this.summary="Renames an existing theme."}static{this.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.
`}static{this.description=this.descriptionWithoutMarkdown()}static{this.flags={...s,...l,name:t.Flags.string({char:"n",description:"The new name for the theme.",env:"SHOPIFY_FLAG_NEW_NAME",required:!1}),development:t.Flags.boolean({char:"d",description:"Rename your development theme.",env:"SHOPIFY_FLAG_DEVELOPMENT"}),theme:t.Flags.string({char:"t",description:"Theme ID or name of the remote theme.",env:"SHOPIFY_FLAG_THEME_ID"}),live:t.Flags.boolean({char:"l",description:"Rename your remote live theme.",env:"SHOPIFY_FLAG_LIVE"})}}static{this.multiEnvironmentsFlags=["store","password","name",["live","development","theme"]]}async command(m,n){await v(m,n)}};export{r as default};