@metabase/cli 0.3.0 → 0.3.1-alpha.support-worktrees.b634907
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-collection-B3Ty8SzB.mjs → add-collection-CxzzDG4z.mjs} +6 -5
- package/dist/{alert-DT-ee7yf.mjs → alert-CQ7Az16h.mjs} +7 -7
- package/dist/{alerts-Bf2RH_p_.mjs → alerts-DmwyyBfW.mjs} +7 -6
- package/dist/{append-DFzQRPMd.mjs → append-B0avMkvW.mjs} +6 -4
- package/dist/{archive-Cd29QC0c.mjs → archive-BPSNe0Ul.mjs} +4 -3
- package/dist/{archive-Dr9Xnx_Z.mjs → archive-BQ50OZ7y.mjs} +6 -5
- package/dist/{archive-B6eXiyER.mjs → archive-BVblae-p.mjs} +4 -3
- package/dist/{archive-C7w49Grr.mjs → archive-BZEu6UfT.mjs} +6 -5
- package/dist/{archive-lQqs13Uz.mjs → archive-CMTHh4-w.mjs} +4 -3
- package/dist/archive-CqOKKrb2.mjs +38 -0
- package/dist/{archive-CwAdlv63.mjs → archive-Cvrkz8F8.mjs} +5 -4
- package/dist/archive-DCjdICg7.mjs +38 -0
- package/dist/{archive-4tmm946K.mjs → archive-DCyeRNfV.mjs} +4 -3
- package/dist/{archive-gid9Y09v.mjs → archive-DFofUIEC.mjs} +4 -3
- package/dist/{archive-ByvA49Kz.mjs → archive-THcEfy9B.mjs} +5 -4
- package/dist/{auth-Dltxua89.mjs → auth-BEEkuu4J.mjs} +5 -5
- package/dist/{body-Cur4NJt9.mjs → body-DxRSAMNC.mjs} +1 -1
- package/dist/branch-BSeGrtP7.mjs +28 -0
- package/dist/{branches-DchlyU0i.mjs → branches-CmWc8NyL.mjs} +4 -3
- package/dist/{cancel-BMQa5R1Z.mjs → cancel-DrQqmxvn.mjs} +4 -3
- package/dist/cancel-task-BMQXtjW5.mjs +34 -0
- package/dist/{card-zyUkr2nS.mjs → card-BEeafd4Y.mjs} +1 -1
- package/dist/{card-DZxRmver.mjs → card-CrBGUkGQ.mjs} +1 -0
- package/dist/card-RlzLDB2z.mjs +24 -0
- package/dist/{cards-SccWvRQD.mjs → cards-M_6X8wCI.mjs} +7 -6
- package/dist/cli.mjs +142 -46
- package/dist/{client-BqhzKdLM.mjs → client-DYD8WZYy.mjs} +241 -75
- package/dist/collection-Bhe20ckt.mjs +20 -0
- package/dist/{collection-CfulNRBG.mjs → collection-BxE7OzcQ.mjs} +6 -3
- package/dist/{collection-CGoVLvcD.mjs → collection-CJHqsFKP.mjs} +1 -1
- package/dist/{collection-namespace-GwydWBF3.mjs → collection-namespace-CEoQ7G08.mjs} +1 -1
- package/dist/content-translation-BrHOrmj9.mjs +5 -0
- package/dist/content-translation-C8MlXPOF.mjs +12 -0
- package/dist/{create-BOLwWt8Q.mjs → create-BA_tTDEk.mjs} +5 -4
- package/dist/{create-DF4QtgDL.mjs → create-BLWwN0uw.mjs} +5 -4
- package/dist/{create-DV-Ln5Mo.mjs → create-BqpkCjx4.mjs} +4 -3
- package/dist/{create-BNQ_DytP.mjs → create-BupBEwR2.mjs} +12 -7
- package/dist/{create-C79vErX0.mjs → create-ByuJ6T4k.mjs} +7 -6
- package/dist/{create-Beh-2uoN.mjs → create-C2XFfbjx.mjs} +4 -3
- package/dist/{create-CCh_LyW9.mjs → create-C7iooS6W.mjs} +14 -8
- package/dist/{create-CAWytBE5.mjs → create-CJ7Am4Gc.mjs} +5 -4
- package/dist/{create-DJmXXQoq.mjs → create-CY-SzM66.mjs} +16 -11
- package/dist/{create-CD008jdE.mjs → create-CoubLR5o.mjs} +8 -7
- package/dist/{create-CAQV2g6V.mjs → create-D0anrINz.mjs} +14 -9
- package/dist/create-DwrhcI8r2.mjs +144 -0
- package/dist/create-branch-B3BMpF1g.mjs +49 -0
- package/dist/{create-i14Wv3Tj.mjs → create-hTc131aX.mjs} +4 -3
- package/dist/{create-tQbnuz-I.mjs → create-ldrghMd1.mjs} +4 -3
- package/dist/{create-CHQx7jq4.mjs → create-myI6doga.mjs} +5 -4
- package/dist/{create-zeveFdnd.mjs → create-z-oMrlfT.mjs} +5 -4
- package/dist/{csv-B2Jgb1GM.mjs → csv-DBNzJiWK.mjs} +6 -4
- package/dist/{current-task-MpBFGttd.mjs → current-task-YzemU0Ic.mjs} +12 -7
- package/dist/{dashboard-BHJBoaG7.mjs → dashboard-B1mpfCq_.mjs} +10 -10
- package/dist/{dashboard-CsIFFpzK.mjs → dashboard-BlbNszi8.mjs} +1 -1
- package/dist/{dashboard-BCpSq_G-.mjs → dashboard-CKUR8ZpQ.mjs} +1 -0
- package/dist/{db-DsfojyeH.mjs → db-1tLH3nYI.mjs} +7 -7
- package/dist/{delete-DFmX7jTp.mjs → delete-CD_-B4Kq.mjs} +5 -4
- package/dist/{delete-BApOjQvl.mjs → delete-CpKH5ia4.mjs} +5 -4
- package/dist/delete-D_OgiI4v.mjs +86 -0
- package/dist/{delete-Ob06PPie.mjs → delete-DjAUp9mk.mjs} +5 -4
- package/dist/{delete-Ck0q4Dzp.mjs → delete-QNgBV6eS.mjs} +10 -5
- package/dist/{delete-B8e01xAG.mjs → delete-eAUB7p-f.mjs} +10 -5
- package/dist/{delete-runtime-D74s6vhu.mjs → delete-runtime-b2_ZMSjj.mjs} +1 -1
- package/dist/{delete-table-DuyhGrvA.mjs → delete-table-DamlxnSO.mjs} +10 -5
- package/dist/dependencies-DEx0BsZ3.mjs +41 -0
- package/dist/dirty-dC1-Ud0G.mjs +40 -0
- package/dist/document-DOJbBWLF.mjs +19 -0
- package/dist/download-C4v7u-AV.mjs +29 -0
- package/dist/{eid-WTZmDdsr.mjs → eid-CP35PdEF.mjs} +4 -3
- package/dist/{events-Bn7jh5lP.mjs → events-DmbzKIh_.mjs} +5 -4
- package/dist/{export-BjfoZRDJ.mjs → export-i8D6laBG.mjs} +25 -12
- package/dist/export-preflight-B5MvYhm3.mjs +67 -0
- package/dist/{field-Zau6Hc6X.mjs → field-BKn9bt7I.mjs} +5 -5
- package/dist/{fields-CBBa-Prp.mjs → fields-8_p81BqN.mjs} +5 -4
- package/dist/{get-DdsoHaKH.mjs → get-B0g6VMBC.mjs} +4 -3
- package/dist/{get-DRvsATp-.mjs → get-BBOfshz1.mjs} +4 -3
- package/dist/{get-CDMGbgrh.mjs → get-BHGgXqUq.mjs} +4 -3
- package/dist/{get-Dn9ZiSZr.mjs → get-BbHPFNqr.mjs} +4 -3
- package/dist/{get-CnbUCzDM.mjs → get-Bds6Izxk.mjs} +4 -3
- package/dist/{get-B7sMgsFs.mjs → get-BvW21ujw.mjs} +4 -3
- package/dist/{get-Dmj9Ygz1.mjs → get-CAzSP-7o.mjs} +4 -3
- package/dist/{get-CvI--9S_.mjs → get-CNEQK0-9.mjs} +5 -4
- package/dist/{get-D_h-G9bn.mjs → get-CPTbySa7.mjs} +4 -3
- package/dist/{get-B_xdF1kq.mjs → get-CWf46UFu.mjs} +6 -5
- package/dist/get-Cfagmy1i.mjs +42 -0
- package/dist/{get-CDJFVvhj.mjs → get-DFkbi5L3.mjs} +3 -2
- package/dist/{get-DYO1kywc.mjs → get-DnCE7K0y.mjs} +5 -4
- package/dist/{get-DY03Azx9.mjs → get-DvLuY5Xu.mjs} +17 -9
- package/dist/get-DwdMvWXU.mjs +44 -0
- package/dist/{get-DmpB6J9g.mjs → get-N4dOaTsp.mjs} +5 -4
- package/dist/get-jV8G90Zy.mjs +42 -0
- package/dist/get-mGEv-kag.mjs +33 -0
- package/dist/{get-run-Cnux9ln0.mjs → get-run-4Ng8_awa.mjs} +6 -5
- package/dist/{get-Bz99dAxK.mjs → get-vrccOMBk.mjs} +6 -5
- package/dist/{get-00lyLv6R.mjs → get-vvs0qzzM.mjs} +4 -3
- package/dist/{git-sync-BDnxPrqU.mjs → git-sync-DLzJrdMi.mjs} +22 -3
- package/dist/git-sync-DjoaNmRM.mjs +29 -0
- package/dist/{git-sync-DxD_ng48.mjs → git-sync-LQIVMNxO.mjs} +31 -2
- package/dist/{group-DBM87IgC.mjs → group-YN6jj2AN.mjs} +3 -2
- package/dist/{has-remote-changes-C684Redh.mjs → has-remote-changes-BXPGI9xG.mjs} +14 -6
- package/dist/{import-Rmmttboo.mjs → import-BoxOkA-G.mjs} +28 -11
- package/dist/{is-dirty-DYeJYhBz.mjs → is-dirty-Cwxq4_gd.mjs} +15 -6
- package/dist/{items-CQlPXBXE.mjs → items-Cv6iAzrI.mjs} +17 -9
- package/dist/{library-Bsm5KsFF.mjs → library-CRaOhJnj.mjs} +5 -5
- package/dist/{library-ClLgrAXy.mjs → library-Cfw6eF35.mjs} +1 -1
- package/dist/{library-DfYAT2Ep.mjs → library-fhVn1KDC.mjs} +1 -1
- package/dist/{list-CMpoc2TN.mjs → list--2T-GUEF.mjs} +5 -4
- package/dist/list-5Iojbr_p.mjs +37 -0
- package/dist/{list-CNUiF8Z7.mjs → list-9uvk9dIA.mjs} +4 -3
- package/dist/{list-CQwOgIlj.mjs → list-BBp9XjYs.mjs} +4 -3
- package/dist/list-BD4onDqO.mjs +37 -0
- package/dist/{list-BpFp9Wre.mjs → list-BLJkJp5a.mjs} +4 -3
- package/dist/{list-BtmsNOEn.mjs → list-BwkfWtP2.mjs} +4 -3
- package/dist/list-C2yL7-CH.mjs +45 -0
- package/dist/{list-BP3MPq-M.mjs → list-C8J3n8B8.mjs} +4 -3
- package/dist/list-CbbKip6U.mjs +32 -0
- package/dist/{list-UhpKG6_m.mjs → list-CtZAu4im.mjs} +5 -4
- package/dist/{list-BtkWNtvY.mjs → list-DOZNpX4b.mjs} +5 -4
- package/dist/{list-DF2rvoO1.mjs → list-DOaWCx8S.mjs} +18 -9
- package/dist/list-Dg2XeDON.mjs +47 -0
- package/dist/{list-CQDprvW0.mjs → list-DhrapAcy.mjs} +6 -5
- package/dist/{list-BzVTHOoH.mjs → list-L2U1l6R4.mjs} +4 -3
- package/dist/{list-DE9FM957.mjs → list-WSJLnunb.mjs} +4 -3
- package/dist/{list-B4hJuMhA.mjs → list-oAAgU5uE.mjs} +16 -9
- package/dist/{list-B8nAGwP4.mjs → list-tutXEQRW.mjs} +5 -4
- package/dist/{login-CGHeSjlP.mjs → login-DqWRF3Og.mjs} +6 -5
- package/dist/{logout-DAxOlbv4.mjs → logout-ChCz1bkf.mjs} +3 -2
- package/dist/{measure-BsYv0p26.mjs → measure-C5dIdFj1.mjs} +6 -6
- package/dist/{network-error-CEb9ymDW.mjs → network-error-D6CiOEBw.mjs} +10 -2
- package/dist/{notification-Fcq1fIPw.mjs → notification-DVrLkjFT.mjs} +1 -1
- package/dist/{parameter-values-CJTdqd8c.mjs → parameter-values-Dy4cBs5y.mjs} +4 -3
- package/dist/{parse-id-C_jmKFaa.mjs → parse-id-DDCn3VXx.mjs} +1 -1
- package/dist/{parse-ref-ibKVB0J4.mjs → parse-ref-Wv21Roup.mjs} +6 -2
- package/dist/{path-B5gHvrYL.mjs → path-IYhuzjQV.mjs} +5 -4
- package/dist/pin-BuZ_kg-u.mjs +62 -0
- package/dist/{preflight-YpPQo-sa.mjs → preflight-HLUVr2Yf.mjs} +2 -2
- package/dist/{publish-DijrxaCW.mjs → publish-CMkCSt8i.mjs} +5 -4
- package/dist/{pulse-DhG6I9mI.mjs → pulse-a-83M4DV.mjs} +1 -1
- package/dist/{query-BbqECzmF.mjs → query-Bka77J62.mjs} +9 -13
- package/dist/{query-result-DBDwk8TS.mjs → query-result-E4Q-Gra6.mjs} +1 -1
- package/dist/{query-Dc__-KJH.mjs → query-tWQAV9pb.mjs} +8 -7
- package/dist/{remove-collection-BOnxYvhj.mjs → remove-collection-BV9wRQZD.mjs} +6 -5
- package/dist/{render-CI93iP0I.mjs → render-DHjCcUXn.mjs} +7 -1
- package/dist/{replace-Cq4CxVa-.mjs → replace-mt47dlRV.mjs} +6 -4
- package/dist/{rescan-values-Dr_j416g.mjs → rescan-values-6cRjcpTs.mjs} +4 -3
- package/dist/{run-DdGJ544X.mjs → run-BmGmC-GQ.mjs} +4 -3
- package/dist/{run-C3DkS6NP.mjs → run-DI_pDxji.mjs} +6 -5
- package/dist/{runs-CUNWiidL.mjs → runs-9Fu0mug5.mjs} +7 -6
- package/dist/{runtime-DiKyBxOw.mjs → runtime-CNAZ_FuR.mjs} +104 -9
- package/dist/{schema-tables-CV386fnC.mjs → schema-tables-CLG0mtQb.mjs} +5 -4
- package/dist/{schemas-DM-UqZBQ.mjs → schemas-Cm5NWy59.mjs} +5 -4
- package/dist/scope-DsGuWG5w.mjs +11 -0
- package/dist/{search-DmGScXs8.mjs → search-CljYyf2F.mjs} +14 -8
- package/dist/{segment-BzUGM2Fr.mjs → segment-IRzlQggt.mjs} +6 -6
- package/dist/{selectors-DGDn0Hto.mjs → selectors-D4iOP5uB.mjs} +2 -2
- package/dist/{send-CVxxEpDB.mjs → send-D7DBnQbu.mjs} +4 -3
- package/dist/{set-DFolTjbd.mjs → set-DKN8fuC6.mjs} +4 -3
- package/dist/{set-active-BD8L1lPX.mjs → set-active-CkE0Eiqh.mjs} +3 -2
- package/dist/{setting-DyhaeICs.mjs → setting-CN4l8N-b.mjs} +4 -4
- package/dist/{setup-BbDQN8fe.mjs → setup-BpTptmdO.mjs} +4 -3
- package/dist/{skills--vK6J-e4.mjs → skills-BSAiLI3Z.mjs} +3 -3
- package/dist/{skills-DTCrMcix.mjs → skills-hVKSOCUf.mjs} +1 -1
- package/dist/{snippet-CyKAgIZl.mjs → snippet-BxgvQ09J.mjs} +5 -2
- package/dist/{snippet-oJLaYW9V.mjs → snippet-DecHB4Dn.mjs} +1 -1
- package/dist/snippet-LlHz3FdJ.mjs +19 -0
- package/dist/{stash-D0S4JmAz.mjs → stash-DJs6A6BA.mjs} +7 -6
- package/dist/{status-BhswxJL1.mjs → status-DtwBDRtc.mjs} +44 -16
- package/dist/{status-hL1am-HV.mjs → status-N_2EaWb7.mjs} +16 -7
- package/dist/stream-McixcoUl.mjs +7 -0
- package/dist/{subscription-_d5fB45F.mjs → subscription-BnGDp1oy.mjs} +6 -6
- package/dist/{subscriptions-s4TF6Ax3.mjs → subscriptions-BfFwV__x.mjs} +7 -6
- package/dist/{summary-CsPvcUwW.mjs → summary-CHiq-4mz.mjs} +4 -3
- package/dist/{sync-schema-DaZ_MV-u.mjs → sync-schema-DhnM-rpm.mjs} +5 -4
- package/dist/{sync-task-BACcrs0i.mjs → sync-task-G1K47Nvn.mjs} +1 -1
- package/dist/{table-DYoC1kPn.mjs → table-BQaiCSNS.mjs} +5 -5
- package/dist/timeline-C2VW0Ph6.mjs +21 -0
- package/dist/{timeline-event-CNQdCTDg.mjs → timeline-event-B7H1y8s8.mjs} +6 -6
- package/dist/{transform-D3QX0jxA.mjs → transform-BvOEn41C.mjs} +4 -1
- package/dist/{transform-DoTyyXAu.mjs → transform-CiDOJGBW.mjs} +2 -2
- package/dist/transform-DAf0Y02t.mjs +28 -0
- package/dist/transform-job-ntiT5Rrh.mjs +22 -0
- package/dist/{transform-tag-Dmb4u3-Q.mjs → transform-tag-DiXWRCQG.mjs} +1 -1
- package/dist/{transform-tag-_tgwlsdB.mjs → transform-tag-Dip51YBa.mjs} +5 -5
- package/dist/{transform-tag-CcElGp3C.mjs → transform-tag-jBVd6wXd.mjs} +9 -4
- package/dist/{transforms-oU4zizbO.mjs → transforms-C-jYgS6z.mjs} +7 -6
- package/dist/tree-DtyJhD54.mjs +36 -0
- package/dist/unpin-DxbXmLtW.mjs +45 -0
- package/dist/{unpublish-BUl9RU5C.mjs → unpublish-BokbnLng.mjs} +4 -3
- package/dist/{update-BiFDBcEH.mjs → update-AZSXMJqu.mjs} +14 -8
- package/dist/{update-BCS5FxKr.mjs → update-B9DcRSBQ.mjs} +18 -12
- package/dist/{update-bD_Jh5-s.mjs → update-BBQInyiJ.mjs} +6 -5
- package/dist/{update-BzMDeZiU.mjs → update-BCGE5UYC.mjs} +6 -5
- package/dist/{update-tX9mKBN_.mjs → update-BErxnZrj.mjs} +9 -8
- package/dist/{update-C4YJQFDS.mjs → update-BRXKLeJH.mjs} +5 -4
- package/dist/{update-cYkvbqK8.mjs → update-Bc8s1TL1.mjs} +5 -4
- package/dist/{update-BZPllQoR.mjs → update-C4PbAYgW.mjs} +5 -4
- package/dist/{update-CVPAwJaH.mjs → update-CKL2FtoX.mjs} +6 -5
- package/dist/{update-Nfi44RrE.mjs → update-CPEU8ZEu.mjs} +6 -5
- package/dist/{update-CmDTljK-.mjs → update-CfQoYVTc.mjs} +5 -4
- package/dist/{update-CO4m4wH3.mjs → update-CpLEEbiJ.mjs} +8 -7
- package/dist/{update-D-NE60AV.mjs → update-D9OTkZhw.mjs} +5 -4
- package/dist/{update-dashcard-C3TuYO_k.mjs → update-dashcard-St-dGcE3.mjs} +7 -6
- package/dist/{update-CHNSUHK4.mjs → update-e7lyQPxq.mjs} +14 -8
- package/dist/{update-CvOO8TED.mjs → update-rkbpH0lF.mjs} +5 -4
- package/dist/{upgrade-DXMV4AyP.mjs → upgrade-CUoRHfVg.mjs} +4 -3
- package/dist/upload-BPd1Uzxc.mjs +43 -0
- package/dist/upload-C3z5ZaXA.mjs +24 -0
- package/dist/{upload-CH632qW6.mjs → upload-CD555ui1.mjs} +1 -24
- package/dist/upload-Dc3QLhZw.mjs +13 -0
- package/dist/{uuid-BJkDWj9p.mjs → uuid-CFN8LIkP.mjs} +3 -2
- package/dist/{validate-query-DaGYSmpQ.mjs → validate-query-Chc43ezW.mjs} +1 -1
- package/dist/{values-Dxf1JEoA.mjs → values-BL_U-Zdw.mjs} +4 -3
- package/dist/{verify-K96rItG5.mjs → verify-DnBaRmkI.mjs} +3 -3
- package/dist/{wait-flags-DWEF9tX4.mjs → wait-flags-DzytMEG8.mjs} +2 -2
- package/dist/{wait-DoMDH226.mjs → wait-mPoOZxrw.mjs} +12 -7
- package/dist/{window-BkvrP0gB.mjs → window-DSb1tqSe.mjs} +1 -1
- package/dist/worktree-ChdDlG3Q.mjs +25 -0
- package/dist/worktree-DC0kTxxQ.mjs +20 -0
- package/dist/worktree-xAro1xAB.mjs +24 -0
- package/package.json +1 -1
- package/skill-data/core/SKILL.md +17 -14
- package/skill-data/dashboard/SKILL.md +2 -2
- package/skill-data/git-sync/SKILL.md +91 -1
- package/skill-data/transform/SKILL.md +9 -1
- package/dist/archive-BxNPHxOY.mjs +0 -32
- package/dist/archive-ChORH5JH.mjs +0 -32
- package/dist/cancel-task-C5CU1pxU.mjs +0 -28
- package/dist/card-CHI2bmds.mjs +0 -24
- package/dist/collection-CY0AB99E.mjs +0 -20
- package/dist/create-branch-CYo6jZth.mjs +0 -35
- package/dist/dependencies-Bj3QrGIm.mjs +0 -36
- package/dist/dirty-DNYoM6Bp.mjs +0 -31
- package/dist/document-BbskZPTT.mjs +0 -19
- package/dist/get-ByBOq30r.mjs +0 -31
- package/dist/get-C2-Q3iQ5.mjs +0 -31
- package/dist/get-DkWO0EI0.mjs +0 -36
- package/dist/git-sync-MQQYRYLg.mjs +0 -28
- package/dist/list-BOET6zhP.mjs +0 -36
- package/dist/list-C5Zs8nrb.mjs +0 -28
- package/dist/list-CKK-s3Ty.mjs +0 -28
- package/dist/list-DMKDsBRd.mjs +0 -38
- package/dist/snippet-DRwKb2x7.mjs +0 -19
- package/dist/timeline-xlDbEKWg.mjs +0 -21
- package/dist/transform-Bs0EWijQ.mjs +0 -28
- package/dist/transform-job-BcLChRup.mjs +0 -22
- package/dist/tree-CH-f3bjP.mjs +0 -27
- package/dist/upload-Dey_8rLf.mjs +0 -13
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as parseId } from "./parse-id-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { H as profileFlag, R as connectionFlags, V as outputFlags, p as renderSummary } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-CNAZ_FuR.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-DDCn3VXx.mjs";
|
|
4
|
+
import { c as SyncSettingsUpdateResult } from "./git-sync-DLzJrdMi.mjs";
|
|
5
|
+
import { s as syncSettingsUpdateView } from "./git-sync-LQIVMNxO.mjs";
|
|
6
6
|
//#region src/commands/git-sync/add-collection.ts
|
|
7
7
|
var add_collection_default = defineMetabaseCommand({
|
|
8
8
|
meta: {
|
|
@@ -13,6 +13,7 @@ var add_collection_default = defineMetabaseCommand({
|
|
|
13
13
|
minVersion: 60,
|
|
14
14
|
tokenFeature: "remote_sync"
|
|
15
15
|
},
|
|
16
|
+
worktree: "main-only",
|
|
16
17
|
args: {
|
|
17
18
|
...outputFlags,
|
|
18
19
|
...profileFlag,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as defineCommandGroup } from "./group-
|
|
1
|
+
import { t as defineCommandGroup } from "./group-YN6jj2AN.mjs";
|
|
2
2
|
//#region src/commands/alert/index.ts
|
|
3
3
|
var alert_default = defineCommandGroup({
|
|
4
4
|
name: "alert",
|
|
@@ -11,12 +11,12 @@ var alert_default = defineCommandGroup({
|
|
|
11
11
|
purpose: "the card an alert watches and how to find its id"
|
|
12
12
|
}],
|
|
13
13
|
subCommands: {
|
|
14
|
-
list: () => import("./list-
|
|
15
|
-
get: () => import("./get-
|
|
16
|
-
create: () => import("./create-
|
|
17
|
-
update: () => import("./update-
|
|
18
|
-
send: () => import("./send-
|
|
19
|
-
archive: () => import("./archive-
|
|
14
|
+
list: () => import("./list--2T-GUEF.mjs").then((mod) => mod.default),
|
|
15
|
+
get: () => import("./get-DnCE7K0y.mjs").then((mod) => mod.default),
|
|
16
|
+
create: () => import("./create-myI6doga.mjs").then((mod) => mod.default),
|
|
17
|
+
update: () => import("./update-BBQInyiJ.mjs").then((mod) => mod.default),
|
|
18
|
+
send: () => import("./send-D7DBnQbu.mjs").then((mod) => mod.default),
|
|
19
|
+
archive: () => import("./archive-THcEfy9B.mjs").then((mod) => mod.default)
|
|
20
20
|
}
|
|
21
21
|
});
|
|
22
22
|
//#endregion
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as notificationView } from "./notification-
|
|
3
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import { t as parseId } from "./parse-id-
|
|
5
|
-
import { n as windowList } from "./window-
|
|
6
|
-
import { AlertListEnvelope } from "./list-
|
|
1
|
+
import { H as profileFlag, R as connectionFlags, V as outputFlags, f as renderList, z as listFlags } from "./cli.mjs";
|
|
2
|
+
import { t as notificationView } from "./notification-DVrLkjFT.mjs";
|
|
3
|
+
import { t as defineMetabaseCommand } from "./runtime-CNAZ_FuR.mjs";
|
|
4
|
+
import { t as parseId } from "./parse-id-DDCn3VXx.mjs";
|
|
5
|
+
import { n as windowList } from "./window-DSb1tqSe.mjs";
|
|
6
|
+
import { AlertListEnvelope } from "./list--2T-GUEF.mjs";
|
|
7
7
|
//#region src/commands/card/alerts.ts
|
|
8
8
|
var alerts_default = defineMetabaseCommand({
|
|
9
9
|
meta: {
|
|
@@ -12,6 +12,7 @@ var alerts_default = defineMetabaseCommand({
|
|
|
12
12
|
},
|
|
13
13
|
details: "Manage them with `mb alert create|update|send|archive`, which take the alert id printed here.",
|
|
14
14
|
capabilities: { minVersion: 58 },
|
|
15
|
+
worktree: "any",
|
|
15
16
|
args: {
|
|
16
17
|
...outputFlags,
|
|
17
18
|
...listFlags,
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as parseId } from "./parse-id-
|
|
1
|
+
import { H as profileFlag, R as connectionFlags, V as outputFlags, p as renderSummary } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-CNAZ_FuR.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-DDCn3VXx.mjs";
|
|
4
4
|
import { n as UploadUpdateResult } from "./upload-DAtxBBms.mjs";
|
|
5
|
-
import {
|
|
5
|
+
import { n as requireUploadFilePath, t as readCsvFile } from "./upload-CD555ui1.mjs";
|
|
6
|
+
import { n as uploadUpdateResultView } from "./upload-C3z5ZaXA.mjs";
|
|
6
7
|
//#region src/commands/upload/append.ts
|
|
7
8
|
var append_default = defineMetabaseCommand({
|
|
8
9
|
meta: {
|
|
@@ -11,6 +12,7 @@ var append_default = defineMetabaseCommand({
|
|
|
11
12
|
},
|
|
12
13
|
details: "Inserts the rows of the CSV into the table with the given id. The table must have been created by a CSV upload and the CSV columns must match.",
|
|
13
14
|
capabilities: { minVersion: 58 },
|
|
15
|
+
worktree: "main-only",
|
|
14
16
|
args: {
|
|
15
17
|
...outputFlags,
|
|
16
18
|
...profileFlag,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as parseId } from "./parse-id-
|
|
1
|
+
import { H as profileFlag, R as connectionFlags, V as outputFlags, p as renderSummary } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-CNAZ_FuR.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-DDCn3VXx.mjs";
|
|
4
4
|
import { t as Timeline } from "./timeline-CCSU2qOS.mjs";
|
|
5
5
|
import { n as timelineView } from "./timeline-uDCmwGFT.mjs";
|
|
6
6
|
//#region src/commands/timeline/archive.ts
|
|
@@ -10,6 +10,7 @@ var archive_default = defineMetabaseCommand({
|
|
|
10
10
|
description: "Archive (soft-delete) a timeline and all its events by id"
|
|
11
11
|
},
|
|
12
12
|
capabilities: { minVersion: 58 },
|
|
13
|
+
worktree: "main-only",
|
|
13
14
|
args: {
|
|
14
15
|
...outputFlags,
|
|
15
16
|
...profileFlag,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as parseId } from "./parse-id-
|
|
4
|
-
import { t as Dashboard } from "./dashboard-
|
|
5
|
-
import { t as dashboardView } from "./dashboard-
|
|
1
|
+
import { H as profileFlag, R as connectionFlags, V as outputFlags, p as renderSummary } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-CNAZ_FuR.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-DDCn3VXx.mjs";
|
|
4
|
+
import { t as Dashboard } from "./dashboard-CKUR8ZpQ.mjs";
|
|
5
|
+
import { t as dashboardView } from "./dashboard-BlbNszi8.mjs";
|
|
6
6
|
//#region src/commands/dashboard/archive.ts
|
|
7
7
|
var archive_default = defineMetabaseCommand({
|
|
8
8
|
meta: {
|
|
@@ -10,6 +10,7 @@ var archive_default = defineMetabaseCommand({
|
|
|
10
10
|
description: "Archive (soft-delete) a dashboard by id"
|
|
11
11
|
},
|
|
12
12
|
capabilities: { minVersion: 58 },
|
|
13
|
+
worktree: "main-only",
|
|
13
14
|
args: {
|
|
14
15
|
...outputFlags,
|
|
15
16
|
...profileFlag,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as parseId } from "./parse-id-
|
|
1
|
+
import { H as profileFlag, R as connectionFlags, V as outputFlags, p as renderSummary } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-CNAZ_FuR.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-DDCn3VXx.mjs";
|
|
4
4
|
import { i as TimelineEvent } from "./timeline-CCSU2qOS.mjs";
|
|
5
5
|
import { t as timelineEventView } from "./timeline-uDCmwGFT.mjs";
|
|
6
6
|
//#region src/commands/timeline-event/archive.ts
|
|
@@ -10,6 +10,7 @@ var archive_default = defineMetabaseCommand({
|
|
|
10
10
|
description: "Archive (soft-delete) a timeline event by id"
|
|
11
11
|
},
|
|
12
12
|
capabilities: { minVersion: 58 },
|
|
13
|
+
worktree: "main-only",
|
|
13
14
|
args: {
|
|
14
15
|
...outputFlags,
|
|
15
16
|
...profileFlag,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as parseId } from "./parse-id-
|
|
4
|
-
import { t as Card } from "./card-
|
|
5
|
-
import { n as cardView } from "./card-
|
|
1
|
+
import { H as profileFlag, R as connectionFlags, V as outputFlags, p as renderSummary } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-CNAZ_FuR.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-DDCn3VXx.mjs";
|
|
4
|
+
import { t as Card } from "./card-CrBGUkGQ.mjs";
|
|
5
|
+
import { n as cardView } from "./card-BEeafd4Y.mjs";
|
|
6
6
|
//#region src/commands/card/archive.ts
|
|
7
7
|
var archive_default = defineMetabaseCommand({
|
|
8
8
|
meta: {
|
|
@@ -10,6 +10,7 @@ var archive_default = defineMetabaseCommand({
|
|
|
10
10
|
description: "Archive (soft-delete) a card by id"
|
|
11
11
|
},
|
|
12
12
|
capabilities: { minVersion: 58 },
|
|
13
|
+
worktree: "main-only",
|
|
13
14
|
args: {
|
|
14
15
|
...outputFlags,
|
|
15
16
|
...profileFlag,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as parseId } from "./parse-id-
|
|
1
|
+
import { H as profileFlag, R as connectionFlags, V as outputFlags, p as renderSummary } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-CNAZ_FuR.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-DDCn3VXx.mjs";
|
|
4
4
|
import { t as Document } from "./document-Cd2mmqCp.mjs";
|
|
5
5
|
import { t as documentView } from "./document-D6OybtP2.mjs";
|
|
6
6
|
//#region src/commands/document/archive.ts
|
|
@@ -10,6 +10,7 @@ var archive_default = defineMetabaseCommand({
|
|
|
10
10
|
description: "Archive (soft-delete) a document by id"
|
|
11
11
|
},
|
|
12
12
|
capabilities: { minVersion: 58 },
|
|
13
|
+
worktree: "main-only",
|
|
13
14
|
args: {
|
|
14
15
|
...outputFlags,
|
|
15
16
|
...profileFlag,
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { H as profileFlag, R as connectionFlags, U as worktreeFlag, V as outputFlags, p as renderSummary } from "./cli.mjs";
|
|
2
|
+
import { i as assertInWorktree, r as WORKTREE_SCOPE_DETAIL, t as defineMetabaseCommand } from "./runtime-CNAZ_FuR.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-DDCn3VXx.mjs";
|
|
4
|
+
import { t as Snippet } from "./snippet-BxgvQ09J.mjs";
|
|
5
|
+
import { t as snippetView } from "./snippet-DecHB4Dn.mjs";
|
|
6
|
+
//#region src/commands/snippet/archive.ts
|
|
7
|
+
var archive_default = defineMetabaseCommand({
|
|
8
|
+
meta: {
|
|
9
|
+
name: "archive",
|
|
10
|
+
description: "Archive (soft-delete) a native query snippet by id"
|
|
11
|
+
},
|
|
12
|
+
capabilities: { minVersion: 58 },
|
|
13
|
+
worktree: "scoped",
|
|
14
|
+
details: WORKTREE_SCOPE_DETAIL,
|
|
15
|
+
args: {
|
|
16
|
+
...outputFlags,
|
|
17
|
+
...profileFlag,
|
|
18
|
+
...connectionFlags,
|
|
19
|
+
...worktreeFlag,
|
|
20
|
+
id: {
|
|
21
|
+
type: "positional",
|
|
22
|
+
description: "Snippet id",
|
|
23
|
+
required: true
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
outputSchema: Snippet,
|
|
27
|
+
examples: ["mb snippet archive 1", "mb snippet archive 1 --json"],
|
|
28
|
+
async run({ args, ctx, getClient, getWorktree }) {
|
|
29
|
+
const id = parseId(args.id);
|
|
30
|
+
const client = await getClient();
|
|
31
|
+
const scope = await getWorktree();
|
|
32
|
+
if (scope !== null) assertInWorktree("snippet", id, (await client.snippet.get(id)).worktree_id, scope);
|
|
33
|
+
const updated = await client.snippet.archive(id);
|
|
34
|
+
renderSummary(updated, snippetView, `Archived snippet ${updated.id} "${updated.name}".`, ctx);
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
//#endregion
|
|
38
|
+
export { archive_default as default };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as parseId } from "./parse-id-
|
|
1
|
+
import { H as profileFlag, R as connectionFlags, V as outputFlags, p as renderSummary } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-CNAZ_FuR.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-DDCn3VXx.mjs";
|
|
4
4
|
import { t as Pulse } from "./pulse-BmsDenXm.mjs";
|
|
5
|
-
import { t as pulseView } from "./pulse-
|
|
5
|
+
import { t as pulseView } from "./pulse-a-83M4DV.mjs";
|
|
6
6
|
//#region src/commands/subscription/archive.ts
|
|
7
7
|
var archive_default = defineMetabaseCommand({
|
|
8
8
|
meta: {
|
|
@@ -11,6 +11,7 @@ var archive_default = defineMetabaseCommand({
|
|
|
11
11
|
},
|
|
12
12
|
details: "Archiving also disables every channel on the subscription. Restore it with `mb subscription update <id> --body '{\"archived\":false}'`, then re-enable its channels.",
|
|
13
13
|
capabilities: { minVersion: 58 },
|
|
14
|
+
worktree: "main-only",
|
|
14
15
|
args: {
|
|
15
16
|
...outputFlags,
|
|
16
17
|
...profileFlag,
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { H as profileFlag, R as connectionFlags, U as worktreeFlag, V as outputFlags, p as renderSummary } from "./cli.mjs";
|
|
2
|
+
import { i as assertInWorktree, r as WORKTREE_SCOPE_DETAIL, t as defineMetabaseCommand } from "./runtime-CNAZ_FuR.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-DDCn3VXx.mjs";
|
|
4
|
+
import { r as Collection } from "./collection-BxE7OzcQ.mjs";
|
|
5
|
+
import { n as collectionView } from "./collection-CJHqsFKP.mjs";
|
|
6
|
+
//#region src/commands/collection/archive.ts
|
|
7
|
+
var archive_default = defineMetabaseCommand({
|
|
8
|
+
meta: {
|
|
9
|
+
name: "archive",
|
|
10
|
+
description: "Archive (soft-delete) a collection by id"
|
|
11
|
+
},
|
|
12
|
+
capabilities: { minVersion: 58 },
|
|
13
|
+
worktree: "scoped",
|
|
14
|
+
details: WORKTREE_SCOPE_DETAIL,
|
|
15
|
+
args: {
|
|
16
|
+
...outputFlags,
|
|
17
|
+
...profileFlag,
|
|
18
|
+
...connectionFlags,
|
|
19
|
+
...worktreeFlag,
|
|
20
|
+
id: {
|
|
21
|
+
type: "positional",
|
|
22
|
+
description: "Collection id",
|
|
23
|
+
required: true
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
outputSchema: Collection,
|
|
27
|
+
examples: ["mb collection archive 4", "mb collection archive 4 --json"],
|
|
28
|
+
async run({ args, ctx, getClient, getWorktree }) {
|
|
29
|
+
const id = parseId(args.id);
|
|
30
|
+
const client = await getClient();
|
|
31
|
+
const scope = await getWorktree();
|
|
32
|
+
if (scope !== null) assertInWorktree("collection", id, (await client.collection.get(id)).worktree_id, scope);
|
|
33
|
+
const updated = await client.collection.archive(id);
|
|
34
|
+
renderSummary(updated, collectionView, `Archived collection ${updated.id} "${updated.name}".`, ctx);
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
//#endregion
|
|
38
|
+
export { archive_default as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as parseId } from "./parse-id-
|
|
1
|
+
import { H as profileFlag, R as connectionFlags, V as outputFlags, p as renderSummary } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-CNAZ_FuR.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-DDCn3VXx.mjs";
|
|
4
4
|
import { t as Measure } from "./measure-CtfjqJFP.mjs";
|
|
5
5
|
import { t as measureView } from "./measure-4P0bOlZ3.mjs";
|
|
6
6
|
import { t as revisionMessageFlag } from "./revision-message-flag-8TCHYJV6.mjs";
|
|
@@ -11,6 +11,7 @@ var archive_default = defineMetabaseCommand({
|
|
|
11
11
|
description: "Archive (soft-delete) a measure by id"
|
|
12
12
|
},
|
|
13
13
|
capabilities: { minVersion: 59 },
|
|
14
|
+
worktree: "main-only",
|
|
14
15
|
args: {
|
|
15
16
|
...outputFlags,
|
|
16
17
|
...profileFlag,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as parseId } from "./parse-id-
|
|
1
|
+
import { H as profileFlag, R as connectionFlags, V as outputFlags, p as renderSummary } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-CNAZ_FuR.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-DDCn3VXx.mjs";
|
|
4
4
|
import { t as Segment } from "./segment-OsrbUDzw.mjs";
|
|
5
5
|
import { t as revisionMessageFlag } from "./revision-message-flag-8TCHYJV6.mjs";
|
|
6
6
|
import { t as segmentView } from "./segment-C_gl5ag6.mjs";
|
|
@@ -11,6 +11,7 @@ var archive_default = defineMetabaseCommand({
|
|
|
11
11
|
description: "Archive (soft-delete) a segment by id"
|
|
12
12
|
},
|
|
13
13
|
capabilities: { minVersion: 58 },
|
|
14
|
+
worktree: "main-only",
|
|
14
15
|
args: {
|
|
15
16
|
...outputFlags,
|
|
16
17
|
...profileFlag,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { H as profileFlag, R as connectionFlags, V as outputFlags, p as renderSummary } from "./cli.mjs";
|
|
2
2
|
import { n as Notification } from "./notification-DaA4bBHW.mjs";
|
|
3
|
-
import { t as notificationView } from "./notification-
|
|
4
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
5
|
-
import { t as parseId } from "./parse-id-
|
|
3
|
+
import { t as notificationView } from "./notification-DVrLkjFT.mjs";
|
|
4
|
+
import { t as defineMetabaseCommand } from "./runtime-CNAZ_FuR.mjs";
|
|
5
|
+
import { t as parseId } from "./parse-id-DDCn3VXx.mjs";
|
|
6
6
|
import { t as describeAlert } from "./summary-BytbDz6e.mjs";
|
|
7
7
|
//#region src/commands/alert/archive.ts
|
|
8
8
|
var archive_default = defineMetabaseCommand({
|
|
@@ -12,6 +12,7 @@ var archive_default = defineMetabaseCommand({
|
|
|
12
12
|
},
|
|
13
13
|
details: "Deactivates the alert and drops its scheduled trigger. `mb alert list --include-inactive` still shows it, and `mb alert update <id> --body '{\"active\":true}'` brings it back.",
|
|
14
14
|
capabilities: { minVersion: 58 },
|
|
15
|
+
worktree: "main-only",
|
|
15
16
|
args: {
|
|
16
17
|
...outputFlags,
|
|
17
18
|
...profileFlag,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as defineCommandGroup } from "./group-
|
|
1
|
+
import { t as defineCommandGroup } from "./group-YN6jj2AN.mjs";
|
|
2
2
|
//#region src/commands/auth/index.ts
|
|
3
3
|
var auth_default = defineCommandGroup({
|
|
4
4
|
name: "auth",
|
|
@@ -9,10 +9,10 @@ var auth_default = defineCommandGroup({
|
|
|
9
9
|
purpose: "authentication and named profiles"
|
|
10
10
|
}],
|
|
11
11
|
subCommands: {
|
|
12
|
-
login: () => import("./login-
|
|
13
|
-
status: () => import("./status-
|
|
14
|
-
list: () => import("./list-
|
|
15
|
-
logout: () => import("./logout-
|
|
12
|
+
login: () => import("./login-DqWRF3Og.mjs").then((m) => m.default),
|
|
13
|
+
status: () => import("./status-N_2EaWb7.mjs").then((m) => m.default),
|
|
14
|
+
list: () => import("./list-DOaWCx8S.mjs").then((m) => m.default),
|
|
15
|
+
logout: () => import("./logout-ChCz1bkf.mjs").then((m) => m.default)
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
18
|
//#endregion
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as ConfigError } from "./predicates-Bkm2IoeX.mjs";
|
|
2
|
-
import { h as parseJson } from "./network-error-
|
|
2
|
+
import { h as parseJson } from "./network-error-D6CiOEBw.mjs";
|
|
3
3
|
import { r as readInput, t as DEFAULT_FLAG_NAME } from "./input-DH9i67x_.mjs";
|
|
4
4
|
//#region src/runtime/body.ts
|
|
5
5
|
async function readBody(sources, schema) {
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { i as ConfigError } from "./predicates-Bkm2IoeX.mjs";
|
|
2
|
+
//#region src/commands/git-sync/branch.ts
|
|
3
|
+
const BRANCH_PINNED_REFUSAL = "a worktree is pinned to its branch; drop --branch";
|
|
4
|
+
const BRANCH_UNSET_REFUSAL = "remote-sync-branch is not set; configure git-sync first";
|
|
5
|
+
function syncBranchTarget(input) {
|
|
6
|
+
const stated = input.flag === void 0 || input.flag === "" ? null : input.flag;
|
|
7
|
+
if (input.scope !== null) {
|
|
8
|
+
if (stated !== null) throw new ConfigError(BRANCH_PINNED_REFUSAL);
|
|
9
|
+
return {
|
|
10
|
+
branch: input.scope.branch,
|
|
11
|
+
expected: input.scope.branch
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
if (input.tracked === null) throw new ConfigError(BRANCH_UNSET_REFUSAL);
|
|
15
|
+
return {
|
|
16
|
+
branch: stated ?? input.tracked,
|
|
17
|
+
expected: input.tracked
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
async function resolveSyncBranch(mb, scope, flag) {
|
|
21
|
+
return syncBranchTarget({
|
|
22
|
+
scope,
|
|
23
|
+
flag,
|
|
24
|
+
tracked: scope === null ? await mb.gitSync.branch() : null
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
//#endregion
|
|
28
|
+
export { resolveSyncBranch as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { n as windowList } from "./window-
|
|
1
|
+
import { G as listEnvelopeSchema, H as profileFlag, R as connectionFlags, V as outputFlags, f as renderList, z as listFlags } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-CNAZ_FuR.mjs";
|
|
3
|
+
import { n as windowList } from "./window-DSb1tqSe.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
//#region src/commands/git-sync/branches.ts
|
|
6
6
|
const BranchRow = z.object({ name: z.string() });
|
|
@@ -21,6 +21,7 @@ var branches_default = defineMetabaseCommand({
|
|
|
21
21
|
minVersion: 60,
|
|
22
22
|
tokenFeature: "remote_sync"
|
|
23
23
|
},
|
|
24
|
+
worktree: "any",
|
|
24
25
|
args: {
|
|
25
26
|
...outputFlags,
|
|
26
27
|
...listFlags,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as parseId } from "./parse-id-
|
|
1
|
+
import { H as profileFlag, R as connectionFlags, V as outputFlags, p as renderSummary } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-CNAZ_FuR.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-DDCn3VXx.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
//#region src/commands/transform/cancel.ts
|
|
6
6
|
const TransformCancelResult = z.object({
|
|
@@ -23,6 +23,7 @@ var cancel_default = defineMetabaseCommand({
|
|
|
23
23
|
description: "Cancel the current run for a transform"
|
|
24
24
|
},
|
|
25
25
|
capabilities: { minVersion: 59 },
|
|
26
|
+
worktree: "main-only",
|
|
26
27
|
args: {
|
|
27
28
|
...outputFlags,
|
|
28
29
|
...profileFlag,
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { H as profileFlag, R as connectionFlags, U as worktreeFlag, V as outputFlags, p as renderSummary } from "./cli.mjs";
|
|
2
|
+
import { r as WORKTREE_SCOPE_DETAIL, t as defineMetabaseCommand } from "./runtime-CNAZ_FuR.mjs";
|
|
3
|
+
import { u as SyncTask } from "./git-sync-DLzJrdMi.mjs";
|
|
4
|
+
import { l as syncTaskView } from "./git-sync-LQIVMNxO.mjs";
|
|
5
|
+
//#region src/commands/git-sync/cancel-task.ts
|
|
6
|
+
var cancel_task_default = defineMetabaseCommand({
|
|
7
|
+
meta: {
|
|
8
|
+
name: "cancel-task",
|
|
9
|
+
description: "Cancel the running git-sync task"
|
|
10
|
+
},
|
|
11
|
+
capabilities: {
|
|
12
|
+
minVersion: 60,
|
|
13
|
+
tokenFeature: "remote_sync"
|
|
14
|
+
},
|
|
15
|
+
worktree: "scoped",
|
|
16
|
+
details: WORKTREE_SCOPE_DETAIL,
|
|
17
|
+
args: {
|
|
18
|
+
...outputFlags,
|
|
19
|
+
...profileFlag,
|
|
20
|
+
...connectionFlags,
|
|
21
|
+
...worktreeFlag
|
|
22
|
+
},
|
|
23
|
+
outputSchema: SyncTask,
|
|
24
|
+
examples: ["mb git-sync cancel-task", "mb git-sync cancel-task --json"],
|
|
25
|
+
async run({ ctx, getClient, getWorktree }) {
|
|
26
|
+
const mb = await getClient();
|
|
27
|
+
const scope = await getWorktree();
|
|
28
|
+
const params = scope === null ? {} : { worktree_id: scope.id };
|
|
29
|
+
const task = await mb.gitSync.cancelTask(params);
|
|
30
|
+
renderSummary(task, syncTaskView, `Requested cancellation of ${task.sync_task_type} task #${task.id}.`, ctx);
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
//#endregion
|
|
34
|
+
export { cancel_task_default as default };
|
|
@@ -36,6 +36,7 @@ const Card = z.object({
|
|
|
36
36
|
database_id: z.number().int().nullable(),
|
|
37
37
|
table_id: z.number().int().nullable(),
|
|
38
38
|
collection_id: z.number().int().nullable(),
|
|
39
|
+
worktree_id: z.number().int().positive().nullable().optional(),
|
|
39
40
|
dashboard_id: z.number().int().nullable().optional(),
|
|
40
41
|
entity_id: z.string().nullable(),
|
|
41
42
|
creator_id: z.number().int(),
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { t as defineCommandGroup } from "./group-YN6jj2AN.mjs";
|
|
2
|
+
//#region src/commands/card/index.ts
|
|
3
|
+
var card_default = defineCommandGroup({
|
|
4
|
+
name: "card",
|
|
5
|
+
description: "Manage Metabase cards (questions, models, metrics)",
|
|
6
|
+
skills: [{
|
|
7
|
+
skill: "mbql",
|
|
8
|
+
purpose: "author the dataset_query"
|
|
9
|
+
}, {
|
|
10
|
+
skill: "visualization",
|
|
11
|
+
purpose: "choose display and visualization_settings"
|
|
12
|
+
}],
|
|
13
|
+
subCommands: {
|
|
14
|
+
list: () => import("./list-oAAgU5uE.mjs").then((mod) => mod.default),
|
|
15
|
+
get: () => import("./get-CWf46UFu.mjs").then((mod) => mod.default),
|
|
16
|
+
query: () => import("./query-Bka77J62.mjs").then((mod) => mod.default),
|
|
17
|
+
alerts: () => import("./alerts-DmwyyBfW.mjs").then((mod) => mod.default),
|
|
18
|
+
create: () => import("./create-ByuJ6T4k.mjs").then((mod) => mod.default),
|
|
19
|
+
update: () => import("./update-CpLEEbiJ.mjs").then((mod) => mod.default),
|
|
20
|
+
archive: () => import("./archive-BZEu6UfT.mjs").then((mod) => mod.default)
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
//#endregion
|
|
24
|
+
export { card_default as default };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as parseId } from "./parse-id-
|
|
4
|
-
import { n as windowList } from "./window-
|
|
5
|
-
import { c as DashcardCompact } from "./dashboard-
|
|
6
|
-
import { n as dashcardView } from "./dashboard-
|
|
1
|
+
import { G as listEnvelopeSchema, H as profileFlag, R as connectionFlags, V as outputFlags, f as renderList, z as listFlags } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-CNAZ_FuR.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-DDCn3VXx.mjs";
|
|
4
|
+
import { n as windowList } from "./window-DSb1tqSe.mjs";
|
|
5
|
+
import { c as DashcardCompact } from "./dashboard-CKUR8ZpQ.mjs";
|
|
6
|
+
import { n as dashcardView } from "./dashboard-BlbNszi8.mjs";
|
|
7
7
|
//#region src/commands/dashboard/cards.ts
|
|
8
8
|
const DashcardListEnvelope = listEnvelopeSchema(DashcardCompact);
|
|
9
9
|
var cards_default = defineMetabaseCommand({
|
|
@@ -12,6 +12,7 @@ var cards_default = defineMetabaseCommand({
|
|
|
12
12
|
description: "List dashcards on a dashboard"
|
|
13
13
|
},
|
|
14
14
|
capabilities: { minVersion: 58 },
|
|
15
|
+
worktree: "any",
|
|
15
16
|
args: {
|
|
16
17
|
...outputFlags,
|
|
17
18
|
...listFlags,
|