@metabase/cli 0.1.6 → 0.1.8
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/README.md +14 -14
- package/dist/{add-collection-BU8r3r2M.mjs → add-collection-CwrbKmC1.mjs} +8 -6
- package/dist/add-collection-DxtuNxeP.mjs +11 -0
- package/dist/{archive-DMPS8Kih.mjs → archive-BAjGIzhn.mjs} +7 -7
- package/dist/{archive-C1enZgKV.mjs → archive-BO3DOWI4.mjs} +6 -6
- package/dist/{archive-CRhiBpPJ.mjs → archive-BpKZsGAm.mjs} +7 -7
- package/dist/{archive-lWgqiFAt.mjs → archive-BzvqQd34.mjs} +6 -6
- package/dist/{archive-CDA0KxL8.mjs → archive-DqUtqRut.mjs} +6 -6
- package/dist/{archive-BNinrUak.mjs → archive-ZnnJc2iT.mjs} +7 -7
- package/dist/auth-B9B4pUaH.mjs +19 -0
- package/dist/{body-DjdFxjpg.mjs → body-DDYKoyMt.mjs} +1 -1
- package/dist/{branches-B1WRfG7-.mjs → branches-DjiGsjAz.mjs} +5 -5
- package/dist/{cancel-Dl_Ho056.mjs → cancel-BwtDQ2MR.mjs} +6 -6
- package/dist/{cancel-task-CdigdCaO.mjs → cancel-task-uJp18RvR.mjs} +6 -6
- package/dist/card-D54unw6r.mjs +20 -0
- package/dist/{card-DlCAaAPq.mjs → card-ezYiriML.mjs} +1 -1
- package/dist/{cards-BGiJS675.mjs → cards-z68PANDD.mjs} +5 -5
- package/dist/cli.mjs +24 -24
- package/dist/collection-B5kIKRTL.mjs +20 -0
- package/dist/{create-BYlIju0b.mjs → create-4EAGYVyp.mjs} +7 -7
- package/dist/{create-BTcpaop_.mjs → create-6XE7GYxk.mjs} +6 -6
- package/dist/{create-BNiva__H.mjs → create-7JOWFxqu.mjs} +8 -8
- package/dist/{create-dhxPxfF3.mjs → create-BzK59YlR.mjs} +10 -10
- package/dist/{create-CHF313Qg.mjs → create-C8gA-XP2.mjs} +8 -6
- package/dist/{create-DGth_uOp.mjs → create-CQ4Vg4Ge.mjs} +7 -7
- package/dist/{create-CwGtmwqm.mjs → create-DHWfmO2L.mjs} +7 -7
- package/dist/{create-CzzrbL0u.mjs → create-Dd_Gyg_F.mjs} +6 -6
- package/dist/{create-Be_0Vier.mjs → create-GVfCQU3B.mjs} +6 -6
- package/dist/{create-branch-DKZkoQ64.mjs → create-branch-CdWGiREu.mjs} +6 -6
- package/dist/{credentials-dzeq7ckm.mjs → credentials-CFA9iGZG.mjs} +9 -9
- package/dist/{current-task-CCRzm0_7.mjs → current-task-nPs-iCLi.mjs} +7 -7
- package/dist/dashboard-lw6IFfOs.mjs +21 -0
- package/dist/{database-CIXwHKjK.mjs → database-BPT6BrmF.mjs} +3 -3
- package/dist/{database-lH-B3G1I.mjs → database-BXiue1in.mjs} +1 -1
- package/dist/db-CBCj8sBg.mjs +22 -0
- package/dist/{delete-ZjnV35OJ.mjs → delete-CJqLgr6w.mjs} +7 -5
- package/dist/{delete-CM3jnAeQ.mjs → delete-CiV6f69N.mjs} +12 -8
- package/dist/{delete-Dimc-2y8.mjs → delete-Do1agSiL.mjs} +7 -5
- package/dist/{delete-runtime-B6RQo_pw.mjs → delete-runtime-uuYbd4k2.mjs} +5 -5
- package/dist/{delete-table-agZJpivt.mjs → delete-table-ZiJDpMFT.mjs} +7 -5
- package/dist/{deprovision-CwxcIT3k.mjs → deprovision-C-qEnh-P.mjs} +11 -9
- package/dist/{dirty-D4d0yHqj.mjs → dirty-BnTG7w7v.mjs} +5 -5
- package/dist/{docker-Oq80q3tu.mjs → docker-B-QQWThD.mjs} +3 -3
- package/dist/{eid-BXzaQh0o.mjs → eid-CwQ_smOD.mjs} +10 -5
- package/dist/{error-C9S6PN3-.mjs → error-CTVL5CdB.mjs} +3 -2
- package/dist/{export-DTygoXBP.mjs → export-DR2cC4rL.mjs} +10 -9
- package/dist/field-DJmQ2pul.mjs +18 -0
- package/dist/{field-yomXlkvl.mjs → field-E0IBy4Uw.mjs} +12 -3
- package/dist/{fields-CoQi99gv.mjs → fields-Ck31lDz9.mjs} +6 -6
- package/dist/{get-C3HdQ91a.mjs → get-BFJ3VBPa.mjs} +5 -5
- package/dist/{get-DSWFjy7O.mjs → get-BNKsNCcx.mjs} +5 -5
- package/dist/{get-C2p383Qc.mjs → get-BPOd0Rm8.mjs} +5 -5
- package/dist/{get-CzuzeKSe.mjs → get-BZiu-u-9.mjs} +7 -7
- package/dist/{get-Bzys7vgp.mjs → get-C71ypFQk.mjs} +5 -5
- package/dist/{get-C_w1kvN3.mjs → get-CICzGFSW.mjs} +6 -6
- package/dist/{get-CP3Z3NiH.mjs → get-CyG_P55z.mjs} +6 -6
- package/dist/{get-lb7q3JYs.mjs → get-DauAF3sm.mjs} +5 -5
- package/dist/{get-DQTZG_NP.mjs → get-DxqzDKKK.mjs} +5 -5
- package/dist/{get-D3SbEQSE.mjs → get-DyArILlF.mjs} +6 -6
- package/dist/{get-Ddr0XLh7.mjs → get-F338MOK-.mjs} +5 -5
- package/dist/{get-DFxZXaKz.mjs → get-GWRprk7k.mjs} +5 -5
- package/dist/{get-Hc93A0Yz.mjs → get-pO0wiy1e.mjs} +5 -5
- package/dist/{get-run-B7sKdaDU.mjs → get-run-DhM_PyVy.mjs} +5 -5
- package/dist/git-sync-rmjYOGFK.mjs +28 -0
- package/dist/{has-remote-changes-BY10-nnE.mjs → has-remote-changes-Ca0exJmb.mjs} +7 -6
- package/dist/{import-CiMz4Wz-.mjs → import-DjclIzGP.mjs} +11 -9
- package/dist/{is-dirty-BZOaryxT.mjs → is-dirty-Cke0a1ie.mjs} +5 -5
- package/dist/is-dirty-DFGgGLDi.mjs +10 -0
- package/dist/{items-BWfvkY-J.mjs → items-BSpapmCU.mjs} +7 -7
- package/dist/{license-Dxarh-gG.mjs → license-j0tDQLKI.mjs} +3 -3
- package/dist/{list-Brgh-Z2v.mjs → list-BI1PfPjn.mjs} +4 -4
- package/dist/{list-D4sFiqX8.mjs → list-BRXGDSMo.mjs} +5 -5
- package/dist/{list-DXH7TlkU.mjs → list-Br77Mw6U.mjs} +4 -4
- package/dist/{list-sD5N3fGk.mjs → list-Brt4oKO7.mjs} +6 -6
- package/dist/{list--OYdUTtu.mjs → list-CEE9yKNp.mjs} +4 -4
- package/dist/{list-DZ8fNUoQ.mjs → list-D1qhCQn0.mjs} +6 -6
- package/dist/{list-SOG0whQ-.mjs → list-DUyWON1F.mjs} +4 -4
- package/dist/{list-Clz5igWg.mjs → list-DWWGcUTg.mjs} +5 -5
- package/dist/{list-CL7eCOQE.mjs → list-DmO4ADQq.mjs} +4 -4
- package/dist/{list-BI4zr8LW.mjs → list-Fjjtpghb.mjs} +5 -5
- package/dist/{list-2j7GsXsl.mjs → list-V5IuMr_5.mjs} +4 -4
- package/dist/{list-C3hfovHv.mjs → list-bVlCwg8g.mjs} +4 -4
- package/dist/{list-zSO0DMw-.mjs → list-evetBTcH.mjs} +4 -4
- package/dist/{list-d58BprgJ.mjs → list-fIV-P6wP.mjs} +4 -4
- package/dist/{login-Bm2AnCez.mjs → login-BJGhZLgZ.mjs} +13 -9
- package/dist/{logout-BlyRJODO.mjs → logout-BAGLqtnV.mjs} +8 -7
- package/dist/{logs-CywPikkL.mjs → logs-jx5b_YDk.mjs} +6 -6
- package/dist/{manifest-BBR46KFM.mjs → manifest-BNh0Lw6p.mjs} +1 -1
- package/dist/measure-BfgxqewH.mjs +19 -0
- package/dist/{metadata-DqiI2q9q.mjs → metadata-B-GOcWqL.mjs} +6 -6
- package/dist/{metadata-B8ZSF9LA.mjs → metadata-DJAdsOoh.mjs} +7 -7
- package/dist/{parse-id-lk_K-CEF.mjs → parse-id-D1LTTt9L.mjs} +1 -1
- package/dist/{parse-schemas-BqUdWUwq.mjs → parse-schemas-DDK9nXuh.mjs} +1 -1
- package/dist/{path-AEtZ3mBq.mjs → path-D5kX-msX.mjs} +5 -5
- package/dist/{poll-DHKDpCiq.mjs → poll-DxpnK1wW.mjs} +1 -1
- package/dist/{poll-task-Cooi0lQV.mjs → poll-task-D8mG49IN.mjs} +19 -3
- package/dist/{preflight-aXV5LyDs.mjs → preflight-Df_FqJ6o.mjs} +3 -3
- package/dist/{provision-UWcNDoDe.mjs → provision-BJd6zO1D.mjs} +12 -11
- package/dist/ps-CpyHEvv7.mjs +11 -0
- package/dist/{ps-CJU0EbrC.mjs → ps-dEqRGeB3.mjs} +4 -4
- package/dist/{query-BlsVNZpD.mjs → query-OIuumiXN.mjs} +9 -8
- package/dist/query-result-ABPLz6I4.mjs +19 -0
- package/dist/{query-AaKzYnTY.mjs → query-zWFRDH3T.mjs} +9 -7
- package/dist/{remove-BFWun0e8.mjs → remove-BNQ1c6hB.mjs} +8 -7
- package/dist/{remove-collection-CoCmrrQs.mjs → remove-collection-BxmiXWKz.mjs} +10 -8
- package/dist/{render-CfznwleY.mjs → render-0_GsapXa.mjs} +39 -9
- package/dist/{render-OQn3iRsI.mjs → render-khznBlla.mjs} +1 -1
- package/dist/{rescan-values-C0FDsjT7.mjs → rescan-values-M7g81KIl.mjs} +9 -9
- package/dist/{run-B4Wn43zm.mjs → run-DTsx8bLb.mjs} +14 -13
- package/dist/{runs-Bbaszr18.mjs → runs-CqfJIuh_.mjs} +6 -6
- package/dist/{runtime-Dmv5VtUK.mjs → runtime-B40L_bj8.mjs} +7 -11
- package/dist/{schema-tables-CaWinbuK.mjs → schema-tables-CjBRF0_0.mjs} +6 -6
- package/dist/{schemas-DUgGpAyB.mjs → schemas-GIIbek2O.mjs} +4 -4
- package/dist/{search-BLrBXLUk.mjs → search-h78uOYec.mjs} +4 -4
- package/dist/segment-CoElN2b-.mjs +19 -0
- package/dist/{set-DfGsta5O.mjs → set-BRDxcLcQ.mjs} +8 -7
- package/dist/{set-B8cUbRLD.mjs → set-Dclba9xF.mjs} +4 -4
- package/dist/setting-mKzZJpQY.mjs +17 -0
- package/dist/{setup-C9ikBRw_.mjs → setup-WTIT2WbM.mjs} +5 -5
- package/dist/{skills-CiN1OQ8W.mjs → skills-BkregMyb.mjs} +1 -1
- package/dist/{skills-CUHIcQS6.mjs → skills-tMYd5d9v.mjs} +3 -3
- package/dist/snippet-B84H3tfp.mjs +19 -0
- package/dist/{start-3PX3ahjT.mjs → start-B7ByBicB.mjs} +12 -11
- package/dist/{stash-EIDcSvpF.mjs → stash-DxoAJzcK.mjs} +11 -9
- package/dist/{status-B0_MiZEf.mjs → status-B1dc3bbQ.mjs} +4 -4
- package/dist/{status-95ElRAu9.mjs → status-D0Ukfodl.mjs} +10 -7
- package/dist/{status-CEplmC44.mjs → status-DAzD1Cn_.mjs} +4 -4
- package/dist/{stop-CQ0XGrN8.mjs → stop-Cvexagxh.mjs} +13 -9
- package/dist/{summary-C12LiEuJ.mjs → summary-3qOMUcEX.mjs} +5 -5
- package/dist/{sync-schema-Ba8M3DiX.mjs → sync-schema-CrmVX1cy.mjs} +9 -9
- package/dist/table-B0fRQv91.mjs +19 -0
- package/dist/{table-C7a5V6Zn.mjs → table-qDD2kApF.mjs} +1 -1
- package/dist/transform-K_kp6Rdm.mjs +24 -0
- package/dist/transform-job-CuNN8zgv.mjs +19 -0
- package/dist/{tree-Des2ZG9d.mjs → tree-DsnIPFyE.mjs} +4 -4
- package/dist/{update-F6DmZncY.mjs → update-BEtl9LpG.mjs} +7 -7
- package/dist/{update-njHe3j-s.mjs → update-BRLcnSwK.mjs} +8 -8
- package/dist/{update-Bx54nWEI.mjs → update-Baya6OkO.mjs} +10 -10
- package/dist/{update-DBi5U8zb.mjs → update-BsgHRoZ8.mjs} +9 -9
- package/dist/{update-CyIZdbIQ.mjs → update-CLsqoEJ8.mjs} +7 -7
- package/dist/{update-_QfgNa53.mjs → update-CZEd_Eej.mjs} +8 -8
- package/dist/{update-mYVnoYNV.mjs → update-DPouQi4U.mjs} +8 -8
- package/dist/{update-DSgceARZ.mjs → update-DWn-nLPo.mjs} +7 -7
- package/dist/{update-DzAN4SPj.mjs → update-UaPqSfPN.mjs} +8 -8
- package/dist/{update-dashcard-wpSjv4M7.mjs → update-dashcard-DK9X91ha.mjs} +7 -7
- package/dist/{update-DHZubok3.mjs → update-hiJdbbsb.mjs} +12 -11
- package/dist/{upgrade-iAuvhX-W.mjs → upgrade-UqdvTikR.mjs} +11 -25
- package/dist/{url-DWaT6WIZ.mjs → url-LMJZRDv4.mjs} +8 -8
- package/dist/{uuid-CMKnS8-z.mjs → uuid-BWCaWG4O.mjs} +3 -3
- package/dist/{validate-query-Cw6WE5Y8.mjs → validate-query-CYvOP8Ld.mjs} +1 -1
- package/dist/{values-BfSTAbzc.mjs → values-D_wycrcr.mjs} +14 -6
- package/dist/{verify-D5YtTqqp.mjs → verify-D7hb6VMy.mjs} +1 -1
- package/dist/{wait-Bv3Tsnv4.mjs → wait-B5IpNFCG.mjs} +8 -8
- package/dist/{wait-8yV9_WIo.mjs → wait-DHjXk3jD.mjs} +2 -2
- package/dist/{wait-flags-Dzq9BGQY.mjs → wait-flags-CNIeSq0_.mjs} +2 -2
- package/dist/workspace-Bt8n3ojY.mjs +25 -0
- package/dist/{workspace-credentials-BXpABsNZ.mjs → workspace-credentials-8CBMQJFz.mjs} +1 -1
- package/package.json +1 -1
- package/skill-data/visualization/SKILL.md +158 -0
- package/skill-data/visualization/references/settings.md +414 -0
- package/dist/add-collection-C0w6ACQF.mjs +0 -11
- package/dist/auth-CzXb_zB2.mjs +0 -19
- package/dist/card-DP4rfoOi.mjs +0 -21
- package/dist/collection-tY18ezvn.mjs +0 -21
- package/dist/dashboard-ChM_Tu0l.mjs +0 -22
- package/dist/db-DrQn_i3W.mjs +0 -22
- package/dist/field-Z6Pcxf4n.mjs +0 -19
- package/dist/git-sync-CiGAad76.mjs +0 -28
- package/dist/is-dirty-Ume4oV0j.mjs +0 -10
- package/dist/measure-C44EK_xt.mjs +0 -20
- package/dist/ps-DEroLgbI.mjs +0 -11
- package/dist/segment-B3Uwwcsm.mjs +0 -20
- package/dist/setting-D2p2MA7f.mjs +0 -18
- package/dist/snippet-B7D0uWlz.mjs +0 -20
- package/dist/table-e6h8SLVX.mjs +0 -20
- package/dist/transform-BMYh1lsC.mjs +0 -25
- package/dist/transform-job-Cm7z5TfH.mjs +0 -20
- package/dist/workspace-CKLZrR7l.mjs +0 -26
- package/skill-data/viz/SKILL.md +0 -137
- package/skill-data/viz/references/settings.md +0 -312
- /package/dist/{collection-B3sPXRLs.mjs → collection-Bcy8cWYH.mjs} +0 -0
- /package/dist/{dashboard-FY5UzJ_Z.mjs → dashboard-B4bn3z6t.mjs} +0 -0
- /package/dist/{key-C2XG394c.mjs → key-vkNkH82H.mjs} +0 -0
- /package/dist/{measure-ClESGxIb.mjs → measure-Bt3InQsA.mjs} +0 -0
- /package/dist/{paginate-Dfm9eO9A.mjs → paginate-BexjkjbY.mjs} +0 -0
- /package/dist/{parse-ref-BiETXmvm.mjs → parse-ref-DKag6a6I.mjs} +0 -0
- /package/dist/{process-C7V8LJ-j.mjs → process-CM7Uu5q_.mjs} +0 -0
- /package/dist/{revision-message-flag-WmsIzUOM.mjs → revision-message-flag-DY29-cgz.mjs} +0 -0
- /package/dist/{segment-Be2v4ilr.mjs → segment-DhBmcr_E.mjs} +0 -0
- /package/dist/{setting-oL97SNeO.mjs → setting-BzCng1Ub.mjs} +0 -0
- /package/dist/{snippet-COggaWxx.mjs → snippet-bi_0XbNT.mjs} +0 -0
- /package/dist/{transform-GTW3G-01.mjs → transform-BKahefz_.mjs} +0 -0
- /package/dist/{transform-job-DeTDPMxt.mjs → transform-job-DjhoJbiV.mjs} +0 -0
- /package/dist/{workspace-BBXJczJK.mjs → workspace-D8HtUN0y.mjs} +0 -0
- /package/dist/{yaml-YTQiYJ9s.mjs → yaml-Gv6wRFMF.mjs} +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-CTVL5CdB.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-B40L_bj8.mjs";
|
|
4
4
|
import "./capabilities-7e9MgquN.mjs";
|
|
5
|
-
import {
|
|
5
|
+
import { renderSummary } from "./render-0_GsapXa.mjs";
|
|
6
6
|
import "./input-cMSEqISy.mjs";
|
|
7
|
-
import { readBody } from "./body-
|
|
7
|
+
import { readBody } from "./body-DDYKoyMt.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-D7q87Btw.mjs";
|
|
9
|
-
import { Workspace, WorkspaceCreateInput, workspaceView } from "./workspace-
|
|
9
|
+
import { Workspace, WorkspaceCreateInput, workspaceView } from "./workspace-D8HtUN0y.mjs";
|
|
10
10
|
|
|
11
11
|
//#region src/commands/workspace/create.ts
|
|
12
12
|
var create_default = defineMetabaseCommand({
|
|
@@ -44,7 +44,9 @@ var create_default = defineMetabaseCommand({
|
|
|
44
44
|
method: "POST",
|
|
45
45
|
body
|
|
46
46
|
});
|
|
47
|
-
|
|
47
|
+
const hasDatabases = (created.databases ?? []).length > 0;
|
|
48
|
+
const hint = hasDatabases ? "" : " No databases yet — run `mb workspace database provision`.";
|
|
49
|
+
renderSummary(created, workspaceView, `Created workspace ${created.id} "${created.name}".${hint}`, ctx);
|
|
48
50
|
}
|
|
49
51
|
});
|
|
50
52
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-CTVL5CdB.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-B40L_bj8.mjs";
|
|
4
4
|
import "./capabilities-7e9MgquN.mjs";
|
|
5
|
-
import {
|
|
5
|
+
import { renderSummary } from "./render-0_GsapXa.mjs";
|
|
6
6
|
import "./input-cMSEqISy.mjs";
|
|
7
|
-
import { readBody } from "./body-
|
|
7
|
+
import { readBody } from "./body-DDYKoyMt.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-D7q87Btw.mjs";
|
|
9
9
|
import "./validate-dPEOnOf8.mjs";
|
|
10
|
-
import { SEGMENT_DEFINITION_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-
|
|
11
|
-
import { Segment, SegmentCreateInput, segmentView } from "./segment-
|
|
10
|
+
import { SEGMENT_DEFINITION_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-CYvOP8Ld.mjs";
|
|
11
|
+
import { Segment, SegmentCreateInput, segmentView } from "./segment-DhBmcr_E.mjs";
|
|
12
12
|
|
|
13
13
|
//#region src/commands/segment/create.ts
|
|
14
14
|
var create_default = defineMetabaseCommand({
|
|
@@ -42,7 +42,7 @@ var create_default = defineMetabaseCommand({
|
|
|
42
42
|
method: "POST",
|
|
43
43
|
body
|
|
44
44
|
});
|
|
45
|
-
|
|
45
|
+
renderSummary(created, segmentView, `Created segment ${created.id} "${created.name}".`, ctx);
|
|
46
46
|
}
|
|
47
47
|
});
|
|
48
48
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-CTVL5CdB.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-B40L_bj8.mjs";
|
|
4
4
|
import "./capabilities-7e9MgquN.mjs";
|
|
5
|
-
import {
|
|
5
|
+
import { renderSummary } from "./render-0_GsapXa.mjs";
|
|
6
6
|
import "./input-cMSEqISy.mjs";
|
|
7
|
-
import { readBody } from "./body-
|
|
7
|
+
import { readBody } from "./body-DDYKoyMt.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-D7q87Btw.mjs";
|
|
9
9
|
import "./validate-dPEOnOf8.mjs";
|
|
10
|
-
import { MEASURE_DEFINITION_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-
|
|
11
|
-
import { Measure, MeasureCreateInput, measureView } from "./measure-
|
|
10
|
+
import { MEASURE_DEFINITION_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-CYvOP8Ld.mjs";
|
|
11
|
+
import { Measure, MeasureCreateInput, measureView } from "./measure-Bt3InQsA.mjs";
|
|
12
12
|
|
|
13
13
|
//#region src/commands/measure/create.ts
|
|
14
14
|
var create_default = defineMetabaseCommand({
|
|
@@ -42,7 +42,7 @@ var create_default = defineMetabaseCommand({
|
|
|
42
42
|
method: "POST",
|
|
43
43
|
body
|
|
44
44
|
});
|
|
45
|
-
|
|
45
|
+
renderSummary(created, measureView, `Created measure ${created.id} "${created.name}".`, ctx);
|
|
46
46
|
}
|
|
47
47
|
});
|
|
48
48
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-CTVL5CdB.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-B40L_bj8.mjs";
|
|
4
4
|
import "./capabilities-7e9MgquN.mjs";
|
|
5
|
-
import {
|
|
5
|
+
import { renderSummary } from "./render-0_GsapXa.mjs";
|
|
6
6
|
import "./input-cMSEqISy.mjs";
|
|
7
|
-
import { readBody } from "./body-
|
|
7
|
+
import { readBody } from "./body-DDYKoyMt.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-D7q87Btw.mjs";
|
|
9
|
-
import { TransformJob, TransformJobCreateInput, transformJobView } from "./transform-job-
|
|
9
|
+
import { TransformJob, TransformJobCreateInput, transformJobView } from "./transform-job-DjhoJbiV.mjs";
|
|
10
10
|
|
|
11
11
|
//#region src/commands/transform-job/create.ts
|
|
12
12
|
var create_default = defineMetabaseCommand({
|
|
@@ -37,7 +37,7 @@ var create_default = defineMetabaseCommand({
|
|
|
37
37
|
method: "POST",
|
|
38
38
|
body
|
|
39
39
|
});
|
|
40
|
-
|
|
40
|
+
renderSummary(created, transformJobView, `Created transform job ${created.id} "${created.name}".`, ctx);
|
|
41
41
|
}
|
|
42
42
|
});
|
|
43
43
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-CTVL5CdB.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-B40L_bj8.mjs";
|
|
4
4
|
import "./capabilities-7e9MgquN.mjs";
|
|
5
|
-
import {
|
|
5
|
+
import { renderSummary } from "./render-0_GsapXa.mjs";
|
|
6
6
|
import "./input-cMSEqISy.mjs";
|
|
7
|
-
import { readBody } from "./body-
|
|
7
|
+
import { readBody } from "./body-DDYKoyMt.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-D7q87Btw.mjs";
|
|
9
|
-
import { Snippet, SnippetCreateInput, snippetView } from "./snippet-
|
|
9
|
+
import { Snippet, SnippetCreateInput, snippetView } from "./snippet-bi_0XbNT.mjs";
|
|
10
10
|
|
|
11
11
|
//#region src/commands/snippet/create.ts
|
|
12
12
|
var create_default = defineMetabaseCommand({
|
|
@@ -37,7 +37,7 @@ var create_default = defineMetabaseCommand({
|
|
|
37
37
|
method: "POST",
|
|
38
38
|
body
|
|
39
39
|
});
|
|
40
|
-
|
|
40
|
+
renderSummary(created, snippetView, `Created snippet ${created.id} "${created.name}".`, ctx);
|
|
41
41
|
}
|
|
42
42
|
});
|
|
43
43
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ConfigError } from "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-CTVL5CdB.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-B40L_bj8.mjs";
|
|
4
4
|
import "./capabilities-7e9MgquN.mjs";
|
|
5
|
-
import {
|
|
6
|
-
import { REMOTE_SYNC_PATHS } from "./poll-task-
|
|
7
|
-
import "./poll-
|
|
5
|
+
import { renderSummary } from "./render-0_GsapXa.mjs";
|
|
6
|
+
import { REMOTE_SYNC_PATHS } from "./poll-task-D8mG49IN.mjs";
|
|
7
|
+
import "./poll-DxpnK1wW.mjs";
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
|
|
10
10
|
//#region src/commands/git-sync/create-branch.ts
|
|
@@ -51,7 +51,7 @@ var create_branch_default = defineMetabaseCommand({
|
|
|
51
51
|
method: "POST",
|
|
52
52
|
body: { name }
|
|
53
53
|
});
|
|
54
|
-
|
|
54
|
+
renderSummary(result, createBranchView, `Created branch "${name}" and switched git-sync to it.`, ctx);
|
|
55
55
|
}
|
|
56
56
|
});
|
|
57
57
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { outputFlags } from "./error-
|
|
3
|
-
import { defineMetabaseCommand, localUrl, parseJson } from "./runtime-
|
|
2
|
+
import { outputFlags } from "./error-CTVL5CdB.mjs";
|
|
3
|
+
import { defineMetabaseCommand, localUrl, parseJson } from "./runtime-B40L_bj8.mjs";
|
|
4
4
|
import "./capabilities-7e9MgquN.mjs";
|
|
5
|
-
import { renderItem } from "./render-
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
7
|
-
import "./poll-
|
|
8
|
-
import "./yaml-
|
|
9
|
-
import "./process-
|
|
10
|
-
import { checkDockerReady, readContainerCredentialsFile, requireWorkspaceContainerLocation } from "./docker-
|
|
11
|
-
import { WorkspaceCredentials } from "./workspace-credentials-
|
|
5
|
+
import { renderItem } from "./render-0_GsapXa.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-D1LTTt9L.mjs";
|
|
7
|
+
import "./poll-DxpnK1wW.mjs";
|
|
8
|
+
import "./yaml-Gv6wRFMF.mjs";
|
|
9
|
+
import "./process-CM7Uu5q_.mjs";
|
|
10
|
+
import { checkDockerReady, readContainerCredentialsFile, requireWorkspaceContainerLocation } from "./docker-B-QQWThD.mjs";
|
|
11
|
+
import { WorkspaceCredentials } from "./workspace-credentials-8CBMQJFz.mjs";
|
|
12
12
|
import { z } from "zod";
|
|
13
13
|
|
|
14
14
|
//#region src/commands/workspace/credentials.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-CTVL5CdB.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-B40L_bj8.mjs";
|
|
4
4
|
import "./capabilities-7e9MgquN.mjs";
|
|
5
|
-
import {
|
|
6
|
-
import { SyncTaskOrIdle, fetchCurrentTask, syncTaskIdleView, syncTaskView } from "./poll-task-
|
|
7
|
-
import "./poll-
|
|
5
|
+
import { renderSummary } from "./render-0_GsapXa.mjs";
|
|
6
|
+
import { SyncTaskOrIdle, fetchCurrentTask, formatSyncTask, syncTaskIdleView, syncTaskView } from "./poll-task-D8mG49IN.mjs";
|
|
7
|
+
import "./poll-DxpnK1wW.mjs";
|
|
8
8
|
|
|
9
9
|
//#region src/commands/git-sync/current-task.ts
|
|
10
10
|
const CurrentTaskResult = SyncTaskOrIdle;
|
|
@@ -29,10 +29,10 @@ var current_task_default = defineMetabaseCommand({
|
|
|
29
29
|
const task = await fetchCurrentTask(client);
|
|
30
30
|
if (task === null) {
|
|
31
31
|
const idle = { status: "idle" };
|
|
32
|
-
|
|
32
|
+
renderSummary(idle, syncTaskIdleView, "No git-sync task is running.", ctx);
|
|
33
33
|
return;
|
|
34
34
|
}
|
|
35
|
-
|
|
35
|
+
renderSummary(task, syncTaskView, formatSyncTask(task), ctx);
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
38
|
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { defineCommand } from "citty";
|
|
2
|
+
|
|
3
|
+
//#region src/commands/dashboard/index.ts
|
|
4
|
+
var dashboard_default = defineCommand({
|
|
5
|
+
meta: {
|
|
6
|
+
name: "dashboard",
|
|
7
|
+
description: "Manage Metabase dashboards"
|
|
8
|
+
},
|
|
9
|
+
subCommands: {
|
|
10
|
+
list: () => import("./list-Br77Mw6U.mjs").then((mod) => mod.default),
|
|
11
|
+
get: () => import("./get-BNKsNCcx.mjs").then((mod) => mod.default),
|
|
12
|
+
cards: () => import("./cards-z68PANDD.mjs").then((mod) => mod.default),
|
|
13
|
+
create: () => import("./create-BzK59YlR.mjs").then((mod) => mod.default),
|
|
14
|
+
update: () => import("./update-Baya6OkO.mjs").then((mod) => mod.default),
|
|
15
|
+
"update-dashcard": () => import("./update-dashcard-DK9X91ha.mjs").then((mod) => mod.default),
|
|
16
|
+
archive: () => import("./archive-DqUtqRut.mjs").then((mod) => mod.default)
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
//#endregion
|
|
21
|
+
export { dashboard_default as default };
|
|
@@ -7,9 +7,9 @@ var database_default = defineCommand({
|
|
|
7
7
|
description: "Manage databases provisioned to a workspace"
|
|
8
8
|
},
|
|
9
9
|
subCommands: {
|
|
10
|
-
provision: () => import("./provision-
|
|
11
|
-
update: () => import("./update-
|
|
12
|
-
deprovision: () => import("./deprovision-
|
|
10
|
+
provision: () => import("./provision-BJd6zO1D.mjs").then((mod) => mod.default),
|
|
11
|
+
update: () => import("./update-hiJdbbsb.mjs").then((mod) => mod.default),
|
|
12
|
+
deprovision: () => import("./deprovision-C-qEnh-P.mjs").then((mod) => mod.default)
|
|
13
13
|
}
|
|
14
14
|
});
|
|
15
15
|
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { defineCommand } from "citty";
|
|
2
|
+
|
|
3
|
+
//#region src/commands/db/index.ts
|
|
4
|
+
var db_default = defineCommand({
|
|
5
|
+
meta: {
|
|
6
|
+
name: "db",
|
|
7
|
+
description: "Inspect and sync Metabase databases",
|
|
8
|
+
alias: "database"
|
|
9
|
+
},
|
|
10
|
+
subCommands: {
|
|
11
|
+
list: () => import("./list-D1qhCQn0.mjs").then((m) => m.default),
|
|
12
|
+
get: () => import("./get-BZiu-u-9.mjs").then((m) => m.default),
|
|
13
|
+
metadata: () => import("./metadata-DJAdsOoh.mjs").then((m) => m.default),
|
|
14
|
+
schemas: () => import("./schemas-GIIbek2O.mjs").then((m) => m.default),
|
|
15
|
+
"schema-tables": () => import("./schema-tables-CjBRF0_0.mjs").then((m) => m.default),
|
|
16
|
+
"sync-schema": () => import("./sync-schema-CrmVX1cy.mjs").then((m) => m.default),
|
|
17
|
+
"rescan-values": () => import("./rescan-values-M7g81KIl.mjs").then((m) => m.default)
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
//#endregion
|
|
22
|
+
export { db_default as default };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-CTVL5CdB.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-B40L_bj8.mjs";
|
|
4
4
|
import "./capabilities-7e9MgquN.mjs";
|
|
5
|
-
import "./render-
|
|
5
|
+
import "./render-0_GsapXa.mjs";
|
|
6
6
|
import "./prompt-CFKoys7k.mjs";
|
|
7
|
-
import { parseId } from "./parse-id-
|
|
8
|
-
import { DeleteResult, confirmAndDelete } from "./delete-runtime-
|
|
7
|
+
import { parseId } from "./parse-id-D1LTTt9L.mjs";
|
|
8
|
+
import { DeleteResult, confirmAndDelete } from "./delete-runtime-uuYbd4k2.mjs";
|
|
9
9
|
|
|
10
10
|
//#region src/commands/transform/delete.ts
|
|
11
11
|
var delete_default = defineMetabaseCommand({
|
|
@@ -39,6 +39,8 @@ var delete_default = defineMetabaseCommand({
|
|
|
39
39
|
path: `/api/transform/${id}`,
|
|
40
40
|
yes: args.yes,
|
|
41
41
|
promptMessage: `Delete transform ${id}?`,
|
|
42
|
+
successMessage: `Deleted transform ${id}.`,
|
|
43
|
+
abortMessage: `Aborted; transform ${id} was not deleted.`,
|
|
42
44
|
client,
|
|
43
45
|
ctx
|
|
44
46
|
});
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { outputFlags } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { outputFlags } from "./error-CTVL5CdB.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-B40L_bj8.mjs";
|
|
4
4
|
import "./capabilities-7e9MgquN.mjs";
|
|
5
|
-
import {
|
|
5
|
+
import { renderSummary } from "./render-0_GsapXa.mjs";
|
|
6
6
|
import { promptConfirm } from "./prompt-CFKoys7k.mjs";
|
|
7
|
-
import { parseId } from "./parse-id-
|
|
8
|
-
import "./poll-
|
|
9
|
-
import "./process-
|
|
10
|
-
import { checkDockerReady, containerNameFor, removeContainer, removeVolume, volumeNameFor } from "./docker-
|
|
7
|
+
import { parseId } from "./parse-id-D1LTTt9L.mjs";
|
|
8
|
+
import "./poll-DxpnK1wW.mjs";
|
|
9
|
+
import "./process-CM7Uu5q_.mjs";
|
|
10
|
+
import { checkDockerReady, containerNameFor, removeContainer, removeVolume, volumeNameFor } from "./docker-B-QQWThD.mjs";
|
|
11
11
|
import { z } from "zod";
|
|
12
12
|
|
|
13
13
|
//#region src/commands/workspace/delete.ts
|
|
@@ -92,7 +92,11 @@ var delete_default = defineMetabaseCommand({
|
|
|
92
92
|
removed_container: removedContainer,
|
|
93
93
|
removed_volume: removedVolume
|
|
94
94
|
};
|
|
95
|
-
|
|
95
|
+
let message;
|
|
96
|
+
if (!result.removed_container) message = `No container found for workspace ${workspaceId} — nothing to remove.`;
|
|
97
|
+
else if (result.removed_volume) message = `Removed workspace ${workspaceId}: container ${containerName} and app-db volume ${volumeName}.`;
|
|
98
|
+
else message = `Removed workspace ${workspaceId}: container ${containerName} (volume ${volumeName} kept).`;
|
|
99
|
+
renderSummary(result, deleteResultView, message, ctx);
|
|
96
100
|
}
|
|
97
101
|
});
|
|
98
102
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-CTVL5CdB.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-B40L_bj8.mjs";
|
|
4
4
|
import "./capabilities-7e9MgquN.mjs";
|
|
5
|
-
import "./render-
|
|
5
|
+
import "./render-0_GsapXa.mjs";
|
|
6
6
|
import "./prompt-CFKoys7k.mjs";
|
|
7
|
-
import { parseId } from "./parse-id-
|
|
8
|
-
import { DeleteResult, confirmAndDelete } from "./delete-runtime-
|
|
7
|
+
import { parseId } from "./parse-id-D1LTTt9L.mjs";
|
|
8
|
+
import { DeleteResult, confirmAndDelete } from "./delete-runtime-uuYbd4k2.mjs";
|
|
9
9
|
|
|
10
10
|
//#region src/commands/transform-job/delete.ts
|
|
11
11
|
var delete_default = defineMetabaseCommand({
|
|
@@ -39,6 +39,8 @@ var delete_default = defineMetabaseCommand({
|
|
|
39
39
|
path: `/api/transform-job/${id}`,
|
|
40
40
|
yes: args.yes,
|
|
41
41
|
promptMessage: `Delete transform job ${id}?`,
|
|
42
|
+
successMessage: `Deleted transform job ${id}.`,
|
|
43
|
+
abortMessage: `Aborted; transform job ${id} was not deleted.`,
|
|
42
44
|
client,
|
|
43
45
|
ctx
|
|
44
46
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ConfigError } from "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { renderSummary } from "./render-0_GsapXa.mjs";
|
|
3
3
|
import { promptConfirm } from "./prompt-CFKoys7k.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
|
|
@@ -34,11 +34,11 @@ async function confirmAndDelete(args) {
|
|
|
34
34
|
initialValue: false
|
|
35
35
|
});
|
|
36
36
|
if (!ok) {
|
|
37
|
-
|
|
37
|
+
renderSummary({
|
|
38
38
|
deleted: false,
|
|
39
39
|
aborted: true,
|
|
40
40
|
id: args.id
|
|
41
|
-
}, deleteResultView, args.ctx);
|
|
41
|
+
}, deleteResultView, args.abortMessage, args.ctx);
|
|
42
42
|
return;
|
|
43
43
|
}
|
|
44
44
|
}
|
|
@@ -47,11 +47,11 @@ async function confirmAndDelete(args) {
|
|
|
47
47
|
expectContentType: "binary"
|
|
48
48
|
});
|
|
49
49
|
if (args.afterDelete) await args.afterDelete();
|
|
50
|
-
|
|
50
|
+
renderSummary({
|
|
51
51
|
deleted: true,
|
|
52
52
|
aborted: false,
|
|
53
53
|
id: args.id
|
|
54
|
-
}, deleteResultView, args.ctx);
|
|
54
|
+
}, deleteResultView, args.successMessage, args.ctx);
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
//#endregion
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-CTVL5CdB.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-B40L_bj8.mjs";
|
|
4
4
|
import "./capabilities-7e9MgquN.mjs";
|
|
5
|
-
import "./render-
|
|
5
|
+
import "./render-0_GsapXa.mjs";
|
|
6
6
|
import "./prompt-CFKoys7k.mjs";
|
|
7
|
-
import { parseId } from "./parse-id-
|
|
8
|
-
import { DeleteResult, confirmAndDelete } from "./delete-runtime-
|
|
7
|
+
import { parseId } from "./parse-id-D1LTTt9L.mjs";
|
|
8
|
+
import { DeleteResult, confirmAndDelete } from "./delete-runtime-uuYbd4k2.mjs";
|
|
9
9
|
|
|
10
10
|
//#region src/commands/transform/delete-table.ts
|
|
11
11
|
var delete_table_default = defineMetabaseCommand({
|
|
@@ -39,6 +39,8 @@ var delete_table_default = defineMetabaseCommand({
|
|
|
39
39
|
path: `/api/transform/${id}/table`,
|
|
40
40
|
yes: args.yes,
|
|
41
41
|
promptMessage: `Drop transform ${id}'s output table?`,
|
|
42
|
+
successMessage: `Dropped transform ${id}'s output table.`,
|
|
43
|
+
abortMessage: `Aborted; transform ${id}'s output table was not dropped.`,
|
|
42
44
|
client,
|
|
43
45
|
ctx
|
|
44
46
|
});
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-CTVL5CdB.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-B40L_bj8.mjs";
|
|
4
4
|
import "./capabilities-7e9MgquN.mjs";
|
|
5
|
-
import "./render-
|
|
5
|
+
import "./render-0_GsapXa.mjs";
|
|
6
6
|
import "./prompt-CFKoys7k.mjs";
|
|
7
|
-
import { parseId } from "./parse-id-
|
|
8
|
-
import "./poll-
|
|
9
|
-
import { parseWaitFlags, waitFlags } from "./wait-flags-
|
|
10
|
-
import { DeleteResult, confirmAndDelete } from "./delete-runtime-
|
|
11
|
-
import "./workspace-
|
|
12
|
-
import { waitForDatabaseGone } from "./wait-
|
|
7
|
+
import { parseId } from "./parse-id-D1LTTt9L.mjs";
|
|
8
|
+
import "./poll-DxpnK1wW.mjs";
|
|
9
|
+
import { parseWaitFlags, waitFlags } from "./wait-flags-CNIeSq0_.mjs";
|
|
10
|
+
import { DeleteResult, confirmAndDelete } from "./delete-runtime-uuYbd4k2.mjs";
|
|
11
|
+
import "./workspace-D8HtUN0y.mjs";
|
|
12
|
+
import { waitForDatabaseGone } from "./wait-DHjXk3jD.mjs";
|
|
13
13
|
|
|
14
14
|
//#region src/commands/workspace/database/deprovision.ts
|
|
15
15
|
var deprovision_default = defineMetabaseCommand({
|
|
@@ -54,6 +54,8 @@ var deprovision_default = defineMetabaseCommand({
|
|
|
54
54
|
path: `/api/ee/workspace-manager/${workspaceId}/database/${databaseId}`,
|
|
55
55
|
yes: args.yes,
|
|
56
56
|
promptMessage: `Deprovision database ${databaseId} from workspace ${workspaceId}?`,
|
|
57
|
+
successMessage: `Deprovisioned database ${databaseId} from workspace ${workspaceId}.`,
|
|
58
|
+
abortMessage: `Aborted; database ${databaseId} was not deprovisioned.`,
|
|
57
59
|
client,
|
|
58
60
|
ctx,
|
|
59
61
|
...wait.enabled ? { afterDelete: () => waitForDatabaseGone(client, workspaceId, databaseId, wait.schedule) } : {}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-CTVL5CdB.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-B40L_bj8.mjs";
|
|
4
4
|
import "./capabilities-7e9MgquN.mjs";
|
|
5
|
-
import { renderList } from "./render-
|
|
6
|
-
import { REMOTE_SYNC_PATHS, SyncDirtyItem, SyncDirtyItemCompact, syncDirtyItemView } from "./poll-task-
|
|
7
|
-
import "./poll-
|
|
5
|
+
import { renderList } from "./render-0_GsapXa.mjs";
|
|
6
|
+
import { REMOTE_SYNC_PATHS, SyncDirtyItem, SyncDirtyItemCompact, syncDirtyItemView } from "./poll-task-D8mG49IN.mjs";
|
|
7
|
+
import "./poll-DxpnK1wW.mjs";
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
|
|
10
10
|
//#region src/commands/git-sync/dirty.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ConfigError, MetabaseError, errorMessage } from "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { parseJson } from "./runtime-
|
|
3
|
-
import { pollUntil } from "./poll-
|
|
4
|
-
import { ProcessNotFoundError, runProcess, runProcessBinary, streamProcess } from "./process-
|
|
2
|
+
import { parseJson } from "./runtime-B40L_bj8.mjs";
|
|
3
|
+
import { pollUntil } from "./poll-DxpnK1wW.mjs";
|
|
4
|
+
import { ProcessNotFoundError, runProcess, runProcessBinary, streamProcess } from "./process-CM7Uu5q_.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
|
|
7
7
|
//#region src/runtime/tar.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ConfigError } from "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand, parseCsv } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-CTVL5CdB.mjs";
|
|
3
|
+
import { defineMetabaseCommand, parseCsv } from "./runtime-B40L_bj8.mjs";
|
|
4
4
|
import "./capabilities-7e9MgquN.mjs";
|
|
5
|
-
import {
|
|
5
|
+
import { renderSummary } from "./render-0_GsapXa.mjs";
|
|
6
6
|
import "./input-cMSEqISy.mjs";
|
|
7
|
-
import { readBody } from "./body-
|
|
7
|
+
import { readBody } from "./body-DDYKoyMt.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-D7q87Btw.mjs";
|
|
9
9
|
import { z } from "zod";
|
|
10
10
|
|
|
@@ -108,7 +108,12 @@ var eid_default = defineMetabaseCommand({
|
|
|
108
108
|
method: "POST",
|
|
109
109
|
body
|
|
110
110
|
});
|
|
111
|
-
|
|
111
|
+
const lines = Object.entries(result.entity_ids).map(([eid, entry]) => {
|
|
112
|
+
const resolved = entry.status === "ok" && entry.id !== void 0;
|
|
113
|
+
const target = resolved ? String(entry.id) : "not found";
|
|
114
|
+
return `${entry.type} ${eid} → ${target}`;
|
|
115
|
+
});
|
|
116
|
+
renderSummary(result, eidTranslateView, lines.join("\n"), ctx);
|
|
112
117
|
}
|
|
113
118
|
});
|
|
114
119
|
function parseModel(raw) {
|
|
@@ -52,7 +52,8 @@ const outputFlags = {
|
|
|
52
52
|
};
|
|
53
53
|
const profileFlag = { profile: {
|
|
54
54
|
type: "string",
|
|
55
|
-
description: "Named profile (default: 'default')"
|
|
55
|
+
description: "Named profile (default: 'default')",
|
|
56
|
+
alias: "p"
|
|
56
57
|
} };
|
|
57
58
|
const connectionFlags = {
|
|
58
59
|
url: {
|
|
@@ -74,7 +75,7 @@ const connectionFlags = {
|
|
|
74
75
|
//#endregion
|
|
75
76
|
//#region package.json
|
|
76
77
|
var name = "@metabase/cli";
|
|
77
|
-
var version = "0.1.
|
|
78
|
+
var version = "0.1.8";
|
|
78
79
|
var description = "Metabase CLI";
|
|
79
80
|
var license = "AGPL-3.0";
|
|
80
81
|
var repository = {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-CTVL5CdB.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-B40L_bj8.mjs";
|
|
4
4
|
import { warn } from "./capabilities-7e9MgquN.mjs";
|
|
5
|
-
import {
|
|
6
|
-
import "./parse-id-
|
|
7
|
-
import { REMOTE_SYNC_PATHS, SyncTask, pollSyncTask, throwIfFailedTask } from "./poll-task-
|
|
8
|
-
import "./poll-
|
|
9
|
-
import { gitSyncWaitFlags, parseWaitFlags } from "./wait-flags-
|
|
5
|
+
import { renderSummary } from "./render-0_GsapXa.mjs";
|
|
6
|
+
import "./parse-id-D1LTTt9L.mjs";
|
|
7
|
+
import { REMOTE_SYNC_PATHS, SyncTask, formatSyncTask, pollSyncTask, throwIfFailedTask } from "./poll-task-D8mG49IN.mjs";
|
|
8
|
+
import "./poll-DxpnK1wW.mjs";
|
|
9
|
+
import { gitSyncWaitFlags, parseWaitFlags } from "./wait-flags-CNIeSq0_.mjs";
|
|
10
10
|
import { z } from "zod";
|
|
11
11
|
|
|
12
12
|
//#region src/commands/git-sync/export.ts
|
|
@@ -81,7 +81,7 @@ var export_default = defineMetabaseCommand({
|
|
|
81
81
|
message: kickoff.message,
|
|
82
82
|
task_id: kickoff.task_id
|
|
83
83
|
};
|
|
84
|
-
|
|
84
|
+
renderSummary(result, syncExportView, `Started export task #${kickoff.task_id}.`, ctx);
|
|
85
85
|
} else {
|
|
86
86
|
const final = await pollSyncTask(client, wait.schedule);
|
|
87
87
|
const result = {
|
|
@@ -89,7 +89,8 @@ var export_default = defineMetabaseCommand({
|
|
|
89
89
|
task_id: kickoff.task_id,
|
|
90
90
|
final
|
|
91
91
|
};
|
|
92
|
-
|
|
92
|
+
const text = final === null ? `Export task #${kickoff.task_id} finished.` : formatSyncTask(final);
|
|
93
|
+
renderSummary(result, syncExportView, text, ctx);
|
|
93
94
|
throwIfFailedTask(final, "export");
|
|
94
95
|
}
|
|
95
96
|
emitRealignHint(ctx);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { defineCommand } from "citty";
|
|
2
|
+
|
|
3
|
+
//#region src/commands/field/index.ts
|
|
4
|
+
var field_default = defineCommand({
|
|
5
|
+
meta: {
|
|
6
|
+
name: "field",
|
|
7
|
+
description: "Manage Metabase fields"
|
|
8
|
+
},
|
|
9
|
+
subCommands: {
|
|
10
|
+
get: () => import("./get-BFJ3VBPa.mjs").then((m) => m.default),
|
|
11
|
+
values: () => import("./values-D_wycrcr.mjs").then((m) => m.default),
|
|
12
|
+
summary: () => import("./summary-3qOMUcEX.mjs").then((m) => m.default),
|
|
13
|
+
update: () => import("./update-CLsqoEJ8.mjs").then((m) => m.default)
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
//#endregion
|
|
18
|
+
export { field_default as default };
|