import{b as i}from"./chunk-Q6LCSRIW.js";import{b as o}from"./chunk-IDKUJQIG.js";import{J as t}from"./chunk-E24W34C4.js";import{r as p}from"./chunk-T6CC5WUU.js";import{e as h,g as a}from"./chunk-VKWPEFWQ.js";a();a();async function c(r){let e=new URLSearchParams;e.append("search",r??""),await t(`https://shopify.dev?${e.toString()}`)}var n=h(p(),1),s=class r extends o{static{this.description="Search shopify.dev for the most relevant content matching a query. Best for discovery \u2014 surfacing the relevant pieces of documentation for a topic, rather than retrieving a whole document. To download a full document verbatim, use `doc fetch`."}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:n.Args.string()}}static{this.flags={...i}}async run(){let{args:e}=await this.parse(r);await c(e.query)}};export{s as a};
