@cyclone-ui/cli 0.6.39 → 0.6.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{add-C4iltafx.mjs → add-DGq62TxL.mjs} +1 -1
- package/dist/{add-D6_p4SSG.mjs → add-GvlW2INI.mjs} +1 -1
- package/dist/{add-Dw-FW6nl.mjs → add-wTSftYOz.mjs} +1 -1
- package/dist/add.mjs +1 -1
- package/dist/{analyze-a11y-C8ZoThqu.mjs → analyze-a11y-BKQRGgpo.mjs} +1 -1
- package/dist/{analyze-a11y-DWwaPY2N.mjs → analyze-a11y-Byl_mO9a.mjs} +1 -1
- package/dist/{analyze-a11y-07yXR9M0.mjs → analyze-a11y-C-G-dz0v.mjs} +1 -1
- package/dist/analyze-a11y.mjs +1 -1
- package/dist/bin.mjs +7 -7
- package/dist/{build-C7MqRsbX.mjs → build-BXWEO8tz.mjs} +1 -1
- package/dist/{build-CeKYNRE1.mjs → build-CDCq_8oy.mjs} +1 -1
- package/dist/{build-B-1XUV4B.mjs → build-WZHEgA7H.mjs} +1 -1
- package/dist/{build-tokens-CozWaChp.mjs → build-tokens-B4gXlvJV.mjs} +1 -1
- package/dist/{build-tokens-DzhXSOCj.mjs → build-tokens-BLP6NfdX.mjs} +1 -1
- package/dist/{build-tokens-BXsRO03X.mjs → build-tokens-VDS6svHi.mjs} +1 -1
- package/dist/build-tokens.mjs +1 -1
- package/dist/build.mjs +1 -1
- package/dist/{changelog-DUjmUAso.mjs → changelog-BGQjEy6h.mjs} +1 -1
- package/dist/{changelog-wBlxGC_a.mjs → changelog-CjA8-pBb.mjs} +1 -1
- package/dist/{changelog-Crzb2iJM.mjs → changelog-Du1OfF1-.mjs} +1 -1
- package/dist/changelog.mjs +8 -1
- package/dist/{command-Bq-71IHm.mjs → command-BLyOFtcz.mjs} +1 -1
- package/dist/{command-Cs3cZI2q.mjs → command-BbbuSmKE.mjs} +1 -1
- package/dist/{command-D4drD28o.mjs → command-iFvVnBE-.mjs} +1 -1
- package/dist/completions-bash-config.mjs +1 -1
- package/dist/completions-bash-script.mjs +1 -1
- package/dist/completions-fish-config.mjs +1 -1
- package/dist/completions-fish-script.mjs +1 -1
- package/dist/completions-powershell-config.mjs +1 -1
- package/dist/completions-powershell-script.mjs +1 -1
- package/dist/completions-zsh-config.mjs +1 -1
- package/dist/completions-zsh-script.mjs +1 -1
- package/dist/{config-DGObgEDn.mjs → config-B4L3wfso.mjs} +1 -1
- package/dist/{config-D_JDicn6.mjs → config-BDrGDWv5.mjs} +1 -1
- package/dist/{config-BP0_LA6S.mjs → config-BMj0Pktv.mjs} +1 -1
- package/dist/{config-Dr2Z8PwS.mjs → config-BhHJr3NW.mjs} +1 -1
- package/dist/{config-Dk8AT56k.mjs → config-CDdRzFuQ.mjs} +1 -1
- package/dist/{config-BCoEuvT2.mjs → config-Cb_zcz1o.mjs} +1 -1
- package/dist/{config-BnW97ZyS.mjs → config-Cets0bNl.mjs} +1 -1
- package/dist/{config-vplFun6p.mjs → config-Ck4Ck80N.mjs} +1 -1
- package/dist/{config-Cy65QOmz.mjs → config-D2GxRIUo.mjs} +1 -1
- package/dist/{config-DJi6o0lA.mjs → config-DHRQhpvK.mjs} +1 -1
- package/dist/{config-BwW8AZhB.mjs → config-DRcD5DSA.mjs} +1 -1
- package/dist/{config-BEVjr1RE.mjs → config-dzD2p3dz.mjs} +1 -1
- package/dist/{console-BYHgoj3k.mjs → console-3jKhbXHX.mjs} +1 -1
- package/dist/{console-CGtRguGR.mjs → console-BYjL_BgX.mjs} +1 -1
- package/dist/{console-DvoZn39r.mjs → console-OYOslGRH.mjs} +1 -1
- package/dist/{design-system-rybKg4H2.mjs → design-system-BsX1c5U4.mjs} +1 -1
- package/dist/{design-system-CQvz0bo7.mjs → design-system-DlB028C2.mjs} +1 -1
- package/dist/{diff-By_JcQyC.mjs → diff-BG_5wz-w.mjs} +1 -1
- package/dist/{diff-DieL_npI.mjs → diff-CepKhmJN.mjs} +1 -1
- package/dist/{diff-BhVpIgtO.mjs → diff-DOEa4OTj.mjs} +1 -1
- package/dist/diff.mjs +1 -1
- package/dist/{docs-D-mMZwks.mjs → docs-D9t2pwGL.mjs} +1 -1
- package/dist/{docs-DqS6q6FK.mjs → docs-skd_9Jj0.mjs} +1 -1
- package/dist/{docs-CfQECltc.mjs → docs-tzTqDWox.mjs} +1 -1
- package/dist/docs.mjs +1 -1
- package/dist/{guidelines-BU-t9qbL.mjs → guidelines-BMNciEIT.mjs} +1 -1
- package/dist/{guidelines-CfvHT1Mp.mjs → guidelines-D_5y-kZd.mjs} +1 -1
- package/dist/{guidelines-BOF0x-Xa.mjs → guidelines-p3E82RB2.mjs} +1 -1
- package/dist/guidelines.mjs +1 -1
- package/dist/help.mjs +1 -1
- package/dist/{info-C69UleL6.mjs → info-Bbkcjzqb.mjs} +1 -1
- package/dist/{info-xAC1Vqoc.mjs → info-Db_6PUPA.mjs} +1 -1
- package/dist/{info-BvOg2m5C.mjs → info-DnsIFlBD.mjs} +1 -1
- package/dist/info.mjs +1 -1
- package/dist/{init-DfV30_ld.mjs → init-Bb7WdnFk.mjs} +1 -1
- package/dist/{init-c6kSuBUX.mjs → init-C2iW2v_4.mjs} +1 -1
- package/dist/{init-C01MDzTq.mjs → init-Cr6C5gqb.mjs} +1 -1
- package/dist/init.mjs +1 -1
- package/dist/{list-components-CXf2zrx7.mjs → list-components-COZ1gIUX.mjs} +1 -1
- package/dist/{list-components-DAuEdVLk.mjs → list-components-CqJEzj-i.mjs} +1 -1
- package/dist/{list-components-2b1zeN4a.mjs → list-components-CvyaV__t.mjs} +1 -1
- package/dist/list-components.mjs +1 -1
- package/dist/{list-fonts-CTMzcUDC.mjs → list-fonts-BbcFRJj1.mjs} +1 -1
- package/dist/{list-fonts-ChLykGdB.mjs → list-fonts-BbuENQzn.mjs} +1 -1
- package/dist/{list-fonts-CPTG8njs.mjs → list-fonts-C-TFmZnP.mjs} +1 -1
- package/dist/list-fonts.mjs +1 -1
- package/dist/{list-icons-DV53WU4z.mjs → list-icons-BB9CWEZf.mjs} +1 -1
- package/dist/{list-icons-DdGahs08.mjs → list-icons-BVxvDEYo.mjs} +1 -1
- package/dist/{list-icons-CEuTj1_Z.mjs → list-icons-D-bGDOsH.mjs} +1 -1
- package/dist/list-icons.mjs +1 -1
- package/dist/{list-tokens-Bp8duhue.mjs → list-tokens-BEuTHAtV.mjs} +1 -1
- package/dist/{list-tokens-ClE0L3Dw.mjs → list-tokens-DMmdiNJO.mjs} +1 -1
- package/dist/{list-tokens-DkCm5Cxm.mjs → list-tokens-OyUeAElH.mjs} +1 -1
- package/dist/list-tokens.mjs +1 -1
- package/dist/{mcp-C8HX2eR9.mjs → mcp-9eq6e2RA.mjs} +1 -1
- package/dist/{mcp-Cs9FrpA_.mjs → mcp-BHz-DTpr.mjs} +1 -1
- package/dist/{mcp-NB2Iv8CQ.mjs → mcp-Bo5zJpC9.mjs} +1 -1
- package/dist/mcp.mjs +1 -1
- package/dist/{plan-Cgbmg02y.mjs → plan-DiJP5lDh.mjs} +1 -1
- package/dist/{plan-DW0_wYg-.mjs → plan-DqDO_oVy.mjs} +1 -1
- package/dist/{plan-kIeIck5K.mjs → plan-FKuLXnyI.mjs} +1 -1
- package/dist/plan.mjs +1 -1
- package/dist/{prompts-C4aLBqRW.mjs → prompts-BELKZ3oG.mjs} +1 -1
- package/dist/{prompts-DjawnoXL.mjs → prompts-Ch1Mjbjb.mjs} +1 -1
- package/dist/{prompts-Zm66mFyw.mjs → prompts-Dkpjo3vl.mjs} +1 -1
- package/dist/{registry-B4vYJCyT.mjs → registry-63DQNX8J.mjs} +1 -1
- package/dist/{registry-BNP-qspc.mjs → registry-Dv1IPgiW.mjs} +1 -1
- package/dist/{registry-Ci6rQSiK.mjs → registry-DvuDh0YQ.mjs} +1 -1
- package/dist/registry-validate.mjs +1 -1
- package/dist/{script-BybIiI3z.mjs → script-BG55f7K_.mjs} +1 -1
- package/dist/{script-VARfqlP2.mjs → script-BMjRb9qT.mjs} +1 -1
- package/dist/{script-BYcaQE2C.mjs → script-CHF8SuV5.mjs} +1 -1
- package/dist/{script-DajlHxbI.mjs → script-CLjYKS1i.mjs} +1 -1
- package/dist/{script-h4uliBBS.mjs → script-CRxnw6-t.mjs} +1 -1
- package/dist/{script-BT0jTg93.mjs → script-CmZi4_1o.mjs} +1 -1
- package/dist/{script-b-U138iO.mjs → script-D0ZeErt8.mjs} +1 -1
- package/dist/{script-D9-8UMLs.mjs → script-DsuCLjes.mjs} +1 -1
- package/dist/{script-BdYGdL71.mjs → script-U44xyqbU.mjs} +1 -1
- package/dist/{script-Dm1PeFGZ.mjs → script-aNe4fk_L.mjs} +1 -1
- package/dist/{script-C2-juheg.mjs → script-suv5t4GG.mjs} +1 -1
- package/dist/{script-3a46ApGl.mjs → script-w4aNISiS.mjs} +1 -1
- package/dist/{search-DwCQjMb8.mjs → search-BRbcULHi.mjs} +1 -1
- package/dist/{search-HqMchmpD.mjs → search-Bu_OMfzD.mjs} +1 -1
- package/dist/{search-C2OaEKR0.mjs → search-DTwY20kT.mjs} +1 -1
- package/dist/{search-components-DcBTe6wK.mjs → search-components-85sETdfN.mjs} +1 -1
- package/dist/{search-components-E2N_a8Ar.mjs → search-components-CF6F88XM.mjs} +1 -1
- package/dist/{search-components-C7uY2QMn.mjs → search-components-f7gLN6Gh.mjs} +1 -1
- package/dist/search-components.mjs +1 -1
- package/dist/{search-fonts-BtzNSr3H.mjs → search-fonts-B89i6mH3.mjs} +1 -1
- package/dist/{search-fonts-wIMlOaeG.mjs → search-fonts-DZLOshY3.mjs} +1 -1
- package/dist/{search-fonts-BHFvHt4G.mjs → search-fonts-YR4ZDnCT.mjs} +1 -1
- package/dist/search-fonts.mjs +1 -1
- package/dist/{search-icons-CdJ2NA8x.mjs → search-icons-CRKM-p12.mjs} +1 -1
- package/dist/{search-icons-Co3DsHqG.mjs → search-icons-DluPh7-C.mjs} +1 -1
- package/dist/{search-icons-B1yzy8i9.mjs → search-icons-rlH2jqd2.mjs} +1 -1
- package/dist/search-icons.mjs +1 -1
- package/dist/{search-tokens-DNxkD4bU.mjs → search-tokens-C__J_9tw.mjs} +1 -1
- package/dist/{search-tokens-DjJ9NjE4.mjs → search-tokens-DrwXMPR5.mjs} +1 -1
- package/dist/{search-tokens-uvRGtYIF.mjs → search-tokens-GINAFzIO.mjs} +1 -1
- package/dist/search-tokens.mjs +1 -1
- package/dist/search.mjs +1 -1
- package/dist/{update-CdbByEdu.mjs → update-Bu7iCQjr.mjs} +1 -1
- package/dist/{update-m2Iy5OTc.mjs → update-C1lMXab1.mjs} +1 -1
- package/dist/{update-FuR-Qbi5.mjs → update-CQVSc2V7.mjs} +1 -1
- package/dist/{update-B1T4T3NU.mjs → update-Cw_XD70Z.mjs} +1 -1
- package/dist/{update-Bn2pt3qv.mjs → update-Df1xPM2K.mjs} +1 -1
- package/dist/{update-B0oZg1kR.mjs → update-ZVILPZhW.mjs} +1 -1
- package/dist/{update-components-BT91z5ZQ.mjs → update-components-D6_VP97a.mjs} +1 -1
- package/dist/{update-components-DT7B_Xn3.mjs → update-components-mBkAOYMr.mjs} +1 -1
- package/dist/{update-components-DVpjVdm-.mjs → update-components-tDv1rhsN.mjs} +1 -1
- package/dist/update-components.mjs +1 -1
- package/dist/update.mjs +1 -1
- package/dist/{validate-C6Tu_fLs.mjs → validate-C-_em_hF.mjs} +1 -1
- package/dist/{validate-CkI1u0-m.mjs → validate-MHbf4AYk.mjs} +1 -1
- package/dist/{validate-BSLIIJZc.mjs → validate-brbD72pT.mjs} +1 -1
- package/dist/{view-D5jE43NA.mjs → view-BhJrJfrr.mjs} +1 -1
- package/dist/{view-FehpE1c6.mjs → view-DWc8Kx03.mjs} +1 -1
- package/dist/{view-CJbV5dy5.mjs → view-Ejkl98Ay.mjs} +1 -1
- package/dist/view.mjs +1 -1
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as e,_ as t,k as n,t as r,w as i}from"./console-
|
|
1
|
+
import{C as e,_ as t,k as n,t as r,w as i}from"./console-BYjL_BgX.mjs";function a(){n(``),n(r(i.heading.secondary(`Usage:`))),n(i.body.secondary(`${i.usage.bin(`>_ cyclone-ui`)} ${i.usage.command(`search`)} ${i.usage.options(`[options]`)}`),{padding:0}),n(i.body.secondary(`${i.usage.bin(`>_ cyclone-ui`)} ${i.usage.command(`list`)} ${i.usage.options(`[options]`)}`),{padding:0}),n(``),n(r(i.heading.secondary(`Options:`))),e([[{value:i.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:i.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:i.body.primary(`--cwd <cwd>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`The working directory.`),align:`left`,border:`none`}],[{value:i.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:i.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:i.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:i.body.primary(`--json`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Output machine-readable JSON.`),align:`left`,border:`none`}],[{value:i.body.primary(`--limit <limit>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Maximum number of results.`),align:`left`,border:`none`}],[{value:i.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:i.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:i.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:i.body.primary(`--offset <offset>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Number of results to skip.`),align:`left`,border:`none`}],[{value:i.body.primary(`--query <query>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Text to match against names, descriptions, and tags.`),align:`left`,border:`none`}],[{value:i.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:i.body.primary(`--registry <registry>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Registry URL.`),align:`left`,border:`none`}],[{value:i.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:i.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:i.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: CYCLONE_UI_YES, default: false).`),align:`left`,border:`none`}]]),n(``),n(i.body.tertiary(`More information can be found in the Search Registry command documentation at ${t(`https://docs.cyclone-ui.com/reference/cli/search`)}${i.body.tertiary(`.`)}`),{padding:0}),n(``)}export{a as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as e,_ as t,k as n,t as r,w as i}from"./console-
|
|
1
|
+
import{C as e,_ as t,k as n,t as r,w as i}from"./console-OYOslGRH.mjs";function a(){n(``),n(r(i.heading.secondary(`Usage:`))),n(i.body.secondary(`${i.usage.bin(`>_ cyclone-ui`)} ${i.usage.command(`search`)} ${i.usage.options(`[options]`)}`),{padding:0}),n(i.body.secondary(`${i.usage.bin(`>_ cyclone-ui`)} ${i.usage.command(`list`)} ${i.usage.options(`[options]`)}`),{padding:0}),n(``),n(r(i.heading.secondary(`Options:`))),e([[{value:i.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:i.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:i.body.primary(`--cwd <cwd>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`The working directory.`),align:`left`,border:`none`}],[{value:i.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:i.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:i.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:i.body.primary(`--json`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Output machine-readable JSON.`),align:`left`,border:`none`}],[{value:i.body.primary(`--limit <limit>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Maximum number of results.`),align:`left`,border:`none`}],[{value:i.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:i.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:i.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:i.body.primary(`--offset <offset>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Number of results to skip.`),align:`left`,border:`none`}],[{value:i.body.primary(`--query <query>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Text to match against names, descriptions, and tags.`),align:`left`,border:`none`}],[{value:i.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:i.body.primary(`--registry <registry>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Registry URL.`),align:`left`,border:`none`}],[{value:i.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:i.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:i.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: CYCLONE_UI_YES, default: false).`),align:`left`,border:`none`}]]),n(``),n(i.body.tertiary(`More information can be found in the Search Registry command documentation at ${t(`https://docs.cyclone-ui.com/reference/cli/search`)}${i.body.tertiary(`.`)}`),{padding:0}),n(``)}export{a as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as e,_ as t,h as n,k as r,t as i,w as a}from"./console-
|
|
1
|
+
import{C as e,_ as t,h as n,k as r,t as i,w as a}from"./console-3jKhbXHX.mjs";function o(){r(`${i(a.heading.secondary(`Tags: `))} ${a.tags.designSystem?a.tags.designSystem(n(` Design System `)):a.tags.default(n(` Design System `))} ${a.tags.components?a.tags.components(n(` Components `)):a.tags.default(n(` Components `))}`,{padding:0}),r(``),r(i(a.heading.secondary(`Usage:`))),r(a.body.secondary(`${a.usage.bin(`>_ cyclone-ui`)} ${a.usage.command(`search-components`)} ${a.usage.options(`[options]`)}`),{padding:0}),r(``),r(i(a.heading.secondary(`Options:`))),e([[{value:a.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--limit <limit>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Maximum matches per term (default: 2).`),align:`left`,border:`none`}],[{value:a.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--terms <terms...>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`One or more search terms (fuzzy match).`),align:`left`,border:`none`}],[{value:a.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: CYCLONE_UI_YES, default: false).`),align:`left`,border:`none`}]]),r(``),r(a.body.tertiary(`More information can be found in the Search Components command documentation at ${t(`https://docs.cyclone-ui.com/reference/cli/search-components`)}${a.body.tertiary(`.`)}`),{padding:0}),r(``)}export{o as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as e,_ as t,h as n,k as r,t as i,w as a}from"./console-
|
|
1
|
+
import{C as e,_ as t,h as n,k as r,t as i,w as a}from"./console-BYjL_BgX.mjs";function o(){r(`${i(a.heading.secondary(`Tags: `))} ${a.tags.designSystem?a.tags.designSystem(n(` Design System `)):a.tags.default(n(` Design System `))} ${a.tags.components?a.tags.components(n(` Components `)):a.tags.default(n(` Components `))}`,{padding:0}),r(``),r(i(a.heading.secondary(`Usage:`))),r(a.body.secondary(`${a.usage.bin(`>_ cyclone-ui`)} ${a.usage.command(`search-components`)} ${a.usage.options(`[options]`)}`),{padding:0}),r(``),r(i(a.heading.secondary(`Options:`))),e([[{value:a.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--limit <limit>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Maximum matches per term (default: 2).`),align:`left`,border:`none`}],[{value:a.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--terms <terms...>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`One or more search terms (fuzzy match).`),align:`left`,border:`none`}],[{value:a.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: CYCLONE_UI_YES, default: false).`),align:`left`,border:`none`}]]),r(``),r(a.body.tertiary(`More information can be found in the Search Components command documentation at ${t(`https://docs.cyclone-ui.com/reference/cli/search-components`)}${a.body.tertiary(`.`)}`),{padding:0}),r(``)}export{o as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as e,_ as t,h as n,k as r,t as i,w as a}from"./console-
|
|
1
|
+
import{C as e,_ as t,h as n,k as r,t as i,w as a}from"./console-OYOslGRH.mjs";function o(){r(`${i(a.heading.secondary(`Tags: `))} ${a.tags.designSystem?a.tags.designSystem(n(` Design System `)):a.tags.default(n(` Design System `))} ${a.tags.components?a.tags.components(n(` Components `)):a.tags.default(n(` Components `))}`,{padding:0}),r(``),r(i(a.heading.secondary(`Usage:`))),r(a.body.secondary(`${a.usage.bin(`>_ cyclone-ui`)} ${a.usage.command(`search-components`)} ${a.usage.options(`[options]`)}`),{padding:0}),r(``),r(i(a.heading.secondary(`Options:`))),e([[{value:a.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--limit <limit>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Maximum matches per term (default: 2).`),align:`left`,border:`none`}],[{value:a.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--terms <terms...>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`One or more search terms (fuzzy match).`),align:`left`,border:`none`}],[{value:a.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: CYCLONE_UI_YES, default: false).`),align:`left`,border:`none`}]]),r(``),r(a.body.tertiary(`More information can be found in the Search Components command documentation at ${t(`https://docs.cyclone-ui.com/reference/cli/search-components`)}${a.body.tertiary(`.`)}`),{padding:0}),r(``)}export{o as t};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{a as e,r as t,t as n}from"./prompts-
|
|
1
|
+
import{a as e,r as t,t as n}from"./prompts-Ch1Mjbjb.mjs";import{F as r,G as i,H as a,J as o,L as s,M as c,N as l,R as u,U as d,V as f,g as p,j as m,k as h,l as g,n as _,q as v,t as y,w as b,x,y as S,z as C}from"./console-BYjL_BgX.mjs";import{t as w}from"./search-components-CF6F88XM.mjs";import{t as T}from"./update-C1lMXab1.mjs";import{t as E}from"./design-system-BsX1c5U4.mjs";import{isSearchError as D,searchComponents as O}from"@razorwind/shell-shock/runtime";async function k(t=500){if(a().get(`is-banner-displayed`)||s(`no-banner`)||s(`hide-banner`)||l)return;a().set(`is-banner-displayed`,!0),h(``),h(_.banner.outline.primary(`┏`)+_.banner.outline.primary(`━`.repeat(6))+` `+b.banner.header.primary(`⬤`)+` `+_.banner.outline.primary(`━`)+` `+y(b.banner.header.primary(`Cyclone CLI v0.6.39`))+` `+_.banner.outline.primary(`━`.repeat(Math.max(m().columns-33,0)))+_.banner.outline.primary(`┓`),{consoleFn:console.log});let n=Math.max(...e.map(e=>x(e).length))>Math.max(m().columns+30,20)?`Cyclone UI`:`\n${e.join(`
|
|
2
2
|
`)}\n`;S(n,Math.max(m().columns-30,20)).forEach(e=>{h(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(x(e).length+2))/2),0))+y(b.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((m().columns-(x(e).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log})}),h(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(x(`Search Components`).length+2))/2),0))+y(b.banner.command.primary(`Search Components`))+` `.repeat(Math.max(Math.ceil((m().columns-(x(`Search Components`).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log}),S(y(b.banner.description.primary(`Search design-system components by name, title, category, description and tags. Returns name, files, dependencies and usage examples for each match.`)),Math.max(60>m().columns/2?m().columns-6:m().columns-30,20)).forEach(e=>{h(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(x(e).length+2))/2),0))+b.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((m().columns-(x(e).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log})}),h(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(m().columns-2,0))+_.banner.outline.primary(`┃`),{consoleFn:console.log}),h(_.banner.outline.primary(`┗`)+_.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+` `+y(b.banner.footer.primary(`https://cyclone-ui.com`))+` `+_.banner.outline.primary(`━`.repeat(6))+_.banner.outline.primary(`┛`),{consoleFn:console.log}),h(``),c&&!u()&&await r(t)}function A(e){process.stdout.write(`${typeof e==`string`?e:JSON.stringify(e,null,2)}\n`)}async function j(e){let t=O(E,{terms:e.terms??[],limit:e.limit});A(t),D(t)&&(process.exitCode=1)}async function M(e=C()){let r={...f(),terms:[],limit:2};for(let t=0;t<e.slice(0).length;t++){let n=e[t].length>3&&e[t].startsWith(`--`)?`--${e[t].slice(2).replaceAll(`-`,``).toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)}`:e[t].length>2&&e[t].startsWith(`-`)?`-${e[t].slice(1).replaceAll(`-`,``)}`:e[t];if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`terms=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`terms`||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`terms=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`terms`)r.terms??=[],/^--?(terms)=/.test(`-`+n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?r.terms.push(...n.replace(/^--?(terms)=/,``).split(`,`).map(e=>e.trim().replace(/^("|')/,``).replace(/("|')$/,``)).filter(Boolean)):e.length>t+1&&r.terms.push(...e[++t].split(`,`).map(e=>e.trim().replace(/^("|')/,``).replace(/("|')$/,``)).filter(Boolean));else if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`limit=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`limit`||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`limit=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`limit`){if(/^--?(limit)=/.test(`-`+n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=Number(n.replace(/^--?(limit)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``));Number.isNaN(e)||(r.limit=e)}else if(e.length>t+1){let n=Number(e[++t].trim().replace(/^("|')/,``).replace(/("|')$/,``));Number.isNaN(n)||(r.limit=n)}}}if(s(`quiet`)||(await k(),await T()),!u()&&!s(`quiet`)&&(h(``),(o||v||i.LOG_LEVEL===`debug`)&&h(b.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`))),!c){let e=[];r.terms?r.terms.length===0&&e.push(`No values were provided to the required "terms" array option`):e.push(`Missing required "terms" option`),r.limit&&Number.isNaN(r.limit)&&e.push(`Invalid numeric value provided for the "limit" option`)}else if(!u()&&(!r.terms||r.terms.length===0)){if(h(``),!r.terms){let e=await t({message:`Please provide a value for the ${p(`terms`)} option`,description:`One or more search terms (fuzzy match). Example: ["button", "modal", "select"].`,validate(e){return!e||e.trim()===``?`A value must be provided for this option`:null}});if(n(e))return;r.terms=e}else if(r.terms.length===0){let e=await t({message:`Please provide one or more values for the ${p(`terms`)} option (values are separated by a \",\" character)`,description:`One or more search terms (fuzzy match). Example: ["button", "modal", "select"].`,validate(e){if(!e||e.trim()===``)return`A value must be provided for this option`;if(e.split(`,`).map(e=>e.trim()).filter(Boolean).length===0)return`At least one value must be provided for this option`}});if(n(e))return;r.terms=e.split(`,`).map(e=>e.trim()).filter(Boolean)}h(``);let e=[];r.terms?r.terms.length===0&&e.push(`No values were provided to the required "terms" array option`):e.push(`Missing required "terms" option`),r.limit&&Number.isNaN(r.limit)&&e.push(`Invalid numeric value provided for the "limit" option`),e.length>0&&(g(`The following validation failures were found while processing the user provided input, and must be corrected before the ${p(`Search Components`)} command can be executed: \n\n${e.map(e=>` - `+e).join(`
|
|
3
3
|
`)}`),r.help=!0)}return r.help?w():d(`search-components`,[`search-components`],[r],j)}export{M as handler};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as e,_ as t,h as n,k as r,t as i,w as a}from"./console-
|
|
1
|
+
import{C as e,_ as t,h as n,k as r,t as i,w as a}from"./console-3jKhbXHX.mjs";function o(){r(`${i(a.heading.secondary(`Tags: `))} ${a.tags.designSystem?a.tags.designSystem(n(` Design System `)):a.tags.default(n(` Design System `))} ${a.tags.fonts?a.tags.fonts(n(` Fonts `)):a.tags.default(n(` Fonts `))}`,{padding:0}),r(``),r(i(a.heading.secondary(`Usage:`))),r(a.body.secondary(`${a.usage.bin(`>_ cyclone-ui`)} ${a.usage.command(`search-fonts`)} ${a.usage.options(`[options]`)}`),{padding:0}),r(``),r(i(a.heading.secondary(`Options:`))),e([[{value:a.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--limit <limit>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Maximum matches per term (default: 2).`),align:`left`,border:`none`}],[{value:a.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--terms <terms...>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`One or more search terms (fuzzy match).`),align:`left`,border:`none`}],[{value:a.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: CYCLONE_UI_YES, default: false).`),align:`left`,border:`none`}]]),r(``),r(a.body.tertiary(`More information can be found in the Search Fonts command documentation at ${t(`https://docs.cyclone-ui.com/reference/cli/search-fonts`)}${a.body.tertiary(`.`)}`),{padding:0}),r(``)}export{o as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as e,_ as t,h as n,k as r,t as i,w as a}from"./console-
|
|
1
|
+
import{C as e,_ as t,h as n,k as r,t as i,w as a}from"./console-BYjL_BgX.mjs";function o(){r(`${i(a.heading.secondary(`Tags: `))} ${a.tags.designSystem?a.tags.designSystem(n(` Design System `)):a.tags.default(n(` Design System `))} ${a.tags.fonts?a.tags.fonts(n(` Fonts `)):a.tags.default(n(` Fonts `))}`,{padding:0}),r(``),r(i(a.heading.secondary(`Usage:`))),r(a.body.secondary(`${a.usage.bin(`>_ cyclone-ui`)} ${a.usage.command(`search-fonts`)} ${a.usage.options(`[options]`)}`),{padding:0}),r(``),r(i(a.heading.secondary(`Options:`))),e([[{value:a.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--limit <limit>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Maximum matches per term (default: 2).`),align:`left`,border:`none`}],[{value:a.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--terms <terms...>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`One or more search terms (fuzzy match).`),align:`left`,border:`none`}],[{value:a.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: CYCLONE_UI_YES, default: false).`),align:`left`,border:`none`}]]),r(``),r(a.body.tertiary(`More information can be found in the Search Fonts command documentation at ${t(`https://docs.cyclone-ui.com/reference/cli/search-fonts`)}${a.body.tertiary(`.`)}`),{padding:0}),r(``)}export{o as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as e,_ as t,h as n,k as r,t as i,w as a}from"./console-
|
|
1
|
+
import{C as e,_ as t,h as n,k as r,t as i,w as a}from"./console-OYOslGRH.mjs";function o(){r(`${i(a.heading.secondary(`Tags: `))} ${a.tags.designSystem?a.tags.designSystem(n(` Design System `)):a.tags.default(n(` Design System `))} ${a.tags.fonts?a.tags.fonts(n(` Fonts `)):a.tags.default(n(` Fonts `))}`,{padding:0}),r(``),r(i(a.heading.secondary(`Usage:`))),r(a.body.secondary(`${a.usage.bin(`>_ cyclone-ui`)} ${a.usage.command(`search-fonts`)} ${a.usage.options(`[options]`)}`),{padding:0}),r(``),r(i(a.heading.secondary(`Options:`))),e([[{value:a.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--limit <limit>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Maximum matches per term (default: 2).`),align:`left`,border:`none`}],[{value:a.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--terms <terms...>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`One or more search terms (fuzzy match).`),align:`left`,border:`none`}],[{value:a.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: CYCLONE_UI_YES, default: false).`),align:`left`,border:`none`}]]),r(``),r(a.body.tertiary(`More information can be found in the Search Fonts command documentation at ${t(`https://docs.cyclone-ui.com/reference/cli/search-fonts`)}${a.body.tertiary(`.`)}`),{padding:0}),r(``)}export{o as t};
|
package/dist/search-fonts.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{a as e,r as t,t as n}from"./prompts-
|
|
1
|
+
import{a as e,r as t,t as n}from"./prompts-Ch1Mjbjb.mjs";import{F as r,G as i,H as a,J as o,L as s,M as c,N as l,R as u,U as d,V as f,g as p,j as m,k as h,l as g,n as _,q as v,t as y,w as b,x,y as S,z as C}from"./console-BYjL_BgX.mjs";import{t as w}from"./search-fonts-DZLOshY3.mjs";import{t as T}from"./update-C1lMXab1.mjs";import{t as E}from"./design-system-BsX1c5U4.mjs";import{isSearchError as D,searchFonts as O}from"@razorwind/shell-shock/runtime";async function k(t=500){if(a().get(`is-banner-displayed`)||s(`no-banner`)||s(`hide-banner`)||l)return;a().set(`is-banner-displayed`,!0),h(``),h(_.banner.outline.primary(`┏`)+_.banner.outline.primary(`━`.repeat(6))+` `+b.banner.header.primary(`⬤`)+` `+_.banner.outline.primary(`━`)+` `+y(b.banner.header.primary(`Cyclone CLI v0.6.39`))+` `+_.banner.outline.primary(`━`.repeat(Math.max(m().columns-33,0)))+_.banner.outline.primary(`┓`),{consoleFn:console.log});let n=Math.max(...e.map(e=>x(e).length))>Math.max(m().columns+30,20)?`Cyclone UI`:`\n${e.join(`
|
|
2
2
|
`)}\n`;S(n,Math.max(m().columns-30,20)).forEach(e=>{h(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(x(e).length+2))/2),0))+y(b.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((m().columns-(x(e).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log})}),h(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(x(`Search Fonts`).length+2))/2),0))+y(b.banner.command.primary(`Search Fonts`))+` `.repeat(Math.max(Math.ceil((m().columns-(x(`Search Fonts`).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log}),S(y(b.banner.description.primary(`Search design-system fonts by name, family, role, tags and category. Returns the CSS font-family stack, weights and files for each match.`)),Math.max(60>m().columns/2?m().columns-6:m().columns-30,20)).forEach(e=>{h(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(x(e).length+2))/2),0))+b.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((m().columns-(x(e).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log})}),h(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(m().columns-2,0))+_.banner.outline.primary(`┃`),{consoleFn:console.log}),h(_.banner.outline.primary(`┗`)+_.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+` `+y(b.banner.footer.primary(`https://cyclone-ui.com`))+` `+_.banner.outline.primary(`━`.repeat(6))+_.banner.outline.primary(`┛`),{consoleFn:console.log}),h(``),c&&!u()&&await r(t)}function A(e){process.stdout.write(`${typeof e==`string`?e:JSON.stringify(e,null,2)}\n`)}async function j(e){let t=O(E,{terms:e.terms??[],limit:e.limit});A(t),D(t)&&(process.exitCode=1)}async function M(e=C()){let r={...f(),terms:[],limit:2};for(let t=0;t<e.slice(0).length;t++){let n=e[t].length>3&&e[t].startsWith(`--`)?`--${e[t].slice(2).replaceAll(`-`,``).toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)}`:e[t].length>2&&e[t].startsWith(`-`)?`-${e[t].slice(1).replaceAll(`-`,``)}`:e[t];if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`terms=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`terms`||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`terms=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`terms`)r.terms??=[],/^--?(terms)=/.test(`-`+n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?r.terms.push(...n.replace(/^--?(terms)=/,``).split(`,`).map(e=>e.trim().replace(/^("|')/,``).replace(/("|')$/,``)).filter(Boolean)):e.length>t+1&&r.terms.push(...e[++t].split(`,`).map(e=>e.trim().replace(/^("|')/,``).replace(/("|')$/,``)).filter(Boolean));else if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`limit=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`limit`||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`limit=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`limit`){if(/^--?(limit)=/.test(`-`+n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=Number(n.replace(/^--?(limit)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``));Number.isNaN(e)||(r.limit=e)}else if(e.length>t+1){let n=Number(e[++t].trim().replace(/^("|')/,``).replace(/("|')$/,``));Number.isNaN(n)||(r.limit=n)}}}if(s(`quiet`)||(await k(),await T()),!u()&&!s(`quiet`)&&(h(``),(o||v||i.LOG_LEVEL===`debug`)&&h(b.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`))),!c){let e=[];r.terms?r.terms.length===0&&e.push(`No values were provided to the required "terms" array option`):e.push(`Missing required "terms" option`),r.limit&&Number.isNaN(r.limit)&&e.push(`Invalid numeric value provided for the "limit" option`)}else if(!u()&&(!r.terms||r.terms.length===0)){if(h(``),!r.terms){let e=await t({message:`Please provide a value for the ${p(`terms`)} option`,description:`One or more search terms (fuzzy match). Example: ["heading", "mono", "inter"].`,validate(e){return!e||e.trim()===``?`A value must be provided for this option`:null}});if(n(e))return;r.terms=e}else if(r.terms.length===0){let e=await t({message:`Please provide one or more values for the ${p(`terms`)} option (values are separated by a \",\" character)`,description:`One or more search terms (fuzzy match). Example: ["heading", "mono", "inter"].`,validate(e){if(!e||e.trim()===``)return`A value must be provided for this option`;if(e.split(`,`).map(e=>e.trim()).filter(Boolean).length===0)return`At least one value must be provided for this option`}});if(n(e))return;r.terms=e.split(`,`).map(e=>e.trim()).filter(Boolean)}h(``);let e=[];r.terms?r.terms.length===0&&e.push(`No values were provided to the required "terms" array option`):e.push(`Missing required "terms" option`),r.limit&&Number.isNaN(r.limit)&&e.push(`Invalid numeric value provided for the "limit" option`),e.length>0&&(g(`The following validation failures were found while processing the user provided input, and must be corrected before the ${p(`Search Fonts`)} command can be executed: \n\n${e.map(e=>` - `+e).join(`
|
|
3
3
|
`)}`),r.help=!0)}return r.help?w():d(`search-fonts`,[`search-fonts`],[r],j)}export{M as handler};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as e,_ as t,h as n,k as r,t as i,w as a}from"./console-
|
|
1
|
+
import{C as e,_ as t,h as n,k as r,t as i,w as a}from"./console-BYjL_BgX.mjs";function o(){r(`${i(a.heading.secondary(`Tags: `))} ${a.tags.designSystem?a.tags.designSystem(n(` Design System `)):a.tags.default(n(` Design System `))} ${a.tags.icons?a.tags.icons(n(` Icons `)):a.tags.default(n(` Icons `))}`,{padding:0}),r(``),r(i(a.heading.secondary(`Usage:`))),r(a.body.secondary(`${a.usage.bin(`>_ cyclone-ui`)} ${a.usage.command(`search-icons`)} ${a.usage.options(`[options]`)}`),{padding:0}),r(``),r(i(a.heading.secondary(`Options:`))),e([[{value:a.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--limit <limit>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Maximum matches per term (default: 2).`),align:`left`,border:`none`}],[{value:a.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--terms <terms...>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`One or more search terms (fuzzy match).`),align:`left`,border:`none`}],[{value:a.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: CYCLONE_UI_YES, default: false).`),align:`left`,border:`none`}]]),r(``),r(a.body.tertiary(`More information can be found in the Search Icons command documentation at ${t(`https://docs.cyclone-ui.com/reference/cli/search-icons`)}${a.body.tertiary(`.`)}`),{padding:0}),r(``)}export{o as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as e,_ as t,h as n,k as r,t as i,w as a}from"./console-
|
|
1
|
+
import{C as e,_ as t,h as n,k as r,t as i,w as a}from"./console-OYOslGRH.mjs";function o(){r(`${i(a.heading.secondary(`Tags: `))} ${a.tags.designSystem?a.tags.designSystem(n(` Design System `)):a.tags.default(n(` Design System `))} ${a.tags.icons?a.tags.icons(n(` Icons `)):a.tags.default(n(` Icons `))}`,{padding:0}),r(``),r(i(a.heading.secondary(`Usage:`))),r(a.body.secondary(`${a.usage.bin(`>_ cyclone-ui`)} ${a.usage.command(`search-icons`)} ${a.usage.options(`[options]`)}`),{padding:0}),r(``),r(i(a.heading.secondary(`Options:`))),e([[{value:a.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--limit <limit>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Maximum matches per term (default: 2).`),align:`left`,border:`none`}],[{value:a.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--terms <terms...>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`One or more search terms (fuzzy match).`),align:`left`,border:`none`}],[{value:a.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: CYCLONE_UI_YES, default: false).`),align:`left`,border:`none`}]]),r(``),r(a.body.tertiary(`More information can be found in the Search Icons command documentation at ${t(`https://docs.cyclone-ui.com/reference/cli/search-icons`)}${a.body.tertiary(`.`)}`),{padding:0}),r(``)}export{o as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as e,_ as t,h as n,k as r,t as i,w as a}from"./console-
|
|
1
|
+
import{C as e,_ as t,h as n,k as r,t as i,w as a}from"./console-3jKhbXHX.mjs";function o(){r(`${i(a.heading.secondary(`Tags: `))} ${a.tags.designSystem?a.tags.designSystem(n(` Design System `)):a.tags.default(n(` Design System `))} ${a.tags.icons?a.tags.icons(n(` Icons `)):a.tags.default(n(` Icons `))}`,{padding:0}),r(``),r(i(a.heading.secondary(`Usage:`))),r(a.body.secondary(`${a.usage.bin(`>_ cyclone-ui`)} ${a.usage.command(`search-icons`)} ${a.usage.options(`[options]`)}`),{padding:0}),r(``),r(i(a.heading.secondary(`Options:`))),e([[{value:a.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--limit <limit>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Maximum matches per term (default: 2).`),align:`left`,border:`none`}],[{value:a.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--terms <terms...>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`One or more search terms (fuzzy match).`),align:`left`,border:`none`}],[{value:a.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: CYCLONE_UI_YES, default: false).`),align:`left`,border:`none`}]]),r(``),r(a.body.tertiary(`More information can be found in the Search Icons command documentation at ${t(`https://docs.cyclone-ui.com/reference/cli/search-icons`)}${a.body.tertiary(`.`)}`),{padding:0}),r(``)}export{o as t};
|
package/dist/search-icons.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{a as e,r as t,t as n}from"./prompts-
|
|
1
|
+
import{a as e,r as t,t as n}from"./prompts-Ch1Mjbjb.mjs";import{F as r,G as i,H as a,J as o,L as s,M as c,N as l,R as u,U as d,V as f,g as p,j as m,k as h,l as g,n as _,q as v,t as y,w as b,x,y as S,z as C}from"./console-BYjL_BgX.mjs";import{t as w}from"./search-icons-CRKM-p12.mjs";import{t as T}from"./update-C1lMXab1.mjs";import{t as E}from"./design-system-BsX1c5U4.mjs";import{isSearchError as D,searchIcons as O}from"@razorwind/shell-shock/runtime";async function k(t=500){if(a().get(`is-banner-displayed`)||s(`no-banner`)||s(`hide-banner`)||l)return;a().set(`is-banner-displayed`,!0),h(``),h(_.banner.outline.primary(`┏`)+_.banner.outline.primary(`━`.repeat(6))+` `+b.banner.header.primary(`⬤`)+` `+_.banner.outline.primary(`━`)+` `+y(b.banner.header.primary(`Cyclone CLI v0.6.39`))+` `+_.banner.outline.primary(`━`.repeat(Math.max(m().columns-33,0)))+_.banner.outline.primary(`┓`),{consoleFn:console.log});let n=Math.max(...e.map(e=>x(e).length))>Math.max(m().columns+30,20)?`Cyclone UI`:`\n${e.join(`
|
|
2
2
|
`)}\n`;S(n,Math.max(m().columns-30,20)).forEach(e=>{h(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(x(e).length+2))/2),0))+y(b.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((m().columns-(x(e).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log})}),h(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(x(`Search Icons`).length+2))/2),0))+y(b.banner.command.primary(`Search Icons`))+` `.repeat(Math.max(Math.ceil((m().columns-(x(`Search Icons`).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log}),S(y(b.banner.description.primary(`Search design-system icons by name, title, aliases, tags and category. Returns name and asset files for each match.`)),Math.max(60>m().columns/2?m().columns-6:m().columns-30,20)).forEach(e=>{h(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(x(e).length+2))/2),0))+b.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((m().columns-(x(e).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log})}),h(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(m().columns-2,0))+_.banner.outline.primary(`┃`),{consoleFn:console.log}),h(_.banner.outline.primary(`┗`)+_.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+` `+y(b.banner.footer.primary(`https://cyclone-ui.com`))+` `+_.banner.outline.primary(`━`.repeat(6))+_.banner.outline.primary(`┛`),{consoleFn:console.log}),h(``),c&&!u()&&await r(t)}function A(e){process.stdout.write(`${typeof e==`string`?e:JSON.stringify(e,null,2)}\n`)}async function j(e){let t=O(E,{terms:e.terms??[],limit:e.limit});A(t),D(t)&&(process.exitCode=1)}async function M(e=C()){let r={...f(),terms:[],limit:2};for(let t=0;t<e.slice(0).length;t++){let n=e[t].length>3&&e[t].startsWith(`--`)?`--${e[t].slice(2).replaceAll(`-`,``).toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)}`:e[t].length>2&&e[t].startsWith(`-`)?`-${e[t].slice(1).replaceAll(`-`,``)}`:e[t];if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`terms=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`terms`||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`terms=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`terms`)r.terms??=[],/^--?(terms)=/.test(`-`+n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?r.terms.push(...n.replace(/^--?(terms)=/,``).split(`,`).map(e=>e.trim().replace(/^("|')/,``).replace(/("|')$/,``)).filter(Boolean)):e.length>t+1&&r.terms.push(...e[++t].split(`,`).map(e=>e.trim().replace(/^("|')/,``).replace(/("|')$/,``)).filter(Boolean));else if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`limit=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`limit`||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`limit=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`limit`){if(/^--?(limit)=/.test(`-`+n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=Number(n.replace(/^--?(limit)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``));Number.isNaN(e)||(r.limit=e)}else if(e.length>t+1){let n=Number(e[++t].trim().replace(/^("|')/,``).replace(/("|')$/,``));Number.isNaN(n)||(r.limit=n)}}}if(s(`quiet`)||(await k(),await T()),!u()&&!s(`quiet`)&&(h(``),(o||v||i.LOG_LEVEL===`debug`)&&h(b.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`))),!c){let e=[];r.terms?r.terms.length===0&&e.push(`No values were provided to the required "terms" array option`):e.push(`Missing required "terms" option`),r.limit&&Number.isNaN(r.limit)&&e.push(`Invalid numeric value provided for the "limit" option`)}else if(!u()&&(!r.terms||r.terms.length===0)){if(h(``),!r.terms){let e=await t({message:`Please provide a value for the ${p(`terms`)} option`,description:`One or more search terms (fuzzy match). Example: ["search", "folder", "user"].`,validate(e){return!e||e.trim()===``?`A value must be provided for this option`:null}});if(n(e))return;r.terms=e}else if(r.terms.length===0){let e=await t({message:`Please provide one or more values for the ${p(`terms`)} option (values are separated by a \",\" character)`,description:`One or more search terms (fuzzy match). Example: ["search", "folder", "user"].`,validate(e){if(!e||e.trim()===``)return`A value must be provided for this option`;if(e.split(`,`).map(e=>e.trim()).filter(Boolean).length===0)return`At least one value must be provided for this option`}});if(n(e))return;r.terms=e.split(`,`).map(e=>e.trim()).filter(Boolean)}h(``);let e=[];r.terms?r.terms.length===0&&e.push(`No values were provided to the required "terms" array option`):e.push(`Missing required "terms" option`),r.limit&&Number.isNaN(r.limit)&&e.push(`Invalid numeric value provided for the "limit" option`),e.length>0&&(g(`The following validation failures were found while processing the user provided input, and must be corrected before the ${p(`Search Icons`)} command can be executed: \n\n${e.map(e=>` - `+e).join(`
|
|
3
3
|
`)}`),r.help=!0)}return r.help?w():d(`search-icons`,[`search-icons`],[r],j)}export{M as handler};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as e,_ as t,h as n,k as r,t as i,w as a}from"./console-
|
|
1
|
+
import{C as e,_ as t,h as n,k as r,t as i,w as a}from"./console-BYjL_BgX.mjs";function o(){r(`${i(a.heading.secondary(`Tags: `))} ${a.tags.designSystem?a.tags.designSystem(n(` Design System `)):a.tags.default(n(` Design System `))} ${a.tags.tokens?a.tags.tokens(n(` Tokens `)):a.tags.default(n(` Tokens `))}`,{padding:0}),r(``),r(i(a.heading.secondary(`Usage:`))),r(a.body.secondary(`${a.usage.bin(`>_ cyclone-ui`)} ${a.usage.command(`search-tokens`)} ${a.usage.options(`[options]`)}`),{padding:0}),r(``),r(i(a.heading.secondary(`Options:`))),e([[{value:a.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--include-metadata`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Include type, description, hex value and CSS variable in each result (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--limit <limit>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Maximum matches per term (default: 2).`),align:`left`,border:`none`}],[{value:a.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--terms <terms...>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`One or more search terms (fuzzy match). Example: ["spacing", "color.`),align:`left`,border:`none`}],[{value:a.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: CYCLONE_UI_YES, default: false).`),align:`left`,border:`none`}]]),r(``),r(a.body.tertiary(`More information can be found in the Search Tokens command documentation at ${t(`https://docs.cyclone-ui.com/reference/cli/search-tokens`)}${a.body.tertiary(`.`)}`),{padding:0}),r(``)}export{o as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as e,_ as t,h as n,k as r,t as i,w as a}from"./console-
|
|
1
|
+
import{C as e,_ as t,h as n,k as r,t as i,w as a}from"./console-OYOslGRH.mjs";function o(){r(`${i(a.heading.secondary(`Tags: `))} ${a.tags.designSystem?a.tags.designSystem(n(` Design System `)):a.tags.default(n(` Design System `))} ${a.tags.tokens?a.tags.tokens(n(` Tokens `)):a.tags.default(n(` Tokens `))}`,{padding:0}),r(``),r(i(a.heading.secondary(`Usage:`))),r(a.body.secondary(`${a.usage.bin(`>_ cyclone-ui`)} ${a.usage.command(`search-tokens`)} ${a.usage.options(`[options]`)}`),{padding:0}),r(``),r(i(a.heading.secondary(`Options:`))),e([[{value:a.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--include-metadata`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Include type, description, hex value and CSS variable in each result (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--limit <limit>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Maximum matches per term (default: 2).`),align:`left`,border:`none`}],[{value:a.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--terms <terms...>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`One or more search terms (fuzzy match). Example: ["spacing", "color.`),align:`left`,border:`none`}],[{value:a.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: CYCLONE_UI_YES, default: false).`),align:`left`,border:`none`}]]),r(``),r(a.body.tertiary(`More information can be found in the Search Tokens command documentation at ${t(`https://docs.cyclone-ui.com/reference/cli/search-tokens`)}${a.body.tertiary(`.`)}`),{padding:0}),r(``)}export{o as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as e,_ as t,h as n,k as r,t as i,w as a}from"./console-
|
|
1
|
+
import{C as e,_ as t,h as n,k as r,t as i,w as a}from"./console-3jKhbXHX.mjs";function o(){r(`${i(a.heading.secondary(`Tags: `))} ${a.tags.designSystem?a.tags.designSystem(n(` Design System `)):a.tags.default(n(` Design System `))} ${a.tags.tokens?a.tags.tokens(n(` Tokens `)):a.tags.default(n(` Tokens `))}`,{padding:0}),r(``),r(i(a.heading.secondary(`Usage:`))),r(a.body.secondary(`${a.usage.bin(`>_ cyclone-ui`)} ${a.usage.command(`search-tokens`)} ${a.usage.options(`[options]`)}`),{padding:0}),r(``),r(i(a.heading.secondary(`Options:`))),e([[{value:a.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--include-metadata`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Include type, description, hex value and CSS variable in each result (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--limit <limit>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Maximum matches per term (default: 2).`),align:`left`,border:`none`}],[{value:a.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--terms <terms...>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`One or more search terms (fuzzy match). Example: ["spacing", "color.`),align:`left`,border:`none`}],[{value:a.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: CYCLONE_UI_YES, default: false).`),align:`left`,border:`none`}]]),r(``),r(a.body.tertiary(`More information can be found in the Search Tokens command documentation at ${t(`https://docs.cyclone-ui.com/reference/cli/search-tokens`)}${a.body.tertiary(`.`)}`),{padding:0}),r(``)}export{o as t};
|
package/dist/search-tokens.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{a as e,r as t,t as n}from"./prompts-
|
|
1
|
+
import{a as e,r as t,t as n}from"./prompts-Ch1Mjbjb.mjs";import{F as r,G as i,H as a,J as o,L as s,M as c,N as l,R as u,U as d,V as f,g as p,j as m,k as h,l as g,n as _,q as v,t as y,w as b,x,y as S,z as C}from"./console-BYjL_BgX.mjs";import{t as w}from"./search-tokens-C__J_9tw.mjs";import{t as T}from"./update-C1lMXab1.mjs";import{t as E}from"./design-system-BsX1c5U4.mjs";import{isSearchError as D,searchTokens as O}from"@razorwind/shell-shock/runtime";async function k(t=500){if(a().get(`is-banner-displayed`)||s(`no-banner`)||s(`hide-banner`)||l)return;a().set(`is-banner-displayed`,!0),h(``),h(_.banner.outline.primary(`┏`)+_.banner.outline.primary(`━`.repeat(6))+` `+b.banner.header.primary(`⬤`)+` `+_.banner.outline.primary(`━`)+` `+y(b.banner.header.primary(`Cyclone CLI v0.6.39`))+` `+_.banner.outline.primary(`━`.repeat(Math.max(m().columns-33,0)))+_.banner.outline.primary(`┓`),{consoleFn:console.log});let n=Math.max(...e.map(e=>x(e).length))>Math.max(m().columns+30,20)?`Cyclone UI`:`\n${e.join(`
|
|
2
2
|
`)}\n`;S(n,Math.max(m().columns-30,20)).forEach(e=>{h(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(x(e).length+2))/2),0))+y(b.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((m().columns-(x(e).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log})}),h(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(x(`Search Tokens`).length+2))/2),0))+y(b.banner.command.primary(`Search Tokens`))+` `.repeat(Math.max(Math.ceil((m().columns-(x(`Search Tokens`).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log}),S(y(b.banner.description.primary(`Search design tokens by name, path, description, type and value. Returns compact JSON records with name and value for each match; set --include-metadata for descriptions and CSS variables.`)),Math.max(60>m().columns/2?m().columns-6:m().columns-30,20)).forEach(e=>{h(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(x(e).length+2))/2),0))+b.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((m().columns-(x(e).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log})}),h(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(m().columns-2,0))+_.banner.outline.primary(`┃`),{consoleFn:console.log}),h(_.banner.outline.primary(`┗`)+_.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+` `+y(b.banner.footer.primary(`https://cyclone-ui.com`))+` `+_.banner.outline.primary(`━`.repeat(6))+_.banner.outline.primary(`┛`),{consoleFn:console.log}),h(``),c&&!u()&&await r(t)}function A(e){process.stdout.write(`${typeof e==`string`?e:JSON.stringify(e,null,2)}\n`)}async function j(e){let t=O(E,{terms:e.terms??[],limit:e.limit,includeMetadata:e.includeMetadata});A(t),D(t)&&(process.exitCode=1)}async function M(e=C()){let r={...f(),terms:[],limit:2,includeMetadata:!1};for(let t=0;t<e.slice(0).length;t++){let n=e[t].length>3&&e[t].startsWith(`--`)?`--${e[t].slice(2).replaceAll(`-`,``).toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)}`:e[t].length>2&&e[t].startsWith(`-`)?`-${e[t].slice(1).replaceAll(`-`,``)}`:e[t];if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`terms=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`terms`||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`terms=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`terms`)r.terms??=[],/^--?(terms)=/.test(`-`+n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?r.terms.push(...n.replace(/^--?(terms)=/,``).split(`,`).map(e=>e.trim().replace(/^("|')/,``).replace(/("|')$/,``)).filter(Boolean)):e.length>t+1&&r.terms.push(...e[++t].split(`,`).map(e=>e.trim().replace(/^("|')/,``).replace(/("|')$/,``)).filter(Boolean));else if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`limit=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`limit`||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`limit=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`limit`){if(/^--?(limit)=/.test(`-`+n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=Number(n.replace(/^--?(limit)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``));Number.isNaN(e)||(r.limit=e)}else if(e.length>t+1){let n=Number(e[++t].trim().replace(/^("|')/,``).replace(/("|')$/,``));Number.isNaN(n)||(r.limit=n)}}else if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`includemetadata=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`includemetadata`||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`includemetadata=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`includemetadata`){if(/^--?(includemetadata)=/.test(`-`+n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=n.replace(/^--?(includemetadata)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``).toLowerCase();r.includeMetadata=!!e&&e.toLowerCase()!==`false`&&e.toLowerCase()!==`f`&&e.toLowerCase()!==`no`&&e!==`n`&&e.toLowerCase()!==`0`&&e.toLowerCase()!==`off`&&e!==`disable`&&e.toLowerCase()!==`disabled`&&e.toLowerCase()!==`never`&&(Number.isNaN(Number.parseFloat(e))||Number.parseFloat(e)>0)}else r.includeMetadata=!0}}if(s(`quiet`)||(await k(),await T()),!u()&&!s(`quiet`)&&(h(``),(o||v||i.LOG_LEVEL===`debug`)&&h(b.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`))),!c){let e=[];r.terms?r.terms.length===0&&e.push(`No values were provided to the required "terms" array option`):e.push(`Missing required "terms" option`),r.limit&&Number.isNaN(r.limit)&&e.push(`Invalid numeric value provided for the "limit" option`)}else if(!u()&&(!r.terms||r.terms.length===0)){if(h(``),!r.terms){let e=await t({message:`Please provide a value for the ${p(`terms`)} option`,description:`One or more search terms (fuzzy match). Example: ["spacing", "color.text", "background"].`,validate(e){return!e||e.trim()===``?`A value must be provided for this option`:null}});if(n(e))return;r.terms=e}else if(r.terms.length===0){let e=await t({message:`Please provide one or more values for the ${p(`terms`)} option (values are separated by a \",\" character)`,description:`One or more search terms (fuzzy match). Example: ["spacing", "color.text", "background"].`,validate(e){if(!e||e.trim()===``)return`A value must be provided for this option`;if(e.split(`,`).map(e=>e.trim()).filter(Boolean).length===0)return`At least one value must be provided for this option`}});if(n(e))return;r.terms=e.split(`,`).map(e=>e.trim()).filter(Boolean)}h(``);let e=[];r.terms?r.terms.length===0&&e.push(`No values were provided to the required "terms" array option`):e.push(`Missing required "terms" option`),r.limit&&Number.isNaN(r.limit)&&e.push(`Invalid numeric value provided for the "limit" option`),e.length>0&&(g(`The following validation failures were found while processing the user provided input, and must be corrected before the ${p(`Search Tokens`)} command can be executed: \n\n${e.map(e=>` - `+e).join(`
|
|
3
3
|
`)}`),r.help=!0)}return r.help?w():d(`search-tokens`,[`search-tokens`],[r],j)}export{M as handler};
|
package/dist/search.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{a as e}from"./prompts-
|
|
1
|
+
import{a as e}from"./prompts-Ch1Mjbjb.mjs";import{F as t,G as n,H as r,J as i,L as a,M as o,N as s,O as c,R as l,U as u,V as d,j as f,k as p,n as m,q as h,t as g,w as _,x as v,y,z as b}from"./console-BYjL_BgX.mjs";import{t as x}from"./search-Bu_OMfzD.mjs";import{t as S}from"./update-C1lMXab1.mjs";import{i as C,u as w}from"./config-BwGb7RTa.mjs";import{resolve as T}from"node:path";import"@shell-shock/core";async function E(n=500){if(r().get(`is-banner-displayed`)||a(`no-banner`)||a(`hide-banner`)||s)return;r().set(`is-banner-displayed`,!0),p(``),p(m.banner.outline.primary(`┏`)+m.banner.outline.primary(`━`.repeat(6))+` `+_.banner.header.primary(`⬤`)+` `+m.banner.outline.primary(`━`)+` `+g(_.banner.header.primary(`Cyclone CLI v0.6.39`))+` `+m.banner.outline.primary(`━`.repeat(Math.max(f().columns-33,0)))+m.banner.outline.primary(`┓`),{consoleFn:console.log});let i=Math.max(...e.map(e=>v(e).length))>Math.max(f().columns+30,20)?`Cyclone UI`:`\n${e.join(`
|
|
2
2
|
`)}\n`;y(i,Math.max(f().columns-30,20)).forEach(e=>{p(m.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((f().columns-(v(e).length+2))/2),0))+g(_.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((f().columns-(v(e).length+2))/2),0))+m.banner.outline.primary(`┃`),{consoleFn:console.log})}),p(m.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((f().columns-(v(`Search Registry`).length+2))/2),0))+g(_.banner.command.primary(`Search Registry`))+` `.repeat(Math.max(Math.ceil((f().columns-(v(`Search Registry`).length+2))/2),0))+m.banner.outline.primary(`┃`),{consoleFn:console.log}),y(g(_.banner.description.primary(`Search components in the Cyclone registry.`)),Math.max(60>f().columns/2?f().columns-6:f().columns-30,20)).forEach(e=>{p(m.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((f().columns-(v(e).length+2))/2),0))+_.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((f().columns-(v(e).length+2))/2),0))+m.banner.outline.primary(`┃`),{consoleFn:console.log})}),p(m.banner.outline.primary(`┃`)+` `.repeat(Math.max(f().columns-2,0))+m.banner.outline.primary(`┃`),{consoleFn:console.log}),p(m.banner.outline.primary(`┗`)+m.banner.outline.primary(`━`.repeat(Math.max(f().columns-32,0)))+` `+g(_.banner.footer.primary(`https://cyclone-ui.com`))+` `+m.banner.outline.primary(`━`.repeat(6))+m.banner.outline.primary(`┛`),{consoleFn:console.log}),p(``),o&&!l()&&await t(n)}async function D(e){let t=T(e.cwd??process.cwd()),n=await C(t),r=await w(e.registry??n?.registry??`https://public.storm-cdn.com/cyclone-ui/registry`).components.list.query(),i=e.query?.toLowerCase(),a=Math.max(0,e.offset??0),o=Math.max(0,e.limit??100),s=r.filter(e=>!i||[e.name,e.description,...e.tags].join(` `).toLowerCase().includes(i)).slice(a,a+o);c(e.json?JSON.stringify(s,null,2):s.map(e=>`${e.name.padEnd(28)} ${e.version??`-`} ${e.description}`).join(`
|
|
3
3
|
`))}async function O(e=b()){let t={...d()};for(let n=0;n<e.slice(0).length;n++){let r=e[n].length>3&&e[n].startsWith(`--`)?`--${e[n].slice(2).replaceAll(`-`,``).toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)}`:e[n].length>2&&e[n].startsWith(`-`)?`-${e[n].slice(1).replaceAll(`-`,``)}`:e[n];if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`cwd=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`cwd`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`cwd=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`cwd`)/^--?(cwd)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?t.cwd=r.replace(/^--?(cwd)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``):e.length>n+1&&(t.cwd=e[++n].trim().replace(/^("|')/,``).replace(/("|')$/,``));else if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`query=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`query`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`query=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`query`)/^--?(query)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?t.query=r.replace(/^--?(query)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``):e.length>n+1&&(t.query=e[++n].trim().replace(/^("|')/,``).replace(/("|')$/,``));else if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`limit=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`limit`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`limit=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`limit`){if(/^--?(limit)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=Number(r.replace(/^--?(limit)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``));Number.isNaN(e)||(t.limit=e)}else if(e.length>n+1){let r=Number(e[++n].trim().replace(/^("|')/,``).replace(/("|')$/,``));Number.isNaN(r)||(t.limit=r)}}else if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`offset=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`offset`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`offset=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`offset`){if(/^--?(offset)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=Number(r.replace(/^--?(offset)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``));Number.isNaN(e)||(t.offset=e)}else if(e.length>n+1){let r=Number(e[++n].trim().replace(/^("|')/,``).replace(/("|')$/,``));Number.isNaN(r)||(t.offset=r)}}else if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`json=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`json`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`json=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`json`){if(/^--?(json)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=r.replace(/^--?(json)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``).toLowerCase();t.json=!!e&&e.toLowerCase()!==`false`&&e.toLowerCase()!==`f`&&e.toLowerCase()!==`no`&&e!==`n`&&e.toLowerCase()!==`0`&&e.toLowerCase()!==`off`&&e!==`disable`&&e.toLowerCase()!==`disabled`&&e.toLowerCase()!==`never`&&(Number.isNaN(Number.parseFloat(e))||Number.parseFloat(e)>0)}else t.json=!0}else(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`registry=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`registry`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`registry=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`registry`)&&(/^--?(registry)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?t.registry=r.replace(/^--?(registry)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``):e.length>n+1&&(t.registry=e[++n].trim().replace(/^("|')/,``).replace(/("|')$/,``)))}if(a(`quiet`)||(await E(),await S()),!l()&&!a(`quiet`)&&(p(``),(i||h||n.LOG_LEVEL===`debug`)&&p(_.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`))),!o){let e=[];t.limit&&Number.isNaN(t.limit)&&e.push(`Invalid numeric value provided for the "limit" option`),t.offset&&Number.isNaN(t.offset)&&e.push(`Invalid numeric value provided for the "offset" option`)}return t.help?x():u(`search`,[`search`],[t],D)}export{O as handler};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{G as e,I as t,K as n,M as r,X as i,Y as a,d as o,f as s,i as c,k as l,m as u,o as d,p as f,v as p,w as m}from"./console-
|
|
1
|
+
import{G as e,I as t,K as n,M as r,X as i,Y as a,d as o,f as s,i as c,k as l,m as u,o as d,p as f,v as p,w as m}from"./console-OYOslGRH.mjs";import{i as h}from"./prompts-BELKZ3oG.mjs";import g from"node:os";import{join as _,resolve as v}from"node:path";import{existsSync as y}from"node:fs";import b from"node:process";import{mkdir as x,readFile as S,writeFile as C}from"node:fs/promises";const w=g.homedir(),T=g.tmpdir();async function E(e={}){let t=e.cwd??b.cwd(),n=v(t,`..`);for(;n!==t&&t!==w&&t!==T;){let r=_(t,`package.json`);if(y(r)){if(e.isDependencyRequired){let e=JSON.parse(await S(r,`utf8`));if(Object.keys(e.dependencies||{}).concat(Object.keys(e.devDependencies||{})).concat(Object.keys(e.peerDependencies||{})).concat(Object.keys(e.optionalDependencies||{})).some(e=>e===`@cyclone-ui/cli`||e.startsWith(`@cyclone-ui/cli@`)))return r}else return r}else t=n,n=v(t,`..`)}}function D(e={}){let t=e.cwd??b.cwd(),n=v(t,`..`);for(;n!==t&&t!==w&&t!==T;){let e=[`package-lock.json`,`npm-shrinkwrap.json`,`yarn.lock`,`pnpm-lock.yaml`,`pnpm-workspace.yaml`,`deno.lock`,`deno.json`,`deno.jsonc`,`bun.lock`,`bun.lockb`].find(e=>y(_(t,e)));if(e)return e;t=n,n=v(t,`..`)}}async function O(e={}){let t=b.env.npm_config_user_agent??``,n=b.env.npm_execpath??``;if(t.startsWith(`yarn`)||n.includes(`yarn`))return`yarn`;if(t.startsWith(`pnpm`)||n.includes(`pnpm`))return`pnpm`;if(t.startsWith(`bun`)||n.includes(`bun`)||b.versions.bun)return`bun`;{let t=D(e);if(t===`yarn.lock`)return`yarn`;if(t===`deno.lock`||t===`deno.json`||t===`deno.jsonc`)return`deno`;if(t===`pnpm-lock.yaml`||t===`pnpm-workspace.yaml`)return`pnpm`;if(t===`bun.lock`||t===`bun.lockb`)return`bun`;{let t=await E(e);if(t&&y(t)){let e=JSON.parse(await S(t,`utf8`));if(e.devEngines?.packageManager?.name&&typeof e.devEngines.packageManager.name==`string`&&[`npm`,`yarn`,`pnpm`,`deno`,`bun`].includes(e.devEngines.packageManager.name))return e.devEngines.packageManager.name;let n={...e.dependencies,...e.devDependencies,...e.peerDependencies,...e.optionalDependencies};if(Object.keys(n).some(e=>e===`yarn`||e.startsWith(`yarn@`)||e===`yarnpkg`||e.startsWith(`yarnpkg@`)))return`yarn`;if(Object.keys(n).some(e=>e===`bun`||e.startsWith(`bun@`)))return`bun`;if(Object.keys(n).some(e=>e===`pnpm`||e.startsWith(`pnpm@`)))return`pnpm`;if(Object.keys(n).some(e=>e===`deno`||e.startsWith(`deno@`)))return`deno`}return`npm`}}}async function k(e){let t=await fetch(`https://registry.npmjs.com/-/v1/search?text=${e}&size=1`).then(e=>e.json());if(t.objects&&t.objects.length>0&&t.objects[0].package&&t.objects[0].package.name===e)return t.objects[0].package}async function A(e=`@cyclone-ui/cli`){return(await k(e))?.version}async function j(e,t=b.cwd()){let n=await A(`@cyclone-ui/cli`)||`latest`;return e===`yarn`?[`upgrade`,`@cyclone-ui/cli@${n}`]:e===`pnpm`?[`update`,`@cyclone-ui/cli@${n}`]:e===`deno`?[`outdated`,`--update`,`@cyclone-ui/cli@${n}`]:e===`bun`?[`update`,`--save`,`@cyclone-ui/cli@${n}`]:[`update`,`--save`,`--bin-links`,`@cyclone-ui/cli@${n}`]}async function M(e={}){let n=await O(e),r=await j(n,e.cwd),i=``;await t(`${n}${a&&n!==`bun`?`.cmd`:``}`,[r.join(` `)],{...e,env:{...e.env,...n===`pnpm`?{npm_config_strict_peer_dependencies:!1}:null},stdout:t=>{e.stdout?.(t),i+=t},stderr:t=>{e.stderr?.(t)}})}async function N(e={}){if(!e.force&&!await P())return{latestVersion:`0.6.39`,currentVersion:`0.6.39`,isUpToDate:!0,isError:!1};try{let e=await k(`@cyclone-ui/cli`);return{latestVersion:e?.version||`0.6.39`,currentVersion:`0.6.39`,isUpToDate:!e||e.version===`0.6.39`,package:e,isError:!1}}catch(e){return{isError:!0,error:e instanceof Error?e:Error(String(e))}}}async function P(){if(!r||n||e.SKIP_UPDATE_CHECK)return!1;let t=_(i.data,`update-check.json`);if(y(t)){let e=JSON.parse(await S(t,`utf8`));if(!e.timestamp)return await F(),!0;if((/* @__PURE__ */ new Date()).getTime()-e.timestamp<1296e5)return!1}else return await F(),!0}async function F(){y(i.data)||await x(i.data,{recursive:!0}),await C(_(i.data,`update-check.json`),JSON.stringify({timestamp:(/* @__PURE__ */ new Date()).getTime()}),`utf8`)}async function I(){if(await P()){let e=c({message:`Checking for updates...`}).start(),t=await N({force:!0});if(t?.isError)e.error(`An error occurred while checking for Cyclone User Interface application updates. Please try again later - if the problem persists, please contact support.`),d(t.error);else if(t?.isUpToDate)e.success(`Currently running the latest version of Cyclone User Interface.`),l(``);else{e.stop(),f(`A new version of Cyclone User Interface is available: ${p(`v${t.currentVersion}`)} ${m.body.tertiary(`➜`)} ${o(`v${t.latestVersion}`)}${t.package?.date?m.body.tertiary(` (updated on ${t.package?.date})`):``}`);try{await M(),e.success(`Update successful! Please restart the application to apply the update.`),l(``),s(`The changelog for this release can be viewed by running the ${u(`cyclone-ui changelog`)} command.`),l(``),l(`Press any key to exit the application...`),await h();return}catch(n){e.error(`An error occurred while updating Cyclone User Interface to v${t.latestVersion}. Please try again later - if the problem persists, please contact support.`),d(n)}}}}export{I as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{G as e,I as t,K as n,M as r,X as i,Y as a,d as o,f as s,i as c,k as l,m as u,o as d,p as f,v as p,w as m}from"./console-
|
|
1
|
+
import{G as e,I as t,K as n,M as r,X as i,Y as a,d as o,f as s,i as c,k as l,m as u,o as d,p as f,v as p,w as m}from"./console-BYjL_BgX.mjs";import{i as h}from"./prompts-Ch1Mjbjb.mjs";import g from"node:os";import{join as _,resolve as v}from"node:path";import{existsSync as y}from"node:fs";import b from"node:process";import{mkdir as x,readFile as S,writeFile as C}from"node:fs/promises";const w=g.homedir(),T=g.tmpdir();async function E(e={}){let t=e.cwd??b.cwd(),n=v(t,`..`);for(;n!==t&&t!==w&&t!==T;){let r=_(t,`package.json`);if(y(r)){if(e.isDependencyRequired){let e=JSON.parse(await S(r,`utf8`));if(Object.keys(e.dependencies||{}).concat(Object.keys(e.devDependencies||{})).concat(Object.keys(e.peerDependencies||{})).concat(Object.keys(e.optionalDependencies||{})).some(e=>e===`@cyclone-ui/cli`||e.startsWith(`@cyclone-ui/cli@`)))return r}else return r}else t=n,n=v(t,`..`)}}function D(e={}){let t=e.cwd??b.cwd(),n=v(t,`..`);for(;n!==t&&t!==w&&t!==T;){let e=[`package-lock.json`,`npm-shrinkwrap.json`,`yarn.lock`,`pnpm-lock.yaml`,`pnpm-workspace.yaml`,`deno.lock`,`deno.json`,`deno.jsonc`,`bun.lock`,`bun.lockb`].find(e=>y(_(t,e)));if(e)return e;t=n,n=v(t,`..`)}}async function O(e={}){let t=b.env.npm_config_user_agent??``,n=b.env.npm_execpath??``;if(t.startsWith(`yarn`)||n.includes(`yarn`))return`yarn`;if(t.startsWith(`pnpm`)||n.includes(`pnpm`))return`pnpm`;if(t.startsWith(`bun`)||n.includes(`bun`)||b.versions.bun)return`bun`;{let t=D(e);if(t===`yarn.lock`)return`yarn`;if(t===`deno.lock`||t===`deno.json`||t===`deno.jsonc`)return`deno`;if(t===`pnpm-lock.yaml`||t===`pnpm-workspace.yaml`)return`pnpm`;if(t===`bun.lock`||t===`bun.lockb`)return`bun`;{let t=await E(e);if(t&&y(t)){let e=JSON.parse(await S(t,`utf8`));if(e.devEngines?.packageManager?.name&&typeof e.devEngines.packageManager.name==`string`&&[`npm`,`yarn`,`pnpm`,`deno`,`bun`].includes(e.devEngines.packageManager.name))return e.devEngines.packageManager.name;let n={...e.dependencies,...e.devDependencies,...e.peerDependencies,...e.optionalDependencies};if(Object.keys(n).some(e=>e===`yarn`||e.startsWith(`yarn@`)||e===`yarnpkg`||e.startsWith(`yarnpkg@`)))return`yarn`;if(Object.keys(n).some(e=>e===`bun`||e.startsWith(`bun@`)))return`bun`;if(Object.keys(n).some(e=>e===`pnpm`||e.startsWith(`pnpm@`)))return`pnpm`;if(Object.keys(n).some(e=>e===`deno`||e.startsWith(`deno@`)))return`deno`}return`npm`}}}async function k(e){let t=await fetch(`https://registry.npmjs.com/-/v1/search?text=${e}&size=1`).then(e=>e.json());if(t.objects&&t.objects.length>0&&t.objects[0].package&&t.objects[0].package.name===e)return t.objects[0].package}async function A(e=`@cyclone-ui/cli`){return(await k(e))?.version}async function j(e,t=b.cwd()){let n=await A(`@cyclone-ui/cli`)||`latest`;return e===`yarn`?[`upgrade`,`@cyclone-ui/cli@${n}`]:e===`pnpm`?[`update`,`@cyclone-ui/cli@${n}`]:e===`deno`?[`outdated`,`--update`,`@cyclone-ui/cli@${n}`]:e===`bun`?[`update`,`--save`,`@cyclone-ui/cli@${n}`]:[`update`,`--save`,`--bin-links`,`@cyclone-ui/cli@${n}`]}async function M(e={}){let n=await O(e),r=await j(n,e.cwd),i=``;await t(`${n}${a&&n!==`bun`?`.cmd`:``}`,[r.join(` `)],{...e,env:{...e.env,...n===`pnpm`?{npm_config_strict_peer_dependencies:!1}:null},stdout:t=>{e.stdout?.(t),i+=t},stderr:t=>{e.stderr?.(t)}})}async function N(e={}){if(!e.force&&!await P())return{latestVersion:`0.6.39`,currentVersion:`0.6.39`,isUpToDate:!0,isError:!1};try{let e=await k(`@cyclone-ui/cli`);return{latestVersion:e?.version||`0.6.39`,currentVersion:`0.6.39`,isUpToDate:!e||e.version===`0.6.39`,package:e,isError:!1}}catch(e){return{isError:!0,error:e instanceof Error?e:Error(String(e))}}}async function P(){if(!r||n||e.SKIP_UPDATE_CHECK)return!1;let t=_(i.data,`update-check.json`);if(y(t)){let e=JSON.parse(await S(t,`utf8`));if(!e.timestamp)return await F(),!0;if((/* @__PURE__ */ new Date()).getTime()-e.timestamp<1296e5)return!1}else return await F(),!0}async function F(){y(i.data)||await x(i.data,{recursive:!0}),await C(_(i.data,`update-check.json`),JSON.stringify({timestamp:(/* @__PURE__ */ new Date()).getTime()}),`utf8`)}async function I(){if(await P()){let e=c({message:`Checking for updates...`}).start(),t=await N({force:!0});if(t?.isError)e.error(`An error occurred while checking for Cyclone User Interface application updates. Please try again later - if the problem persists, please contact support.`),d(t.error);else if(t?.isUpToDate)e.success(`Currently running the latest version of Cyclone User Interface.`),l(``);else{e.stop(),f(`A new version of Cyclone User Interface is available: ${p(`v${t.currentVersion}`)} ${m.body.tertiary(`➜`)} ${o(`v${t.latestVersion}`)}${t.package?.date?m.body.tertiary(` (updated on ${t.package?.date})`):``}`);try{await M(),e.success(`Update successful! Please restart the application to apply the update.`),l(``),s(`The changelog for this release can be viewed by running the ${u(`cyclone-ui changelog`)} command.`),l(``),l(`Press any key to exit the application...`),await h();return}catch(n){e.error(`An error occurred while updating Cyclone User Interface to v${t.latestVersion}. Please try again later - if the problem persists, please contact support.`),d(n)}}}}export{I as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{G as e,I as t,K as n,M as r,X as i,Y as a,d as o,f as s,i as c,k as l,m as u,o as d,p as f,v as p,w as m}from"./console-
|
|
1
|
+
import{G as e,I as t,K as n,M as r,X as i,Y as a,d as o,f as s,i as c,k as l,m as u,o as d,p as f,v as p,w as m}from"./console-3jKhbXHX.mjs";import{i as h}from"./prompts-Dkpjo3vl.mjs";import g from"node:os";import{join as _,resolve as v}from"node:path";import{existsSync as y}from"node:fs";import b from"node:process";import{mkdir as x,readFile as S,writeFile as C}from"node:fs/promises";const w=g.homedir(),T=g.tmpdir();async function E(e={}){let t=e.cwd??b.cwd(),n=v(t,`..`);for(;n!==t&&t!==w&&t!==T;){let r=_(t,`package.json`);if(y(r)){if(e.isDependencyRequired){let e=JSON.parse(await S(r,`utf8`));if(Object.keys(e.dependencies||{}).concat(Object.keys(e.devDependencies||{})).concat(Object.keys(e.peerDependencies||{})).concat(Object.keys(e.optionalDependencies||{})).some(e=>e===`@cyclone-ui/cli`||e.startsWith(`@cyclone-ui/cli@`)))return r}else return r}else t=n,n=v(t,`..`)}}function D(e={}){let t=e.cwd??b.cwd(),n=v(t,`..`);for(;n!==t&&t!==w&&t!==T;){let e=[`package-lock.json`,`npm-shrinkwrap.json`,`yarn.lock`,`pnpm-lock.yaml`,`pnpm-workspace.yaml`,`deno.lock`,`deno.json`,`deno.jsonc`,`bun.lock`,`bun.lockb`].find(e=>y(_(t,e)));if(e)return e;t=n,n=v(t,`..`)}}async function O(e={}){let t=b.env.npm_config_user_agent??``,n=b.env.npm_execpath??``;if(t.startsWith(`yarn`)||n.includes(`yarn`))return`yarn`;if(t.startsWith(`pnpm`)||n.includes(`pnpm`))return`pnpm`;if(t.startsWith(`bun`)||n.includes(`bun`)||b.versions.bun)return`bun`;{let t=D(e);if(t===`yarn.lock`)return`yarn`;if(t===`deno.lock`||t===`deno.json`||t===`deno.jsonc`)return`deno`;if(t===`pnpm-lock.yaml`||t===`pnpm-workspace.yaml`)return`pnpm`;if(t===`bun.lock`||t===`bun.lockb`)return`bun`;{let t=await E(e);if(t&&y(t)){let e=JSON.parse(await S(t,`utf8`));if(e.devEngines?.packageManager?.name&&typeof e.devEngines.packageManager.name==`string`&&[`npm`,`yarn`,`pnpm`,`deno`,`bun`].includes(e.devEngines.packageManager.name))return e.devEngines.packageManager.name;let n={...e.dependencies,...e.devDependencies,...e.peerDependencies,...e.optionalDependencies};if(Object.keys(n).some(e=>e===`yarn`||e.startsWith(`yarn@`)||e===`yarnpkg`||e.startsWith(`yarnpkg@`)))return`yarn`;if(Object.keys(n).some(e=>e===`bun`||e.startsWith(`bun@`)))return`bun`;if(Object.keys(n).some(e=>e===`pnpm`||e.startsWith(`pnpm@`)))return`pnpm`;if(Object.keys(n).some(e=>e===`deno`||e.startsWith(`deno@`)))return`deno`}return`npm`}}}async function k(e){let t=await fetch(`https://registry.npmjs.com/-/v1/search?text=${e}&size=1`).then(e=>e.json());if(t.objects&&t.objects.length>0&&t.objects[0].package&&t.objects[0].package.name===e)return t.objects[0].package}async function A(e=`@cyclone-ui/cli`){return(await k(e))?.version}async function j(e,t=b.cwd()){let n=await A(`@cyclone-ui/cli`)||`latest`;return e===`yarn`?[`upgrade`,`@cyclone-ui/cli@${n}`]:e===`pnpm`?[`update`,`@cyclone-ui/cli@${n}`]:e===`deno`?[`outdated`,`--update`,`@cyclone-ui/cli@${n}`]:e===`bun`?[`update`,`--save`,`@cyclone-ui/cli@${n}`]:[`update`,`--save`,`--bin-links`,`@cyclone-ui/cli@${n}`]}async function M(e={}){let n=await O(e),r=await j(n,e.cwd),i=``;await t(`${n}${a&&n!==`bun`?`.cmd`:``}`,[r.join(` `)],{...e,env:{...e.env,...n===`pnpm`?{npm_config_strict_peer_dependencies:!1}:null},stdout:t=>{e.stdout?.(t),i+=t},stderr:t=>{e.stderr?.(t)}})}async function N(e={}){if(!e.force&&!await P())return{latestVersion:`0.6.39`,currentVersion:`0.6.39`,isUpToDate:!0,isError:!1};try{let e=await k(`@cyclone-ui/cli`);return{latestVersion:e?.version||`0.6.39`,currentVersion:`0.6.39`,isUpToDate:!e||e.version===`0.6.39`,package:e,isError:!1}}catch(e){return{isError:!0,error:e instanceof Error?e:Error(String(e))}}}async function P(){if(!r||n||e.SKIP_UPDATE_CHECK)return!1;let t=_(i.data,`update-check.json`);if(y(t)){let e=JSON.parse(await S(t,`utf8`));if(!e.timestamp)return await F(),!0;if((/* @__PURE__ */ new Date()).getTime()-e.timestamp<1296e5)return!1}else return await F(),!0}async function F(){y(i.data)||await x(i.data,{recursive:!0}),await C(_(i.data,`update-check.json`),JSON.stringify({timestamp:(/* @__PURE__ */ new Date()).getTime()}),`utf8`)}async function I(){if(await P()){let e=c({message:`Checking for updates...`}).start(),t=await N({force:!0});if(t?.isError)e.error(`An error occurred while checking for Cyclone User Interface application updates. Please try again later - if the problem persists, please contact support.`),d(t.error);else if(t?.isUpToDate)e.success(`Currently running the latest version of Cyclone User Interface.`),l(``);else{e.stop(),f(`A new version of Cyclone User Interface is available: ${p(`v${t.currentVersion}`)} ${m.body.tertiary(`➜`)} ${o(`v${t.latestVersion}`)}${t.package?.date?m.body.tertiary(` (updated on ${t.package?.date})`):``}`);try{await M(),e.success(`Update successful! Please restart the application to apply the update.`),l(``),s(`The changelog for this release can be viewed by running the ${u(`cyclone-ui changelog`)} command.`),l(``),l(`Press any key to exit the application...`),await h();return}catch(n){e.error(`An error occurred while updating Cyclone User Interface to v${t.latestVersion}. Please try again later - if the problem persists, please contact support.`),d(n)}}}}export{I as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as e,_ as t,h as n,k as r,t as i,w as a}from"./console-
|
|
1
|
+
import{C as e,_ as t,h as n,k as r,t as i,w as a}from"./console-OYOslGRH.mjs";function o(){r(`${i(a.heading.secondary(`Tags: `))} ${a.tags.utility?a.tags.utility(n(` Utility `)):a.tags.default(n(` Utility `))}`,{padding:0}),r(``),r(i(a.heading.secondary(`Usage:`))),r(a.body.secondary(`${a.usage.bin(`>_ cyclone-ui`)} ${a.usage.command(`update`)} ${a.usage.options(`[options]`)}`),{padding:0}),r(a.body.secondary(`${a.usage.bin(`>_ cyclone-ui`)} ${a.usage.command(`upgrade`)} ${a.usage.options(`[options]`)}`),{padding:0}),r(``),r(i(a.heading.secondary(`Options:`))),e([[{value:a.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--latest`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Whether to update to the latest version (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--version <version>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`A specific application version to update to (default: "latest").`),align:`left`,border:`none`}],[{value:a.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: CYCLONE_UI_YES, default: false).`),align:`left`,border:`none`}]]),r(``),r(a.body.tertiary(`More information can be found in the Update command documentation at ${t(`https://docs.cyclone-ui.com/reference/cli/update`)}${a.body.tertiary(`.`)}`),{padding:0}),r(``)}export{o as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as e,_ as t,h as n,k as r,t as i,w as a}from"./console-
|
|
1
|
+
import{C as e,_ as t,h as n,k as r,t as i,w as a}from"./console-BYjL_BgX.mjs";function o(){r(`${i(a.heading.secondary(`Tags: `))} ${a.tags.utility?a.tags.utility(n(` Utility `)):a.tags.default(n(` Utility `))}`,{padding:0}),r(``),r(i(a.heading.secondary(`Usage:`))),r(a.body.secondary(`${a.usage.bin(`>_ cyclone-ui`)} ${a.usage.command(`update`)} ${a.usage.options(`[options]`)}`),{padding:0}),r(a.body.secondary(`${a.usage.bin(`>_ cyclone-ui`)} ${a.usage.command(`upgrade`)} ${a.usage.options(`[options]`)}`),{padding:0}),r(``),r(i(a.heading.secondary(`Options:`))),e([[{value:a.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--latest`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Whether to update to the latest version (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--version <version>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`A specific application version to update to (default: "latest").`),align:`left`,border:`none`}],[{value:a.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: CYCLONE_UI_YES, default: false).`),align:`left`,border:`none`}]]),r(``),r(a.body.tertiary(`More information can be found in the Update command documentation at ${t(`https://docs.cyclone-ui.com/reference/cli/update`)}${a.body.tertiary(`.`)}`),{padding:0}),r(``)}export{o as t};
|