UNPKG

@shopify/cli

Version:

A CLI tool to build for the Shopify platform

10 lines (7 loc) 796 B
import{b as t}from"./chunk-XOTA6JTZ.js";import{J as o}from"./chunk-6G6TMKXF.js";import{r as p}from"./chunk-LDGAHMS7.js";import{e as h,g as e}from"./chunk-VPRTJUIN.js";e();e();async function i(r){let a=new URLSearchParams;a.append("search",r??""),await o(`https://shopify.dev?${a.toString()}`)}var c=h(p(),1),s=class r extends t{static{this.description="Starts a search on shopify.dev."}static{this.usage="search [query]"}static{this.examples=[`# open the search modal on Shopify.dev shopify search # search for a term on Shopify.dev shopify search <query> # search for a phrase on Shopify.dev shopify search "<a search query separated by spaces>" `]}static{this.args={query:c.Args.string()}}async run(){let{args:a}=await this.parse(r);await i(a.query)}};export{s as a};