@metabase/cli 0.3.1-alpha.support-worktrees.b634907 → 0.3.1-alpha.transform-tests.3fbcf8b
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-CxzzDG4z.mjs → add-collection-C-XJPp3F.mjs} +5 -6
- package/dist/{alert-CQ7Az16h.mjs → alert-Klz8Bhst.mjs} +7 -7
- package/dist/{alerts-DmwyyBfW.mjs → alerts-Bp2vByJf.mjs} +6 -7
- package/dist/{append-B0avMkvW.mjs → append-D16_s1HW.mjs} +3 -4
- package/dist/archive-BOJUGwyL.mjs +32 -0
- package/dist/{archive-Cvrkz8F8.mjs → archive-Bj4MjbJY.mjs} +4 -5
- package/dist/{archive-THcEfy9B.mjs → archive-C9iNjXcI.mjs} +4 -5
- package/dist/{archive-BPSNe0Ul.mjs → archive-CA-HIfQq.mjs} +3 -4
- package/dist/{archive-DCyeRNfV.mjs → archive-D4nGMs8A.mjs} +3 -4
- package/dist/{archive-BVblae-p.mjs → archive-Dd7ZTibw.mjs} +3 -4
- package/dist/{archive-CMTHh4-w.mjs → archive-Q_qUuYh8.mjs} +3 -4
- package/dist/archive-RzzXt2V0.mjs +32 -0
- package/dist/{archive-BZEu6UfT.mjs → archive-lDnTIypd.mjs} +5 -6
- package/dist/{archive-DFofUIEC.mjs → archive-nDvHMzTv.mjs} +3 -4
- package/dist/{archive-BQ50OZ7y.mjs → archive-vzu8ghZZ.mjs} +3 -4
- package/dist/{auth-BEEkuu4J.mjs → auth-kyPQfiND.mjs} +5 -5
- package/dist/{branches-CmWc8NyL.mjs → branches-QixvzIpl.mjs} +3 -4
- package/dist/{cancel-DrQqmxvn.mjs → cancel-CPStS4zJ.mjs} +3 -4
- package/dist/cancel-task--cuSISnl.mjs +28 -0
- package/dist/{card-CrBGUkGQ.mjs → card-DZxRmver.mjs} +0 -1
- package/dist/card-p2r_szeS.mjs +24 -0
- package/dist/{card-BEeafd4Y.mjs → card-zyUkr2nS.mjs} +1 -1
- package/dist/{cards-M_6X8wCI.mjs → cards-CNbV8aGO.mjs} +4 -5
- package/dist/cli.mjs +48 -142
- package/dist/{client-DYD8WZYy.mjs → client-DynvZqa0.mjs} +129 -207
- package/dist/collection-CAM47Der.mjs +20 -0
- package/dist/{collection-CJHqsFKP.mjs → collection-CGoVLvcD.mjs} +1 -1
- package/dist/{collection-BxE7OzcQ.mjs → collection-CfulNRBG.mjs} +3 -6
- package/dist/{content-translation-C8MlXPOF.mjs → content-translation-CxTabpLF.mjs} +3 -3
- package/dist/{create-BqpkCjx4.mjs → create-BGV7ejai.mjs} +2 -3
- package/dist/{create-ByuJ6T4k.mjs → create-BGy4L_yh.mjs} +5 -6
- package/dist/{create-CY-SzM66.mjs → create-BMokmmLp2.mjs} +9 -14
- package/dist/{create-CJ7Am4Gc.mjs → create-BTvSwLws.mjs} +3 -4
- package/dist/{create-C2XFfbjx.mjs → create-BikaTHCw.mjs} +2 -3
- package/dist/{create-z-oMrlfT.mjs → create-BsvpUxJq.mjs} +4 -5
- package/dist/{create-BLWwN0uw.mjs → create-CEP4Jsrd.mjs} +3 -4
- package/dist/{create-hTc131aX.mjs → create-CYhsYOOJ.mjs} +2 -3
- package/dist/{create-CoubLR5o.mjs → create-CsABLrSI.mjs} +3 -4
- package/dist/{create-ldrghMd1.mjs → create-CtDaASGO.mjs} +2 -3
- package/dist/{create-myI6doga.mjs → create-DMLjSEkF.mjs} +3 -4
- package/dist/{create-D0anrINz.mjs → create-M8qXs24L.mjs} +8 -13
- package/dist/{create-BupBEwR2.mjs → create-U15wd8_9.mjs} +6 -11
- package/dist/{create-BA_tTDEk.mjs → create-UxWtLwXT.mjs} +3 -4
- package/dist/{create-C7iooS6W.mjs → create-WIIp7MVV.mjs} +7 -13
- package/dist/create-branch-Bkq9rtf7.mjs +35 -0
- package/dist/create-ku05K1Oj.mjs +34 -0
- package/dist/{csv-DBNzJiWK.mjs → csv-GincCch9.mjs} +3 -4
- package/dist/{current-task-YzemU0Ic.mjs → current-task-CbnNWQ7H.mjs} +7 -12
- package/dist/{dashboard-B1mpfCq_.mjs → dashboard-ReNaou5J.mjs} +10 -10
- package/dist/{db-1tLH3nYI.mjs → db-2hSYsqHk.mjs} +7 -7
- package/dist/{delete-CpKH5ia4.mjs → delete-B2wmUpj_.mjs} +4 -5
- package/dist/{delete-CD_-B4Kq.mjs → delete-BEPw7WRT.mjs} +4 -5
- package/dist/{delete-eAUB7p-f.mjs → delete-Bv3_SIqh.mjs} +5 -10
- package/dist/{delete-DjAUp9mk.mjs → delete-C1YmyeVy.mjs} +4 -5
- package/dist/delete-CZqleA9Q.mjs +44 -0
- package/dist/{delete-QNgBV6eS.mjs → delete-DNsY94Ok.mjs} +5 -10
- package/dist/{delete-runtime-b2_ZMSjj.mjs → delete-runtime-D74s6vhu.mjs} +1 -1
- package/dist/{delete-table-DamlxnSO.mjs → delete-table-DySwoEaq.mjs} +5 -10
- package/dist/dependencies-ygT6uMu4.mjs +36 -0
- package/dist/dirty-BkiHZ8gb.mjs +31 -0
- package/dist/document-DGbDloCb.mjs +19 -0
- package/dist/{download-C4v7u-AV.mjs → download-Chr-YNTG.mjs} +2 -3
- package/dist/{eid-CP35PdEF.mjs → eid-BvY-YGpN.mjs} +2 -3
- package/dist/{events-DmbzKIh_.mjs → events-B01P0G7C.mjs} +4 -5
- package/dist/{export-i8D6laBG.mjs → export-CG23iezf.mjs} +12 -25
- package/dist/{field-BKn9bt7I.mjs → field-DikmNcAt.mjs} +5 -5
- package/dist/{fields-8_p81BqN.mjs → fields-C9BF3jHL.mjs} +4 -5
- package/dist/get-B3jvGI0b.mjs +31 -0
- package/dist/{get-CNEQK0-9.mjs → get-B4GltkXP.mjs} +4 -5
- package/dist/get-BHpVRSbm.mjs +32 -0
- package/dist/{get-N4dOaTsp.mjs → get-BYSFFlsd.mjs} +4 -5
- package/dist/{get-BbHPFNqr.mjs → get-Blbcl76m.mjs} +3 -4
- package/dist/{get-CPTbySa7.mjs → get-BtauixMx.mjs} +3 -4
- package/dist/{get-DFkbi5L3.mjs → get-Buxkx-RX.mjs} +2 -3
- package/dist/get-C1V7vZse.mjs +31 -0
- package/dist/{get-CAzSP-7o.mjs → get-C99cjjD0.mjs} +3 -4
- package/dist/{get-BBOfshz1.mjs → get-CMMXBVff.mjs} +3 -4
- package/dist/{get-Bds6Izxk.mjs → get-CkMLxzVy.mjs} +3 -4
- package/dist/{get-vrccOMBk.mjs → get-DY-e5oP7.mjs} +3 -4
- package/dist/{get-B0g6VMBC.mjs → get-DZpRq_Fw.mjs} +3 -4
- package/dist/{get-DnCE7K0y.mjs → get-DdSB-fpR.mjs} +4 -5
- package/dist/{get-BHGgXqUq.mjs → get-DvqYIBp5.mjs} +3 -4
- package/dist/get-FJofgEPB.mjs +36 -0
- package/dist/{get-CWf46UFu.mjs → get-N5EUCDL0.mjs} +5 -6
- package/dist/{get-vvs0qzzM.mjs → get-PKhv8WUf.mjs} +3 -4
- package/dist/{get-BvW21ujw.mjs → get-UW0DOjH5.mjs} +3 -4
- package/dist/{get-DvLuY5Xu.mjs → get-gFM8-HHP.mjs} +9 -17
- package/dist/{get-run-4Ng8_awa.mjs → get-run-F7ARJeAD.mjs} +5 -6
- package/dist/{git-sync-DLzJrdMi.mjs → git-sync-BDnxPrqU.mjs} +3 -22
- package/dist/{git-sync-LQIVMNxO.mjs → git-sync-DxD_ng48.mjs} +2 -31
- package/dist/git-sync-IW4T2sKq.mjs +28 -0
- package/dist/{group-YN6jj2AN.mjs → group-DBM87IgC.mjs} +2 -3
- package/dist/{has-remote-changes-BXPGI9xG.mjs → has-remote-changes-Bwyp8mc-.mjs} +6 -14
- package/dist/{import-BoxOkA-G.mjs → import-CPY8aM8d.mjs} +11 -28
- package/dist/{is-dirty-Cwxq4_gd.mjs → is-dirty-0F_UJY7Q.mjs} +6 -15
- package/dist/{items-Cv6iAzrI.mjs → items-FUop0zGR.mjs} +9 -17
- package/dist/{library-Cfw6eF35.mjs → library-ClLgrAXy.mjs} +1 -1
- package/dist/{library-fhVn1KDC.mjs → library-DfYAT2Ep.mjs} +1 -1
- package/dist/{library-CRaOhJnj.mjs → library-DpOtb0E0.mjs} +5 -5
- package/dist/{list-BBp9XjYs.mjs → list--B2EUWJg.mjs} +3 -4
- package/dist/list-B-74c1BD.mjs +35 -0
- package/dist/{list-BLJkJp5a.mjs → list-BASNYNJr.mjs} +3 -4
- package/dist/list-BQaXU1bp.mjs +28 -0
- package/dist/{list-DhrapAcy.mjs → list-BQrk4Ua4.mjs} +3 -4
- package/dist/{list-C8J3n8B8.mjs → list-Beoh2AYD.mjs} +3 -4
- package/dist/{list-9uvk9dIA.mjs → list-Bqm0F1Y-.mjs} +3 -4
- package/dist/{list-oAAgU5uE.mjs → list-C2qxVTu7.mjs} +9 -16
- package/dist/list-CGkgypYz.mjs +38 -0
- package/dist/{list-CtZAu4im.mjs → list-CvzWE6CS.mjs} +4 -5
- package/dist/list-DMlFbccD.mjs +28 -0
- package/dist/{list-tutXEQRW.mjs → list-DdFViPYS.mjs} +4 -5
- package/dist/{list-DOZNpX4b.mjs → list-DfbsmsHv.mjs} +4 -5
- package/dist/{list--2T-GUEF.mjs → list-GyP4b_tU.mjs} +4 -5
- package/dist/{list-DOaWCx8S.mjs → list-Uc1OxV36.mjs} +8 -17
- package/dist/{list-L2U1l6R4.mjs → list-ba7lI44w.mjs} +3 -4
- package/dist/{list-BwkfWtP2.mjs → list-lzIKVtE9.mjs} +3 -4
- package/dist/list-rQ-6XSua.mjs +36 -0
- package/dist/{list-WSJLnunb.mjs → list-xC99-2X0.mjs} +3 -4
- package/dist/{login-DqWRF3Og.mjs → login-D5jt0q9K.mjs} +4 -5
- package/dist/{logout-ChCz1bkf.mjs → logout-DViy0VzV.mjs} +2 -3
- package/dist/{measure-C5dIdFj1.mjs → measure-IPlonpqU.mjs} +6 -6
- package/dist/{notification-DVrLkjFT.mjs → notification-Fcq1fIPw.mjs} +1 -1
- package/dist/{parameter-values-Dy4cBs5y.mjs → parameter-values-CHyOCxmR.mjs} +3 -4
- package/dist/{parse-id-DDCn3VXx.mjs → parse-id-CPINxy7h.mjs} +1 -1
- package/dist/{parse-ref-Wv21Roup.mjs → parse-ref-ibKVB0J4.mjs} +2 -6
- package/dist/{path-IYhuzjQV.mjs → path-bMZzUOVo.mjs} +4 -5
- package/dist/{preflight-HLUVr2Yf.mjs → preflight-CoF1Em99.mjs} +1 -1
- package/dist/{publish-CMkCSt8i.mjs → publish-Cs-OUG6n.mjs} +4 -5
- package/dist/{pulse-a-83M4DV.mjs → pulse-DhG6I9mI.mjs} +1 -1
- package/dist/{query-tWQAV9pb.mjs → query-CEdmSEq8.mjs} +6 -7
- package/dist/{query-Bka77J62.mjs → query-CpD46hL6.mjs} +6 -7
- package/dist/{query-result-E4Q-Gra6.mjs → query-result-DBDwk8TS.mjs} +1 -1
- package/dist/{remove-collection-BV9wRQZD.mjs → remove-collection-DynsqkwG.mjs} +5 -6
- package/dist/{render-DHjCcUXn.mjs → render-CI93iP0I.mjs} +1 -7
- package/dist/{replace-mt47dlRV.mjs → replace-C6YqqCG9.mjs} +3 -4
- package/dist/{rescan-values-6cRjcpTs.mjs → rescan-values-C6PB02uT.mjs} +3 -4
- package/dist/run-C7PXBBEl.mjs +50 -0
- package/dist/{run-DI_pDxji.mjs → run-Cb86sH_c.mjs} +5 -6
- package/dist/{run-BmGmC-GQ.mjs → run-CpmWoOGp.mjs} +3 -4
- package/dist/{runs-9Fu0mug5.mjs → runs-CCRszsbB.mjs} +6 -7
- package/dist/{runtime-CNAZ_FuR.mjs → runtime-BMJv4VOi.mjs} +8 -103
- package/dist/{schema-tables-CLG0mtQb.mjs → schema-tables-BQdFNy1B.mjs} +4 -5
- package/dist/{schemas-Cm5NWy59.mjs → schemas-CNAPFh4n.mjs} +4 -5
- package/dist/{search-CljYyf2F.mjs → search-BKVV6YtB.mjs} +8 -14
- package/dist/{segment-IRzlQggt.mjs → segment-CDoZHSYX.mjs} +6 -6
- package/dist/{selectors-D4iOP5uB.mjs → selectors-BXbjj36S.mjs} +2 -2
- package/dist/{send-D7DBnQbu.mjs → send-D2eXL9lt.mjs} +3 -4
- package/dist/{set-active-CkE0Eiqh.mjs → set-active-DT61WwV0.mjs} +2 -3
- package/dist/{set-DKN8fuC6.mjs → set-sHBtSGLi.mjs} +2 -3
- package/dist/{setting-CN4l8N-b.mjs → setting-dkfKvCxc.mjs} +4 -4
- package/dist/{setup-BpTptmdO.mjs → setup-TOwWatgm.mjs} +2 -3
- package/dist/{skills-BSAiLI3Z.mjs → skills-BcOjZldN.mjs} +3 -3
- package/dist/{skills-hVKSOCUf.mjs → skills-DTCrMcix.mjs} +1 -1
- package/dist/{snippet-BxgvQ09J.mjs → snippet-CyKAgIZl.mjs} +2 -5
- package/dist/snippet-DMdFqvNq.mjs +19 -0
- package/dist/{snippet-DecHB4Dn.mjs → snippet-oJLaYW9V.mjs} +1 -1
- package/dist/{stash-DJs6A6BA.mjs → stash-BgWw2lyu.mjs} +6 -7
- package/dist/{status-N_2EaWb7.mjs → status-B14FO8n7.mjs} +6 -15
- package/dist/{status-DtwBDRtc.mjs → status-J4pEIm-c.mjs} +16 -44
- package/dist/{subscription-BnGDp1oy.mjs → subscription-B1uuKxM7.mjs} +6 -6
- package/dist/{subscriptions-BfFwV__x.mjs → subscriptions-BHIATSN6.mjs} +6 -7
- package/dist/{summary-CHiq-4mz.mjs → summary-B1V5TXaZ.mjs} +3 -4
- package/dist/{sync-schema-DhnM-rpm.mjs → sync-schema-D1vX-rpv.mjs} +4 -5
- package/dist/{sync-task-G1K47Nvn.mjs → sync-task-BACcrs0i.mjs} +1 -1
- package/dist/{table-BQaiCSNS.mjs → table-CDeO1WbH.mjs} +5 -5
- package/dist/timeline-MQFX3Fla.mjs +21 -0
- package/dist/{timeline-event-B7H1y8s8.mjs → timeline-event-oGmne082.mjs} +6 -6
- package/dist/transform-CWIqW64R.mjs +28 -0
- package/dist/{transform-BvOEn41C.mjs → transform-D3QX0jxA.mjs} +1 -4
- package/dist/{transform-CiDOJGBW.mjs → transform-DoTyyXAu.mjs} +2 -2
- package/dist/transform-job-DpF2MARE.mjs +22 -0
- package/dist/{transform-tag-Dip51YBa.mjs → transform-tag-Bpj8l5Ci.mjs} +5 -5
- package/dist/{transform-tag-jBVd6wXd.mjs → transform-tag-CcElGp3C.mjs} +4 -9
- package/dist/{transform-tag-DiXWRCQG.mjs → transform-tag-Dmb4u3-Q.mjs} +1 -1
- package/dist/transform-test-BJOPAwKl.mjs +25 -0
- package/dist/transform-test-BhkpwFqD.mjs +16 -0
- package/dist/transform-test-Dhcj7u-U.mjs +142 -0
- package/dist/{transforms-C-jYgS6z.mjs → transforms-K7Y4ON_q.mjs} +6 -7
- package/dist/tree-CtFtroe4.mjs +27 -0
- package/dist/{unpublish-BokbnLng.mjs → unpublish-D7UaaIWA.mjs} +3 -4
- package/dist/{update-BRXKLeJH.mjs → update-3ksm443P.mjs} +3 -4
- package/dist/{update-AZSXMJqu.mjs → update-B7veBLhx.mjs} +7 -13
- package/dist/{update-CfQoYVTc.mjs → update-BicO3Lio.mjs} +3 -4
- package/dist/{update-e7lyQPxq.mjs → update-BlBEKrNE.mjs} +7 -13
- package/dist/{update-BErxnZrj.mjs → update-BpuZsX9z.mjs} +4 -5
- package/dist/{update-CKL2FtoX.mjs → update-BvbPpgOL.mjs} +4 -5
- package/dist/{update-C4PbAYgW.mjs → update-CGJXd_E3.mjs} +3 -4
- package/dist/{update-B9DcRSBQ.mjs → update-C_wTtrtX.mjs} +10 -16
- package/dist/{update-BCGE5UYC.mjs → update-D9Nfv864.mjs} +4 -5
- package/dist/{update-D9OTkZhw.mjs → update-DUNJEk8m.mjs} +3 -4
- package/dist/{update-Bc8s1TL1.mjs → update-HqUKBeM2.mjs} +3 -4
- package/dist/{update-CpLEEbiJ.mjs → update-MWaDj2VX.mjs} +6 -7
- package/dist/{update-BBQInyiJ.mjs → update-YkB3xWUh.mjs} +4 -5
- package/dist/{update-rkbpH0lF.mjs → update-bix8NoKq.mjs} +3 -4
- package/dist/{update-CPEU8ZEu.mjs → update-dRAPKE3c.mjs} +4 -5
- package/dist/{update-dashcard-St-dGcE3.mjs → update-dashcard-BGqKMqQb.mjs} +3 -4
- package/dist/update-e4ufwrkF.mjs +41 -0
- package/dist/{upgrade-CUoRHfVg.mjs → upgrade-DkQ1wk4z.mjs} +2 -3
- package/dist/{upload-BPd1Uzxc.mjs → upload-BfGc-L4t.mjs} +2 -3
- package/dist/upload-JN6EK96c.mjs +13 -0
- package/dist/{uuid-CFN8LIkP.mjs → uuid-BLBLkWAF.mjs} +2 -3
- package/dist/{validate-query-Chc43ezW.mjs → validate-query-DaGYSmpQ.mjs} +1 -1
- package/dist/{values-BL_U-Zdw.mjs → values-8CrXBkyg.mjs} +3 -4
- package/dist/{verify-DnBaRmkI.mjs → verify-nNVN-0CR.mjs} +2 -2
- package/dist/{wait-mPoOZxrw.mjs → wait-YrD7UYFF.mjs} +7 -12
- package/dist/{wait-flags-DzytMEG8.mjs → wait-flags-CDtMS8FP.mjs} +2 -2
- package/dist/{window-DSb1tqSe.mjs → window-BkvrP0gB.mjs} +1 -1
- package/package.json +1 -1
- package/skill-data/core/SKILL.md +15 -17
- package/skill-data/git-sync/SKILL.md +1 -91
- package/skill-data/transform/SKILL.md +56 -10
- package/dist/archive-CqOKKrb2.mjs +0 -38
- package/dist/archive-DCjdICg7.mjs +0 -38
- package/dist/branch-BSeGrtP7.mjs +0 -28
- package/dist/cancel-task-BMQXtjW5.mjs +0 -34
- package/dist/card-RlzLDB2z.mjs +0 -24
- package/dist/collection-Bhe20ckt.mjs +0 -20
- package/dist/create-DwrhcI8r2.mjs +0 -144
- package/dist/create-branch-B3BMpF1g.mjs +0 -49
- package/dist/delete-D_OgiI4v.mjs +0 -86
- package/dist/dependencies-DEx0BsZ3.mjs +0 -41
- package/dist/dirty-dC1-Ud0G.mjs +0 -40
- package/dist/document-DOJbBWLF.mjs +0 -19
- package/dist/export-preflight-B5MvYhm3.mjs +0 -67
- package/dist/get-Cfagmy1i.mjs +0 -42
- package/dist/get-DwdMvWXU.mjs +0 -44
- package/dist/get-jV8G90Zy.mjs +0 -42
- package/dist/get-mGEv-kag.mjs +0 -33
- package/dist/git-sync-DjoaNmRM.mjs +0 -29
- package/dist/list-5Iojbr_p.mjs +0 -37
- package/dist/list-BD4onDqO.mjs +0 -37
- package/dist/list-C2yL7-CH.mjs +0 -45
- package/dist/list-CbbKip6U.mjs +0 -32
- package/dist/list-Dg2XeDON.mjs +0 -47
- package/dist/pin-BuZ_kg-u.mjs +0 -62
- package/dist/scope-DsGuWG5w.mjs +0 -11
- package/dist/snippet-LlHz3FdJ.mjs +0 -19
- package/dist/timeline-C2VW0Ph6.mjs +0 -21
- package/dist/transform-DAf0Y02t.mjs +0 -28
- package/dist/transform-job-ntiT5Rrh.mjs +0 -22
- package/dist/tree-DtyJhD54.mjs +0 -36
- package/dist/unpin-DxbXmLtW.mjs +0 -45
- package/dist/upload-Dc3QLhZw.mjs +0 -13
- package/dist/worktree-ChdDlG3Q.mjs +0 -25
- package/dist/worktree-DC0kTxxQ.mjs +0 -20
- package/dist/worktree-xAro1xAB.mjs +0 -24
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { n as tableSelectorFlags, t as parseTableSelectors } from "./selectors-
|
|
1
|
+
import { F as outputFlags, I as profileFlag, M as connectionFlags, c as renderSummary } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-BMJv4VOi.mjs";
|
|
3
|
+
import { n as tableSelectorFlags, t as parseTableSelectors } from "./selectors-BXbjj36S.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
//#region src/commands/library/unpublish.ts
|
|
6
6
|
const LibraryUnpublishResult = z.object({
|
|
@@ -40,7 +40,6 @@ var unpublish_default = defineMetabaseCommand({
|
|
|
40
40
|
minVersion: 59,
|
|
41
41
|
tokenFeature: "library"
|
|
42
42
|
},
|
|
43
|
-
worktree: "main-only",
|
|
44
43
|
args: {
|
|
45
44
|
...outputFlags,
|
|
46
45
|
...profileFlag,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as parseId } from "./parse-id-
|
|
1
|
+
import { F as outputFlags, I as profileFlag, M as connectionFlags, c as renderSummary } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-BMJv4VOi.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-CPINxy7h.mjs";
|
|
4
4
|
import { t as readBody } from "./body-DxRSAMNC.mjs";
|
|
5
5
|
import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
|
|
6
6
|
import { o as FieldUpdateInput, t as Field } from "./field-Cr2DPUG9.mjs";
|
|
@@ -12,7 +12,6 @@ var update_default = defineMetabaseCommand({
|
|
|
12
12
|
description: "Update a field (description, semantic_type, FK target, visibility, etc.)"
|
|
13
13
|
},
|
|
14
14
|
capabilities: { minVersion: 58 },
|
|
15
|
-
worktree: "main-only",
|
|
16
15
|
args: {
|
|
17
16
|
...outputFlags,
|
|
18
17
|
...profileFlag,
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { t as parseId } from "./parse-id-
|
|
1
|
+
import { F as outputFlags, I as profileFlag, M as connectionFlags, c as renderSummary } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-BMJv4VOi.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-CPINxy7h.mjs";
|
|
4
4
|
import { t as readBody } from "./body-DxRSAMNC.mjs";
|
|
5
5
|
import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
|
|
6
|
-
import { i as TransformTagUpdateInput, t as TransformTag } from "./transform-tag-
|
|
7
|
-
import { t as transformTagView } from "./transform-tag-
|
|
8
|
-
import { t as assertTagInWorktree } from "./scope-DsGuWG5w.mjs";
|
|
6
|
+
import { i as TransformTagUpdateInput, t as TransformTag } from "./transform-tag-CcElGp3C.mjs";
|
|
7
|
+
import { t as transformTagView } from "./transform-tag-Dmb4u3-Q.mjs";
|
|
9
8
|
//#region src/commands/transform-tag/update.ts
|
|
10
9
|
var update_default = defineMetabaseCommand({
|
|
11
10
|
meta: {
|
|
@@ -13,13 +12,10 @@ var update_default = defineMetabaseCommand({
|
|
|
13
12
|
description: "Update a transform tag by id"
|
|
14
13
|
},
|
|
15
14
|
capabilities: { minVersion: 59 },
|
|
16
|
-
worktree: "scoped",
|
|
17
|
-
details: WORKTREE_SCOPE_DETAIL,
|
|
18
15
|
args: {
|
|
19
16
|
...outputFlags,
|
|
20
17
|
...profileFlag,
|
|
21
18
|
...connectionFlags,
|
|
22
|
-
...worktreeFlag,
|
|
23
19
|
...bodyInputFlags,
|
|
24
20
|
id: {
|
|
25
21
|
type: "positional",
|
|
@@ -34,15 +30,13 @@ var update_default = defineMetabaseCommand({
|
|
|
34
30
|
"mb transform-tag update 5 --file tag.json",
|
|
35
31
|
"echo '{\"name\":\"renamed\"}' | mb transform-tag update 5"
|
|
36
32
|
],
|
|
37
|
-
async run({ args, ctx, getClient
|
|
33
|
+
async run({ args, ctx, getClient }) {
|
|
38
34
|
const id = parseId(args.id);
|
|
39
35
|
const body = await readBody({
|
|
40
36
|
flag: args.body,
|
|
41
37
|
file: args.file
|
|
42
38
|
}, TransformTagUpdateInput);
|
|
43
|
-
const
|
|
44
|
-
await assertTagInWorktree(client, id, await getWorktree());
|
|
45
|
-
const updated = await client.transformTag.update(id, body);
|
|
39
|
+
const updated = await (await getClient()).transformTag.update(id, body);
|
|
46
40
|
renderSummary(updated, transformTagView, `Updated transform tag ${updated.id} "${updated.name}".`, ctx);
|
|
47
41
|
}
|
|
48
42
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as parseId } from "./parse-id-
|
|
1
|
+
import { F as outputFlags, I as profileFlag, M as connectionFlags, c as renderSummary } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-BMJv4VOi.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-CPINxy7h.mjs";
|
|
4
4
|
import { t as readBody } from "./body-DxRSAMNC.mjs";
|
|
5
5
|
import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
|
|
6
6
|
import { o as TransformJobUpdateInput, t as TransformJob } from "./transform-job-DRrK28IH.mjs";
|
|
@@ -12,7 +12,6 @@ var update_default = defineMetabaseCommand({
|
|
|
12
12
|
description: "Update a transform job by id"
|
|
13
13
|
},
|
|
14
14
|
capabilities: { minVersion: 59 },
|
|
15
|
-
worktree: "main-only",
|
|
16
15
|
args: {
|
|
17
16
|
...outputFlags,
|
|
18
17
|
...profileFlag,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { t as parseId } from "./parse-id-
|
|
1
|
+
import { F as outputFlags, I as profileFlag, M as connectionFlags, c as renderSummary } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-BMJv4VOi.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-CPINxy7h.mjs";
|
|
4
4
|
import { t as readBody } from "./body-DxRSAMNC.mjs";
|
|
5
5
|
import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
|
|
6
|
-
import { i as SnippetUpdateInput, t as Snippet } from "./snippet-
|
|
7
|
-
import { t as snippetView } from "./snippet-
|
|
6
|
+
import { i as SnippetUpdateInput, t as Snippet } from "./snippet-CyKAgIZl.mjs";
|
|
7
|
+
import { t as snippetView } from "./snippet-oJLaYW9V.mjs";
|
|
8
8
|
//#region src/commands/snippet/update.ts
|
|
9
9
|
var update_default = defineMetabaseCommand({
|
|
10
10
|
meta: {
|
|
@@ -12,13 +12,10 @@ var update_default = defineMetabaseCommand({
|
|
|
12
12
|
description: "Update a native query snippet by id"
|
|
13
13
|
},
|
|
14
14
|
capabilities: { minVersion: 58 },
|
|
15
|
-
worktree: "scoped",
|
|
16
|
-
details: WORKTREE_SCOPE_DETAIL,
|
|
17
15
|
args: {
|
|
18
16
|
...outputFlags,
|
|
19
17
|
...profileFlag,
|
|
20
18
|
...connectionFlags,
|
|
21
|
-
...worktreeFlag,
|
|
22
19
|
...bodyInputFlags,
|
|
23
20
|
id: {
|
|
24
21
|
type: "positional",
|
|
@@ -34,16 +31,13 @@ var update_default = defineMetabaseCommand({
|
|
|
34
31
|
"mb snippet update 1 --body '{\"name\":\"renamed\"}'",
|
|
35
32
|
"mb snippet update 1 --body '{\"archived\":true}'"
|
|
36
33
|
],
|
|
37
|
-
async run({ args, ctx, getClient
|
|
34
|
+
async run({ args, ctx, getClient }) {
|
|
38
35
|
const id = parseId(args.id);
|
|
39
36
|
const body = await readBody({
|
|
40
37
|
flag: args.body,
|
|
41
38
|
file: args.file
|
|
42
39
|
}, SnippetUpdateInput);
|
|
43
|
-
const
|
|
44
|
-
const scope = await getWorktree();
|
|
45
|
-
if (scope !== null) assertInWorktree("snippet", id, (await client.snippet.get(id)).worktree_id, scope);
|
|
46
|
-
const updated = await client.snippet.update(id, body);
|
|
40
|
+
const updated = await (await getClient()).snippet.update(id, body);
|
|
47
41
|
renderSummary(updated, snippetView, `Updated snippet ${updated.id} "${updated.name}".`, ctx);
|
|
48
42
|
}
|
|
49
43
|
});
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as parseId } from "./parse-id-
|
|
1
|
+
import { F as outputFlags, I as profileFlag, M as connectionFlags, c as renderSummary } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-BMJv4VOi.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-CPINxy7h.mjs";
|
|
4
4
|
import { t as readBody } from "./body-DxRSAMNC.mjs";
|
|
5
5
|
import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
|
|
6
6
|
import { i as DashboardDetail, o as DashboardUpdateInput } from "./dashboard-CKUR8ZpQ.mjs";
|
|
7
7
|
import { t as dashboardView } from "./dashboard-BlbNszi8.mjs";
|
|
8
|
-
import { t as preflightDashcardCardReferences } from "./preflight-
|
|
8
|
+
import { t as preflightDashcardCardReferences } from "./preflight-CoF1Em99.mjs";
|
|
9
9
|
//#region src/commands/dashboard/update.ts
|
|
10
10
|
var update_default = defineMetabaseCommand({
|
|
11
11
|
meta: {
|
|
@@ -21,7 +21,6 @@ var update_default = defineMetabaseCommand({
|
|
|
21
21
|
purpose: "dashcard visualization_settings and the 24-column grid"
|
|
22
22
|
}],
|
|
23
23
|
capabilities: { minVersion: 58 },
|
|
24
|
-
worktree: "main-only",
|
|
25
24
|
args: {
|
|
26
25
|
...outputFlags,
|
|
27
26
|
...profileFlag,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as parseId } from "./parse-id-
|
|
1
|
+
import { F as outputFlags, I as profileFlag, M as connectionFlags, c as renderSummary } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-BMJv4VOi.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-CPINxy7h.mjs";
|
|
4
4
|
import { t as readBody } from "./body-DxRSAMNC.mjs";
|
|
5
5
|
import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
|
|
6
6
|
import { i as SegmentUpdateInput, t as Segment } from "./segment-OsrbUDzw.mjs";
|
|
7
|
-
import { a as preflightMbql5Query, o as skipValidateFlag, r as SEGMENT_DEFINITION_LABELS } from "./validate-query-
|
|
7
|
+
import { a as preflightMbql5Query, o as skipValidateFlag, r as SEGMENT_DEFINITION_LABELS } from "./validate-query-DaGYSmpQ.mjs";
|
|
8
8
|
import { t as segmentView } from "./segment-C_gl5ag6.mjs";
|
|
9
9
|
//#region src/commands/segment/update.ts
|
|
10
10
|
var update_default = defineMetabaseCommand({
|
|
@@ -18,7 +18,6 @@ var update_default = defineMetabaseCommand({
|
|
|
18
18
|
purpose: "the definition filter clause"
|
|
19
19
|
}],
|
|
20
20
|
capabilities: { minVersion: 58 },
|
|
21
|
-
worktree: "main-only",
|
|
22
21
|
args: {
|
|
23
22
|
...outputFlags,
|
|
24
23
|
...profileFlag,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as parseId } from "./parse-id-
|
|
1
|
+
import { F as outputFlags, I as profileFlag, M as connectionFlags, c as renderSummary } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-BMJv4VOi.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-CPINxy7h.mjs";
|
|
4
4
|
import { t as readBody } from "./body-DxRSAMNC.mjs";
|
|
5
5
|
import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
|
|
6
6
|
import { i as TimelineEvent, s as TimelineEventUpdateInput } from "./timeline-CCSU2qOS.mjs";
|
|
@@ -13,7 +13,6 @@ var update_default = defineMetabaseCommand({
|
|
|
13
13
|
},
|
|
14
14
|
details: "Patches only the fields you send: `name`, `description`, `timestamp`, `timezone`, `time_matters`, `icon`, `timeline_id` (moves the event to another timeline), `archived`.",
|
|
15
15
|
capabilities: { minVersion: 58 },
|
|
16
|
-
worktree: "main-only",
|
|
17
16
|
args: {
|
|
18
17
|
...outputFlags,
|
|
19
18
|
...profileFlag,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { t as parseId } from "./parse-id-
|
|
1
|
+
import { F as outputFlags, I as profileFlag, M as connectionFlags, c as renderSummary } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-BMJv4VOi.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-CPINxy7h.mjs";
|
|
4
4
|
import { t as readBody } from "./body-DxRSAMNC.mjs";
|
|
5
5
|
import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
|
|
6
|
-
import { c as TransformUpdateInput, t as Transform } from "./transform-
|
|
7
|
-
import { a as preflightMbql5Query, i as TRANSFORM_SOURCE_QUERY_LABELS, o as skipValidateFlag } from "./validate-query-
|
|
8
|
-
import { n as transformView } from "./transform-
|
|
6
|
+
import { c as TransformUpdateInput, t as Transform } from "./transform-D3QX0jxA.mjs";
|
|
7
|
+
import { a as preflightMbql5Query, i as TRANSFORM_SOURCE_QUERY_LABELS, o as skipValidateFlag } from "./validate-query-DaGYSmpQ.mjs";
|
|
8
|
+
import { n as transformView } from "./transform-DoTyyXAu.mjs";
|
|
9
9
|
import { t as enrichTransformCollectionError } from "./collection-namespace-CEoQ7G08.mjs";
|
|
10
10
|
//#region src/commands/transform/update.ts
|
|
11
11
|
var update_default = defineMetabaseCommand({
|
|
@@ -13,18 +13,16 @@ var update_default = defineMetabaseCommand({
|
|
|
13
13
|
name: "update",
|
|
14
14
|
description: "Update a transform by id (partial)"
|
|
15
15
|
},
|
|
16
|
-
details: "Patches only the fields you send (any of `name`, `source`, `target`, `tag_ids`, …). When a new `source.query` is an MBQL 5 query it is checked against a bundled JSON Schema (print it with `mb query --print-schema`) before sending; pass --skip-validate to bypass.
|
|
16
|
+
details: "Patches only the fields you send (any of `name`, `source`, `target`, `tag_ids`, …). When a new `source.query` is an MBQL 5 query it is checked against a bundled JSON Schema (print it with `mb query --print-schema`) before sending; pass --skip-validate to bypass.",
|
|
17
17
|
skills: [{
|
|
18
18
|
skill: "mbql",
|
|
19
19
|
purpose: "MBQL source.query bodies"
|
|
20
20
|
}],
|
|
21
21
|
capabilities: { minVersion: 59 },
|
|
22
|
-
worktree: "scoped",
|
|
23
22
|
args: {
|
|
24
23
|
...outputFlags,
|
|
25
24
|
...profileFlag,
|
|
26
25
|
...connectionFlags,
|
|
27
|
-
...worktreeFlag,
|
|
28
26
|
...bodyInputFlags,
|
|
29
27
|
id: {
|
|
30
28
|
type: "positional",
|
|
@@ -39,20 +37,16 @@ var update_default = defineMetabaseCommand({
|
|
|
39
37
|
"cat patch.json | mb transform update 1",
|
|
40
38
|
"mb transform update 1 --file patch.json",
|
|
41
39
|
"mb transform update 1 --body '{\"name\":\"renamed\"}'",
|
|
42
|
-
"mb transform update 1 --file patch.json --skip-validate"
|
|
43
|
-
"mb transform update 1 --body '{\"name\":\"renamed\"}' --worktree feat/transforms"
|
|
40
|
+
"mb transform update 1 --file patch.json --skip-validate"
|
|
44
41
|
],
|
|
45
|
-
async run({ args, ctx, getClient
|
|
42
|
+
async run({ args, ctx, getClient }) {
|
|
46
43
|
const id = parseId(args.id);
|
|
47
44
|
const body = await readBody({
|
|
48
45
|
flag: args.body,
|
|
49
46
|
file: args.file
|
|
50
47
|
}, TransformUpdateInput);
|
|
51
48
|
if (body.source !== void 0 && body.source.type === "query") preflightMbql5Query(body.source.query, TRANSFORM_SOURCE_QUERY_LABELS, { skip: args["skip-validate"] === true });
|
|
52
|
-
const
|
|
53
|
-
const scope = await getWorktree();
|
|
54
|
-
if (scope !== null) assertInWorktree("transform", id, (await client.transform.get(id)).worktree_id, scope);
|
|
55
|
-
const updated = await client.transform.update(id, body).catch((error) => {
|
|
49
|
+
const updated = await (await getClient()).transform.update(id, body).catch((error) => {
|
|
56
50
|
throw enrichTransformCollectionError(error);
|
|
57
51
|
});
|
|
58
52
|
renderSummary(updated, transformView, `Updated transform ${updated.id} "${updated.name}".`, ctx);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as parseId } from "./parse-id-
|
|
1
|
+
import { F as outputFlags, I as profileFlag, M as connectionFlags, c as renderSummary } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-BMJv4VOi.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-CPINxy7h.mjs";
|
|
4
4
|
import { t as readBody } from "./body-DxRSAMNC.mjs";
|
|
5
5
|
import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
|
|
6
6
|
import { a as PulseUpdateInput, t as Pulse } from "./pulse-BmsDenXm.mjs";
|
|
7
|
-
import { t as pulseView } from "./pulse-
|
|
7
|
+
import { t as pulseView } from "./pulse-DhG6I9mI.mjs";
|
|
8
8
|
//#region src/commands/subscription/update.ts
|
|
9
9
|
var update_default = defineMetabaseCommand({
|
|
10
10
|
meta: {
|
|
@@ -18,7 +18,6 @@ var update_default = defineMetabaseCommand({
|
|
|
18
18
|
"A subscription's `dashboard_id` and `collection_id` are fixed at creation and cannot be changed."
|
|
19
19
|
].join(" "),
|
|
20
20
|
capabilities: { minVersion: 58 },
|
|
21
|
-
worktree: "main-only",
|
|
22
21
|
args: {
|
|
23
22
|
...outputFlags,
|
|
24
23
|
...profileFlag,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as parseId } from "./parse-id-
|
|
1
|
+
import { F as outputFlags, I as profileFlag, M as connectionFlags, c as renderSummary } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-BMJv4VOi.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-CPINxy7h.mjs";
|
|
4
4
|
import { t as readBody } from "./body-DxRSAMNC.mjs";
|
|
5
5
|
import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
|
|
6
6
|
import { i as DocumentUpdateInput, t as Document } from "./document-Cd2mmqCp.mjs";
|
|
@@ -12,7 +12,6 @@ var update_default = defineMetabaseCommand({
|
|
|
12
12
|
description: "Update a document by id"
|
|
13
13
|
},
|
|
14
14
|
capabilities: { minVersion: 58 },
|
|
15
|
-
worktree: "main-only",
|
|
16
15
|
args: {
|
|
17
16
|
...outputFlags,
|
|
18
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 { F as outputFlags, I as profileFlag, M as connectionFlags, c as renderSummary } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-BMJv4VOi.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-CPINxy7h.mjs";
|
|
4
4
|
import { t as readBody } from "./body-DxRSAMNC.mjs";
|
|
5
5
|
import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
|
|
6
6
|
import { c as TimelineUpdateInput, t as Timeline } from "./timeline-CCSU2qOS.mjs";
|
|
@@ -13,7 +13,6 @@ var update_default = defineMetabaseCommand({
|
|
|
13
13
|
},
|
|
14
14
|
details: "Patches only the fields you send: `name`, `description`, `icon`, `collection_id`, `default`, `archived`. Changing `archived` cascades to every event on the timeline.",
|
|
15
15
|
capabilities: { minVersion: 58 },
|
|
16
|
-
worktree: "main-only",
|
|
17
16
|
args: {
|
|
18
17
|
...outputFlags,
|
|
19
18
|
...profileFlag,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as parseId } from "./parse-id-
|
|
1
|
+
import { F as outputFlags, I as profileFlag, M as connectionFlags, c as renderSummary } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-BMJv4VOi.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-CPINxy7h.mjs";
|
|
4
4
|
import { t as readBody } from "./body-DxRSAMNC.mjs";
|
|
5
5
|
import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
|
|
6
|
-
import { c as CardUpdateInput, t as Card } from "./card-
|
|
7
|
-
import { n as cardView } from "./card-
|
|
8
|
-
import { a as preflightMbql5Query, o as skipValidateFlag, t as CARD_DATASET_QUERY_LABELS } from "./validate-query-
|
|
6
|
+
import { c as CardUpdateInput, t as Card } from "./card-DZxRmver.mjs";
|
|
7
|
+
import { n as cardView } from "./card-zyUkr2nS.mjs";
|
|
8
|
+
import { a as preflightMbql5Query, o as skipValidateFlag, t as CARD_DATASET_QUERY_LABELS } from "./validate-query-DaGYSmpQ.mjs";
|
|
9
9
|
//#region src/commands/card/update.ts
|
|
10
10
|
var update_default = defineMetabaseCommand({
|
|
11
11
|
meta: {
|
|
@@ -21,7 +21,6 @@ var update_default = defineMetabaseCommand({
|
|
|
21
21
|
purpose: "choose display and visualization_settings"
|
|
22
22
|
}],
|
|
23
23
|
capabilities: { minVersion: 58 },
|
|
24
|
-
worktree: "main-only",
|
|
25
24
|
args: {
|
|
26
25
|
...outputFlags,
|
|
27
26
|
...profileFlag,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { F as outputFlags, I as profileFlag, M as connectionFlags, c as renderSummary } from "./cli.mjs";
|
|
2
2
|
import { c as NotificationUpdateInput, 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-Fcq1fIPw.mjs";
|
|
4
|
+
import { t as defineMetabaseCommand } from "./runtime-BMJv4VOi.mjs";
|
|
5
|
+
import { t as parseId } from "./parse-id-CPINxy7h.mjs";
|
|
6
6
|
import { t as describeAlert } from "./summary-BytbDz6e.mjs";
|
|
7
7
|
import { t as readBody } from "./body-DxRSAMNC.mjs";
|
|
8
8
|
import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
|
|
@@ -19,7 +19,6 @@ var update_default = defineMetabaseCommand({
|
|
|
19
19
|
"`mb alert get <id>` prints the current ones. An alert's card cannot be moved to a different card."
|
|
20
20
|
].join(" "),
|
|
21
21
|
capabilities: { minVersion: 58 },
|
|
22
|
-
worktree: "main-only",
|
|
23
22
|
args: {
|
|
24
23
|
...outputFlags,
|
|
25
24
|
...profileFlag,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as parseId } from "./parse-id-
|
|
1
|
+
import { F as outputFlags, I as profileFlag, M as connectionFlags, c as renderSummary } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-BMJv4VOi.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-CPINxy7h.mjs";
|
|
4
4
|
import { t as readBody } from "./body-DxRSAMNC.mjs";
|
|
5
5
|
import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
|
|
6
6
|
import { a as TableUpdateInput, t as Table } from "./table-CeeTJgQb.mjs";
|
|
@@ -12,7 +12,6 @@ var update_default = defineMetabaseCommand({
|
|
|
12
12
|
description: "Update a table (display name, description, visibility, etc.)"
|
|
13
13
|
},
|
|
14
14
|
capabilities: { minVersion: 58 },
|
|
15
|
-
worktree: "main-only",
|
|
16
15
|
args: {
|
|
17
16
|
...outputFlags,
|
|
18
17
|
...profileFlag,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as parseId } from "./parse-id-
|
|
1
|
+
import { F as outputFlags, I as profileFlag, M as connectionFlags, c as renderSummary } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-BMJv4VOi.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-CPINxy7h.mjs";
|
|
4
4
|
import { t as readBody } from "./body-DxRSAMNC.mjs";
|
|
5
5
|
import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
|
|
6
6
|
import { i as MeasureUpdateInput, t as Measure } from "./measure-CtfjqJFP.mjs";
|
|
7
|
-
import { a as preflightMbql5Query, n as MEASURE_DEFINITION_LABELS, o as skipValidateFlag } from "./validate-query-
|
|
7
|
+
import { a as preflightMbql5Query, n as MEASURE_DEFINITION_LABELS, o as skipValidateFlag } from "./validate-query-DaGYSmpQ.mjs";
|
|
8
8
|
import { t as measureView } from "./measure-4P0bOlZ3.mjs";
|
|
9
9
|
//#region src/commands/measure/update.ts
|
|
10
10
|
var update_default = defineMetabaseCommand({
|
|
@@ -18,7 +18,6 @@ var update_default = defineMetabaseCommand({
|
|
|
18
18
|
purpose: "the definition aggregation"
|
|
19
19
|
}],
|
|
20
20
|
capabilities: { minVersion: 59 },
|
|
21
|
-
worktree: "main-only",
|
|
22
21
|
args: {
|
|
23
22
|
...outputFlags,
|
|
24
23
|
...profileFlag,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as parseId } from "./parse-id-
|
|
1
|
+
import { F as outputFlags, I as profileFlag, M as connectionFlags, c as renderSummary } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-BMJv4VOi.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-CPINxy7h.mjs";
|
|
4
4
|
import { t as readBody } from "./body-DxRSAMNC.mjs";
|
|
5
5
|
import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
|
|
6
6
|
import { l as DashcardPatchInput, s as Dashcard } from "./dashboard-CKUR8ZpQ.mjs";
|
|
@@ -12,7 +12,6 @@ var update_dashcard_default = defineMetabaseCommand({
|
|
|
12
12
|
description: "Patch a single dashcard's layout or settings on a dashboard"
|
|
13
13
|
},
|
|
14
14
|
capabilities: { minVersion: 58 },
|
|
15
|
-
worktree: "main-only",
|
|
16
15
|
args: {
|
|
17
16
|
...outputFlags,
|
|
18
17
|
...profileFlag,
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { F as outputFlags, I as profileFlag, M as connectionFlags, c as renderSummary } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-BMJv4VOi.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-CPINxy7h.mjs";
|
|
4
|
+
import { t as readBody } from "./body-DxRSAMNC.mjs";
|
|
5
|
+
import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
|
|
6
|
+
import { a as TransformTestUpdateInput, t as TransformTest } from "./transform-test-Dhcj7u-U.mjs";
|
|
7
|
+
import { t as transformTestView } from "./transform-test-BJOPAwKl.mjs";
|
|
8
|
+
//#region src/commands/transform-test/update.ts
|
|
9
|
+
var update_default = defineMetabaseCommand({
|
|
10
|
+
meta: {
|
|
11
|
+
name: "update",
|
|
12
|
+
description: "Update a transform test from JSON"
|
|
13
|
+
},
|
|
14
|
+
details: "Only the fields the body carries are patched. `inputs` and `expectations` replace what is stored rather than merging into it. The body is closed: a test read back with `get --full` has to shed `id`, `entity_id`, `creator_id`, `created_at` and `updated_at` before it can be sent.",
|
|
15
|
+
capabilities: { minVersion: 64 },
|
|
16
|
+
args: {
|
|
17
|
+
...outputFlags,
|
|
18
|
+
...profileFlag,
|
|
19
|
+
...connectionFlags,
|
|
20
|
+
...bodyInputFlags,
|
|
21
|
+
id: {
|
|
22
|
+
type: "positional",
|
|
23
|
+
description: "Transform test id",
|
|
24
|
+
required: true
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
inputSchema: TransformTestUpdateInput,
|
|
28
|
+
outputSchema: TransformTest,
|
|
29
|
+
examples: ["cat patch.json | mb transform-test update 1", "mb transform-test update 1 --file patch.json"],
|
|
30
|
+
async run({ args, ctx, getClient }) {
|
|
31
|
+
const id = parseId(args.id);
|
|
32
|
+
const body = await readBody({
|
|
33
|
+
flag: args.body,
|
|
34
|
+
file: args.file
|
|
35
|
+
}, TransformTestUpdateInput);
|
|
36
|
+
const updated = await (await getClient()).transformTest.update(id, body);
|
|
37
|
+
renderSummary(updated, transformTestView, `Updated transform test ${updated.id}.`, ctx);
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
//#endregion
|
|
41
|
+
export { update_default as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { f as errorMessage, l as TimeoutError, n as AbortError, s as NetworkError, u as UnknownError } from "./predicates-Bkm2IoeX.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { A as name, F as outputFlags, h as promptConfirm, j as version, o as renderItem, t as interruptSignal, u as writeText } from "./cli.mjs";
|
|
3
|
+
import { t as defineMetabaseCommand, u as USER_AGENT } from "./runtime-BMJv4VOi.mjs";
|
|
4
4
|
import { h as parseJson, r as HttpError } from "./network-error-D6CiOEBw.mjs";
|
|
5
5
|
import { n as throwIfAborted, t as combineAborts } from "./signal-CMd0EFUa.mjs";
|
|
6
6
|
import { n as streamProcess } from "./process-DBOOrmET.mjs";
|
|
@@ -292,7 +292,6 @@ var upgrade_default = defineMetabaseCommand({
|
|
|
292
292
|
description: "Upgrade the Metabase CLI itself to the latest published release"
|
|
293
293
|
},
|
|
294
294
|
capabilities: null,
|
|
295
|
-
worktree: "any",
|
|
296
295
|
args: {
|
|
297
296
|
...outputFlags,
|
|
298
297
|
check: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
1
|
+
import { F as outputFlags, I as profileFlag, M as connectionFlags, c as renderSummary } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-BMJv4VOi.mjs";
|
|
3
3
|
import { t as ContentTranslationUploadResult } from "./content-translation-BrHOrmj9.mjs";
|
|
4
4
|
import { n as requireUploadFilePath, t as readCsvFile } from "./upload-CD555ui1.mjs";
|
|
5
5
|
//#region src/output/views/content-translation.ts
|
|
@@ -22,7 +22,6 @@ var upload_default = defineMetabaseCommand({
|
|
|
22
22
|
minVersion: 58,
|
|
23
23
|
tokenFeature: "content_translation"
|
|
24
24
|
},
|
|
25
|
-
worktree: "main-only",
|
|
26
25
|
args: {
|
|
27
26
|
...outputFlags,
|
|
28
27
|
...profileFlag,
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { t as defineCommandGroup } from "./group-DBM87IgC.mjs";
|
|
2
|
+
//#region src/commands/upload/index.ts
|
|
3
|
+
var upload_default = defineCommandGroup({
|
|
4
|
+
name: "upload",
|
|
5
|
+
description: "Upload CSV files into Metabase",
|
|
6
|
+
subCommands: {
|
|
7
|
+
csv: () => import("./csv-GincCch9.mjs").then((m) => m.default),
|
|
8
|
+
append: () => import("./append-D16_s1HW.mjs").then((m) => m.default),
|
|
9
|
+
replace: () => import("./replace-C6YqqCG9.mjs").then((m) => m.default)
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
//#endregion
|
|
13
|
+
export { upload_default as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as ConfigError } from "./predicates-Bkm2IoeX.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { F as outputFlags, l as writeJson, u as writeText } from "./cli.mjs";
|
|
3
|
+
import { R as parseInteger, t as defineMetabaseCommand } from "./runtime-BMJv4VOi.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
import { randomUUID } from "node:crypto";
|
|
6
6
|
//#region src/commands/uuid.ts
|
|
@@ -17,7 +17,6 @@ var uuid_default = defineMetabaseCommand({
|
|
|
17
17
|
purpose: "where lib/uuid values are used"
|
|
18
18
|
}],
|
|
19
19
|
capabilities: null,
|
|
20
|
-
worktree: "any",
|
|
21
20
|
args: {
|
|
22
21
|
...outputFlags,
|
|
23
22
|
count: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as ConfigError } from "./predicates-Bkm2IoeX.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { l as writeJson } from "./cli.mjs";
|
|
3
3
|
import { i as validateQuery, r as isMbql5Query, t as assertNotLegacyEnvelopeWrappingMbql5 } from "./validate-BWchyW0V.mjs";
|
|
4
4
|
//#region src/commands/validate-query.ts
|
|
5
5
|
const skipValidateFlag = { "skip-validate": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as parseId } from "./parse-id-
|
|
1
|
+
import { F as outputFlags, I as profileFlag, M as connectionFlags, c as renderSummary, f as formatScalar } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-BMJv4VOi.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-CPINxy7h.mjs";
|
|
4
4
|
import { s as FieldValues } from "./field-Cr2DPUG9.mjs";
|
|
5
5
|
import { n as fieldValuesView } from "./field-BPsNa-TO.mjs";
|
|
6
6
|
//#region src/commands/field/values.ts
|
|
@@ -10,7 +10,6 @@ var values_default = defineMetabaseCommand({
|
|
|
10
10
|
description: "Fetch the cached distinct values for a field (FieldValues list)"
|
|
11
11
|
},
|
|
12
12
|
capabilities: { minVersion: 58 },
|
|
13
|
-
worktree: "any",
|
|
14
13
|
args: {
|
|
15
14
|
...outputFlags,
|
|
16
15
|
...profileFlag,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as createClient } from "./client-
|
|
1
|
+
import { n as createClient } from "./client-DynvZqa0.mjs";
|
|
2
2
|
import { f as errorMessage, l as TimeoutError, o as MetabaseError, s as NetworkError } from "./predicates-Bkm2IoeX.mjs";
|
|
3
|
-
import {
|
|
3
|
+
import { F as tryParseTag, I as SessionProperties, u as USER_AGENT } from "./runtime-BMJv4VOi.mjs";
|
|
4
4
|
import { r as HttpError } from "./network-error-D6CiOEBw.mjs";
|
|
5
5
|
//#region ../client/src/version/probe.ts
|
|
6
6
|
const PROBE_PATH = "/api/session/properties";
|