@metabase/cli 0.1.6 → 0.1.7
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-C9BdVBs2.mjs +11 -0
- package/dist/{add-collection-BU8r3r2M.mjs → add-collection-DQjTlDNF.mjs} +8 -6
- package/dist/{archive-CDA0KxL8.mjs → archive-B3qiL-kK.mjs} +6 -6
- package/dist/{archive-DMPS8Kih.mjs → archive-BXzghEQX.mjs} +7 -7
- package/dist/{archive-C1enZgKV.mjs → archive-CBGKzEAl.mjs} +6 -6
- package/dist/{archive-CRhiBpPJ.mjs → archive-CuVk8iwN.mjs} +7 -7
- package/dist/{archive-lWgqiFAt.mjs → archive-DTN9tLGT.mjs} +6 -6
- package/dist/{archive-BNinrUak.mjs → archive-De8jzzq7.mjs} +7 -7
- package/dist/auth-D9eAyVoG.mjs +19 -0
- package/dist/{body-DjdFxjpg.mjs → body-tcURGnGh.mjs} +1 -1
- package/dist/{branches-B1WRfG7-.mjs → branches-CIGkjXIk.mjs} +5 -5
- package/dist/{cancel-Dl_Ho056.mjs → cancel-pPsvgJ0Z.mjs} +6 -6
- package/dist/{cancel-task-CdigdCaO.mjs → cancel-task-BLGE4UlL.mjs} +6 -6
- package/dist/card-DDDrWcDU.mjs +20 -0
- package/dist/{card-DlCAaAPq.mjs → card-ezYiriML.mjs} +1 -1
- package/dist/{cards-BGiJS675.mjs → cards-Dq3nx_9n.mjs} +5 -5
- package/dist/cli.mjs +24 -24
- package/dist/collection-DkEvCDar.mjs +20 -0
- package/dist/{create-dhxPxfF3.mjs → create-9DBTkbMq.mjs} +10 -10
- package/dist/{create-CHF313Qg.mjs → create-B1dyuL9Y.mjs} +8 -6
- package/dist/{create-BNiva__H.mjs → create-BIphz0kO.mjs} +8 -8
- package/dist/{create-BYlIju0b.mjs → create-BcgoukG4.mjs} +7 -7
- package/dist/{create-CwGtmwqm.mjs → create-BdPoSk_7.mjs} +7 -7
- package/dist/{create-Be_0Vier.mjs → create-BrUqxreg.mjs} +6 -6
- package/dist/{create-DGth_uOp.mjs → create-DHscDhRd.mjs} +7 -7
- package/dist/{create-CzzrbL0u.mjs → create-aPaUEGdr.mjs} +6 -6
- package/dist/{create-branch-DKZkoQ64.mjs → create-branch-DGoc9CUU.mjs} +6 -6
- package/dist/{create-BTcpaop_.mjs → create-w3mQg9n4.mjs} +6 -6
- package/dist/{credentials-dzeq7ckm.mjs → credentials-qryRLUed.mjs} +9 -9
- package/dist/{current-task-CCRzm0_7.mjs → current-task-DZM28rnr.mjs} +7 -7
- package/dist/dashboard-BLf1RZlk.mjs +21 -0
- package/dist/{database-lH-B3G1I.mjs → database-BXiue1in.mjs} +1 -1
- package/dist/{database-CIXwHKjK.mjs → database-Ce1gOJF7.mjs} +3 -3
- package/dist/db-CWTFe_FZ.mjs +22 -0
- package/dist/{delete-ZjnV35OJ.mjs → delete-BPaFdHZP.mjs} +7 -5
- package/dist/{delete-Dimc-2y8.mjs → delete-BrJOotpW.mjs} +7 -5
- package/dist/{delete-CM3jnAeQ.mjs → delete-FFj1xQWO.mjs} +12 -8
- package/dist/{delete-runtime-B6RQo_pw.mjs → delete-runtime-uuYbd4k2.mjs} +5 -5
- package/dist/{delete-table-agZJpivt.mjs → delete-table-CNupWUO0.mjs} +7 -5
- package/dist/{deprovision-CwxcIT3k.mjs → deprovision-BNr9fPDY.mjs} +11 -9
- package/dist/{dirty-D4d0yHqj.mjs → dirty-BCkNOY8c.mjs} +5 -5
- package/dist/{docker-Oq80q3tu.mjs → docker-Ds252Mwc.mjs} +3 -3
- package/dist/{eid-BXzaQh0o.mjs → eid-CLY5X0Uw.mjs} +10 -5
- package/dist/{error-C9S6PN3-.mjs → error-ZsFeevV2.mjs} +3 -2
- package/dist/{export-DTygoXBP.mjs → export-CgHgWW3I.mjs} +10 -9
- package/dist/{field-yomXlkvl.mjs → field-E0IBy4Uw.mjs} +12 -3
- package/dist/field-LL6W_c-c.mjs +18 -0
- package/dist/{fields-CoQi99gv.mjs → fields-RkRWU-u9.mjs} +6 -6
- package/dist/{get-C3HdQ91a.mjs → get-42tJ7BNp.mjs} +5 -5
- package/dist/{get-D3SbEQSE.mjs → get-B8l4t4Pz.mjs} +6 -6
- package/dist/{get-Bzys7vgp.mjs → get-B9kwSs6U.mjs} +5 -5
- package/dist/{get-DFxZXaKz.mjs → get-Bo4Cpd_c.mjs} +5 -5
- package/dist/{get-DSWFjy7O.mjs → get-C9O_aEGo.mjs} +5 -5
- package/dist/{get-lb7q3JYs.mjs → get-CRvbChoX.mjs} +5 -5
- package/dist/{get-C2p383Qc.mjs → get-CTDqioaj.mjs} +5 -5
- package/dist/{get-CzuzeKSe.mjs → get-CiZrZJLt.mjs} +7 -7
- package/dist/{get-Hc93A0Yz.mjs → get-CvmqPN30.mjs} +5 -5
- package/dist/{get-C_w1kvN3.mjs → get-DmzgSgrl.mjs} +6 -6
- package/dist/{get-Ddr0XLh7.mjs → get-DsqGHNHN.mjs} +5 -5
- package/dist/{get-run-B7sKdaDU.mjs → get-run-CBwcRc8E.mjs} +5 -5
- package/dist/{get-CP3Z3NiH.mjs → get-sMpa-X4E.mjs} +6 -6
- package/dist/{get-DQTZG_NP.mjs → get-y17zJMnU.mjs} +5 -5
- package/dist/git-sync-CrWTo3YX.mjs +28 -0
- package/dist/{has-remote-changes-BY10-nnE.mjs → has-remote-changes-CfRidwXT.mjs} +7 -6
- package/dist/{import-CiMz4Wz-.mjs → import-BZV0Z2KR.mjs} +11 -9
- package/dist/is-dirty-CPzOnnH6.mjs +10 -0
- package/dist/{is-dirty-BZOaryxT.mjs → is-dirty-hKcB4OH9.mjs} +5 -5
- package/dist/{items-BWfvkY-J.mjs → items-C94eW2Yd.mjs} +7 -7
- package/dist/{license-Dxarh-gG.mjs → license-B37055sr.mjs} +3 -3
- package/dist/{list-Clz5igWg.mjs → list-B0V7FeL2.mjs} +5 -5
- package/dist/{list-SOG0whQ-.mjs → list-BFlzLGlw.mjs} +4 -4
- package/dist/{list-2j7GsXsl.mjs → list-BJXaGk-z.mjs} +4 -4
- package/dist/{list-DZ8fNUoQ.mjs → list-BS_Bxejg.mjs} +6 -6
- package/dist/{list-d58BprgJ.mjs → list-BmHoYJr7.mjs} +4 -4
- package/dist/{list-D4sFiqX8.mjs → list-C-oZe1_p.mjs} +5 -5
- package/dist/{list-C3hfovHv.mjs → list-CF1pMN4S.mjs} +4 -4
- package/dist/{list-Brgh-Z2v.mjs → list-CU6sOfI-.mjs} +4 -4
- package/dist/{list-DXH7TlkU.mjs → list-CqN4gvCk.mjs} +4 -4
- package/dist/{list-zSO0DMw-.mjs → list-DUXdt0XI.mjs} +4 -4
- package/dist/{list-BI4zr8LW.mjs → list-DfDZr55C.mjs} +5 -5
- package/dist/{list--OYdUTtu.mjs → list-DrINpVLM.mjs} +4 -4
- package/dist/{list-sD5N3fGk.mjs → list-DuSoEk_J.mjs} +6 -6
- package/dist/{list-CL7eCOQE.mjs → list-HS15y_WN.mjs} +4 -4
- package/dist/{login-Bm2AnCez.mjs → login-enh9Yimb.mjs} +13 -9
- package/dist/{logout-BlyRJODO.mjs → logout-BWLPLDh8.mjs} +8 -7
- package/dist/{logs-CywPikkL.mjs → logs-Cu3QtvPs.mjs} +6 -6
- package/dist/{manifest-BBR46KFM.mjs → manifest-BNh0Lw6p.mjs} +1 -1
- package/dist/measure-CDlEPFtB.mjs +19 -0
- package/dist/{metadata-B8ZSF9LA.mjs → metadata-BTTEBWdS.mjs} +7 -7
- package/dist/{metadata-DqiI2q9q.mjs → metadata-D2TxboMm.mjs} +6 -6
- package/dist/{parse-id-lk_K-CEF.mjs → parse-id-0_tOPvfI.mjs} +1 -1
- package/dist/{parse-schemas-BqUdWUwq.mjs → parse-schemas-D-qVLl4z.mjs} +1 -1
- package/dist/{path-AEtZ3mBq.mjs → path-C8GrBdgT.mjs} +5 -5
- package/dist/{poll-DHKDpCiq.mjs → poll-4eoh5J0r.mjs} +1 -1
- package/dist/{poll-task-Cooi0lQV.mjs → poll-task-51WRdugU.mjs} +19 -3
- package/dist/{preflight-aXV5LyDs.mjs → preflight-BhsErYz3.mjs} +3 -3
- package/dist/{provision-UWcNDoDe.mjs → provision-Chf86BF0.mjs} +12 -11
- package/dist/{ps-CJU0EbrC.mjs → ps-CEYtsKBj.mjs} +4 -4
- package/dist/ps-CIDwaubS.mjs +11 -0
- package/dist/{query-BlsVNZpD.mjs → query-BBCAF-tG.mjs} +9 -8
- package/dist/{query-AaKzYnTY.mjs → query-DYVBnu9d.mjs} +9 -7
- package/dist/query-result-ABPLz6I4.mjs +19 -0
- package/dist/{remove-BFWun0e8.mjs → remove-2yInufA6.mjs} +8 -7
- package/dist/{remove-collection-CoCmrrQs.mjs → remove-collection-CBAHz0Dk.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-cfTSNQZo.mjs} +9 -9
- package/dist/{run-B4Wn43zm.mjs → run-qgdEJv-I.mjs} +14 -13
- package/dist/{runs-Bbaszr18.mjs → runs-BFIIH4GL.mjs} +6 -6
- package/dist/{runtime-Dmv5VtUK.mjs → runtime-Duawf5lE.mjs} +7 -11
- package/dist/{schema-tables-CaWinbuK.mjs → schema-tables-C2xM3dho.mjs} +6 -6
- package/dist/{schemas-DUgGpAyB.mjs → schemas-BP7xiktH.mjs} +4 -4
- package/dist/{search-BLrBXLUk.mjs → search-DYP3lOlq.mjs} +4 -4
- package/dist/segment-B6HnNGDs.mjs +19 -0
- package/dist/{set-DfGsta5O.mjs → set-DpRQqdo7.mjs} +8 -7
- package/dist/{set-B8cUbRLD.mjs → set-Tt-ioa4L.mjs} +4 -4
- package/dist/setting-DUa96KF3.mjs +17 -0
- package/dist/{setup-C9ikBRw_.mjs → setup-BPlllnim.mjs} +5 -5
- package/dist/{skills-CiN1OQ8W.mjs → skills-BkregMyb.mjs} +1 -1
- package/dist/{skills-CUHIcQS6.mjs → skills-SqbPo0BI.mjs} +3 -3
- package/dist/snippet-dJ68tGsl.mjs +19 -0
- package/dist/{start-3PX3ahjT.mjs → start-DJZA67WF.mjs} +12 -11
- package/dist/{stash-EIDcSvpF.mjs → stash-C89zNKxo.mjs} +11 -9
- package/dist/{status-95ElRAu9.mjs → status-B1EJ_jv0.mjs} +10 -7
- package/dist/{status-B0_MiZEf.mjs → status-BNvFPemM.mjs} +4 -4
- package/dist/{status-CEplmC44.mjs → status-D5wSqYV_.mjs} +4 -4
- package/dist/{stop-CQ0XGrN8.mjs → stop-5rCLmkCQ.mjs} +13 -9
- package/dist/{summary-C12LiEuJ.mjs → summary-Cihbx0Qs.mjs} +5 -5
- package/dist/{sync-schema-Ba8M3DiX.mjs → sync-schema-C3odu0ZH.mjs} +9 -9
- package/dist/table-J2f0STnB.mjs +19 -0
- package/dist/{table-C7a5V6Zn.mjs → table-qDD2kApF.mjs} +1 -1
- package/dist/transform-job-OW4SDhsQ.mjs +19 -0
- package/dist/transform-q1LYWQtW.mjs +24 -0
- package/dist/{tree-Des2ZG9d.mjs → tree-mvq9gM9w.mjs} +4 -4
- package/dist/{update-mYVnoYNV.mjs → update-BoIiuC70.mjs} +8 -8
- package/dist/{update-F6DmZncY.mjs → update-C0jP0AKT.mjs} +7 -7
- package/dist/{update-DzAN4SPj.mjs → update-CbBnHz42.mjs} +8 -8
- package/dist/{update-_QfgNa53.mjs → update-CtOo3LsX.mjs} +8 -8
- package/dist/{update-DBi5U8zb.mjs → update-DCrOQ1PW.mjs} +9 -9
- package/dist/{update-DHZubok3.mjs → update-DEZayTb4.mjs} +12 -11
- package/dist/{update-DSgceARZ.mjs → update-DwRxdflw.mjs} +7 -7
- package/dist/{update-CyIZdbIQ.mjs → update-Rr4usmCo.mjs} +7 -7
- package/dist/{update-njHe3j-s.mjs → update-VvKMnwsM.mjs} +8 -8
- package/dist/{update-dashcard-wpSjv4M7.mjs → update-dashcard-DFvIz8Qj.mjs} +7 -7
- package/dist/{update-Bx54nWEI.mjs → update-tRparnUs.mjs} +10 -10
- package/dist/{upgrade-iAuvhX-W.mjs → upgrade-D-Rl_fH9.mjs} +11 -25
- package/dist/{url-DWaT6WIZ.mjs → url-BB6jeNQj.mjs} +8 -8
- package/dist/{uuid-CMKnS8-z.mjs → uuid-BSVUk8u2.mjs} +3 -3
- package/dist/{validate-query-Cw6WE5Y8.mjs → validate-query-CYvOP8Ld.mjs} +1 -1
- package/dist/{values-BfSTAbzc.mjs → values-D1RJE4H6.mjs} +14 -6
- package/dist/{verify-D5YtTqqp.mjs → verify-A7BWfBPZ.mjs} +1 -1
- package/dist/{wait-8yV9_WIo.mjs → wait-B17I_pWy.mjs} +2 -2
- package/dist/{wait-Bv3Tsnv4.mjs → wait-DK5QDZ8n.mjs} +8 -8
- package/dist/{wait-flags-Dzq9BGQY.mjs → wait-flags-DlfbIXHw.mjs} +2 -2
- package/dist/{workspace-credentials-BXpABsNZ.mjs → workspace-credentials-8CBMQJFz.mjs} +1 -1
- package/dist/workspace-ri6r3zWo.mjs +25 -0
- package/package.json +1 -1
- 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/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,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-ZsFeevV2.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-Duawf5lE.mjs";
|
|
4
4
|
import "./capabilities-7e9MgquN.mjs";
|
|
5
|
-
import {
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
7
|
-
import "./poll-
|
|
8
|
-
import "./process-
|
|
9
|
-
import { checkDockerReady, containerLifecycleStatus, containerNameFor, stopContainer } from "./docker-
|
|
10
|
-
import { LocalWorkspaceState } from "./ps-
|
|
5
|
+
import { renderSummary } from "./render-0_GsapXa.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-0_tOPvfI.mjs";
|
|
7
|
+
import "./poll-4eoh5J0r.mjs";
|
|
8
|
+
import "./process-CM7Uu5q_.mjs";
|
|
9
|
+
import { checkDockerReady, containerLifecycleStatus, containerNameFor, stopContainer } from "./docker-Ds252Mwc.mjs";
|
|
10
|
+
import { LocalWorkspaceState } from "./ps-CEYtsKBj.mjs";
|
|
11
11
|
import { z } from "zod";
|
|
12
12
|
|
|
13
13
|
//#region src/commands/workspace/stop.ts
|
|
@@ -75,7 +75,11 @@ var stop_default = defineMetabaseCommand({
|
|
|
75
75
|
stopped,
|
|
76
76
|
prior_state: priorState
|
|
77
77
|
};
|
|
78
|
-
|
|
78
|
+
let message;
|
|
79
|
+
if (result.stopped) message = `Stopped workspace ${workspaceId} (container ${containerName}).`;
|
|
80
|
+
else if (result.prior_state !== null) message = `Workspace ${workspaceId} container is already ${result.prior_state} — nothing to stop.`;
|
|
81
|
+
else message = `No container found for workspace ${workspaceId} — nothing to stop.`;
|
|
82
|
+
renderSummary(result, stopResultView, message, ctx);
|
|
79
83
|
}
|
|
80
84
|
});
|
|
81
85
|
|
|
@@ -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-ZsFeevV2.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-Duawf5lE.mjs";
|
|
4
4
|
import "./capabilities-7e9MgquN.mjs";
|
|
5
|
-
import { renderItem } from "./render-
|
|
6
|
-
import { FieldSummary, FieldSummaryRaw, fieldSummaryView } from "./field-
|
|
7
|
-
import { parseId } from "./parse-id-
|
|
5
|
+
import { renderItem } from "./render-0_GsapXa.mjs";
|
|
6
|
+
import { FieldSummary, FieldSummaryRaw, fieldSummaryView } from "./field-E0IBy4Uw.mjs";
|
|
7
|
+
import { parseId } from "./parse-id-0_tOPvfI.mjs";
|
|
8
8
|
|
|
9
9
|
//#region src/commands/field/summary.ts
|
|
10
10
|
var summary_default = defineMetabaseCommand({
|
|
@@ -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-ZsFeevV2.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-Duawf5lE.mjs";
|
|
4
4
|
import "./capabilities-7e9MgquN.mjs";
|
|
5
|
-
import {
|
|
6
|
-
import "./field-
|
|
7
|
-
import { parseId } from "./parse-id-
|
|
8
|
-
import "./table-
|
|
9
|
-
import { DatabaseSyncResult, databaseSyncResultView } from "./database-
|
|
5
|
+
import { renderSummary } from "./render-0_GsapXa.mjs";
|
|
6
|
+
import "./field-E0IBy4Uw.mjs";
|
|
7
|
+
import { parseId } from "./parse-id-0_tOPvfI.mjs";
|
|
8
|
+
import "./table-qDD2kApF.mjs";
|
|
9
|
+
import { DatabaseSyncResult, databaseSyncResultView } from "./database-BXiue1in.mjs";
|
|
10
10
|
import { z } from "zod";
|
|
11
11
|
|
|
12
12
|
//#region src/commands/db/sync-schema.ts
|
|
@@ -33,10 +33,10 @@ var sync_schema_default = defineMetabaseCommand({
|
|
|
33
33
|
const id = parseId(args.id);
|
|
34
34
|
const client = await getClient();
|
|
35
35
|
const response = await client.requestParsed(SyncSchemaApiResponse, `/api/database/${id}/sync_schema`, { method: "POST" });
|
|
36
|
-
|
|
36
|
+
renderSummary({
|
|
37
37
|
id,
|
|
38
38
|
status: response.status
|
|
39
|
-
}, databaseSyncResultView, ctx);
|
|
39
|
+
}, databaseSyncResultView, `Schema sync queued for database ${id}.`, ctx);
|
|
40
40
|
}
|
|
41
41
|
});
|
|
42
42
|
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { defineCommand } from "citty";
|
|
2
|
+
|
|
3
|
+
//#region src/commands/table/index.ts
|
|
4
|
+
var table_default = defineCommand({
|
|
5
|
+
meta: {
|
|
6
|
+
name: "table",
|
|
7
|
+
description: "Manage Metabase tables"
|
|
8
|
+
},
|
|
9
|
+
subCommands: {
|
|
10
|
+
list: () => import("./list-DuSoEk_J.mjs").then((m) => m.default),
|
|
11
|
+
get: () => import("./get-DmzgSgrl.mjs").then((m) => m.default),
|
|
12
|
+
metadata: () => import("./metadata-D2TxboMm.mjs").then((m) => m.default),
|
|
13
|
+
fields: () => import("./fields-RkRWU-u9.mjs").then((m) => m.default),
|
|
14
|
+
update: () => import("./update-CtOo3LsX.mjs").then((m) => m.default)
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
export { table_default as default };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { defineCommand } from "citty";
|
|
2
|
+
|
|
3
|
+
//#region src/commands/transform-job/index.ts
|
|
4
|
+
var transform_job_default = defineCommand({
|
|
5
|
+
meta: {
|
|
6
|
+
name: "transform-job",
|
|
7
|
+
description: "Manage Metabase transform jobs"
|
|
8
|
+
},
|
|
9
|
+
subCommands: {
|
|
10
|
+
list: () => import("./list-BmHoYJr7.mjs").then((mod) => mod.default),
|
|
11
|
+
get: () => import("./get-CvmqPN30.mjs").then((mod) => mod.default),
|
|
12
|
+
create: () => import("./create-aPaUEGdr.mjs").then((mod) => mod.default),
|
|
13
|
+
update: () => import("./update-DwRxdflw.mjs").then((mod) => mod.default),
|
|
14
|
+
delete: () => import("./delete-BrJOotpW.mjs").then((mod) => mod.default)
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
export { transform_job_default as default };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { defineCommand } from "citty";
|
|
2
|
+
|
|
3
|
+
//#region src/commands/transform/index.ts
|
|
4
|
+
var transform_default = defineCommand({
|
|
5
|
+
meta: {
|
|
6
|
+
name: "transform",
|
|
7
|
+
description: "Manage Metabase transforms"
|
|
8
|
+
},
|
|
9
|
+
subCommands: {
|
|
10
|
+
list: () => import("./list-CF1pMN4S.mjs").then((mod) => mod.default),
|
|
11
|
+
get: () => import("./get-CTDqioaj.mjs").then((mod) => mod.default),
|
|
12
|
+
create: () => import("./create-BcgoukG4.mjs").then((mod) => mod.default),
|
|
13
|
+
update: () => import("./update-BoIiuC70.mjs").then((mod) => mod.default),
|
|
14
|
+
delete: () => import("./delete-BPaFdHZP.mjs").then((mod) => mod.default),
|
|
15
|
+
"delete-table": () => import("./delete-table-CNupWUO0.mjs").then((mod) => mod.default),
|
|
16
|
+
run: () => import("./run-qgdEJv-I.mjs").then((mod) => mod.default),
|
|
17
|
+
cancel: () => import("./cancel-pPsvgJ0Z.mjs").then((mod) => mod.default),
|
|
18
|
+
"get-run": () => import("./get-run-CBwcRc8E.mjs").then((mod) => mod.default),
|
|
19
|
+
runs: () => import("./runs-BFIIH4GL.mjs").then((mod) => mod.default)
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
24
|
+
export { transform_default as default };
|
|
@@ -1,9 +1,9 @@
|
|
|
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-ZsFeevV2.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-Duawf5lE.mjs";
|
|
4
4
|
import "./capabilities-7e9MgquN.mjs";
|
|
5
|
-
import { writeJson } from "./render-
|
|
6
|
-
import { CollectionTreeNode } from "./collection-
|
|
5
|
+
import { writeJson } from "./render-0_GsapXa.mjs";
|
|
6
|
+
import { CollectionTreeNode } from "./collection-Bcy8cWYH.mjs";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
|
|
9
9
|
//#region src/commands/collection/tree.ts
|
|
@@ -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-ZsFeevV2.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-Duawf5lE.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 { parseId } from "./parse-id-
|
|
8
|
-
import { readBody } from "./body-
|
|
7
|
+
import { parseId } from "./parse-id-0_tOPvfI.mjs";
|
|
8
|
+
import { readBody } from "./body-tcURGnGh.mjs";
|
|
9
9
|
import { bodyInputFlags } from "./body-flags-D7q87Btw.mjs";
|
|
10
10
|
import "./validate-dPEOnOf8.mjs";
|
|
11
|
-
import { TRANSFORM_SOURCE_QUERY_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-
|
|
12
|
-
import { Transform, TransformUpdateInput, transformView } from "./transform-
|
|
11
|
+
import { TRANSFORM_SOURCE_QUERY_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-CYvOP8Ld.mjs";
|
|
12
|
+
import { Transform, TransformUpdateInput, transformView } from "./transform-BKahefz_.mjs";
|
|
13
13
|
|
|
14
14
|
//#region src/commands/transform/update.ts
|
|
15
15
|
var update_default = defineMetabaseCommand({
|
|
@@ -50,7 +50,7 @@ var update_default = defineMetabaseCommand({
|
|
|
50
50
|
method: "PUT",
|
|
51
51
|
body
|
|
52
52
|
});
|
|
53
|
-
|
|
53
|
+
renderSummary(updated, transformView, `Updated transform ${updated.id} "${updated.name}".`, ctx);
|
|
54
54
|
}
|
|
55
55
|
});
|
|
56
56
|
|
|
@@ -1,13 +1,13 @@
|
|
|
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-ZsFeevV2.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-Duawf5lE.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 { parseId } from "./parse-id-
|
|
8
|
-
import { readBody } from "./body-
|
|
7
|
+
import { parseId } from "./parse-id-0_tOPvfI.mjs";
|
|
8
|
+
import { readBody } from "./body-tcURGnGh.mjs";
|
|
9
9
|
import { bodyInputFlags } from "./body-flags-D7q87Btw.mjs";
|
|
10
|
-
import { Snippet, SnippetUpdateInput, snippetView } from "./snippet-
|
|
10
|
+
import { Snippet, SnippetUpdateInput, snippetView } from "./snippet-bi_0XbNT.mjs";
|
|
11
11
|
|
|
12
12
|
//#region src/commands/snippet/update.ts
|
|
13
13
|
var update_default = defineMetabaseCommand({
|
|
@@ -45,7 +45,7 @@ var update_default = defineMetabaseCommand({
|
|
|
45
45
|
method: "PUT",
|
|
46
46
|
body
|
|
47
47
|
});
|
|
48
|
-
|
|
48
|
+
renderSummary(updated, snippetView, `Updated snippet ${updated.id} "${updated.name}".`, ctx);
|
|
49
49
|
}
|
|
50
50
|
});
|
|
51
51
|
|
|
@@ -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-ZsFeevV2.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-Duawf5lE.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 { parseId } from "./parse-id-
|
|
8
|
-
import { readBody } from "./body-
|
|
7
|
+
import { parseId } from "./parse-id-0_tOPvfI.mjs";
|
|
8
|
+
import { readBody } from "./body-tcURGnGh.mjs";
|
|
9
9
|
import { bodyInputFlags } from "./body-flags-D7q87Btw.mjs";
|
|
10
10
|
import "./validate-dPEOnOf8.mjs";
|
|
11
|
-
import { MEASURE_DEFINITION_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-
|
|
12
|
-
import { Measure, MeasureUpdateInput, measureView } from "./measure-
|
|
11
|
+
import { MEASURE_DEFINITION_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-CYvOP8Ld.mjs";
|
|
12
|
+
import { Measure, MeasureUpdateInput, measureView } from "./measure-Bt3InQsA.mjs";
|
|
13
13
|
|
|
14
14
|
//#region src/commands/measure/update.ts
|
|
15
15
|
var update_default = defineMetabaseCommand({
|
|
@@ -50,7 +50,7 @@ var update_default = defineMetabaseCommand({
|
|
|
50
50
|
method: "PUT",
|
|
51
51
|
body
|
|
52
52
|
});
|
|
53
|
-
|
|
53
|
+
renderSummary(updated, measureView, `Updated measure ${updated.id} "${updated.name}".`, ctx);
|
|
54
54
|
}
|
|
55
55
|
});
|
|
56
56
|
|
|
@@ -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-ZsFeevV2.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-Duawf5lE.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 "./field-
|
|
8
|
-
import { parseId } from "./parse-id-
|
|
9
|
-
import { readBody } from "./body-
|
|
7
|
+
import "./field-E0IBy4Uw.mjs";
|
|
8
|
+
import { parseId } from "./parse-id-0_tOPvfI.mjs";
|
|
9
|
+
import { readBody } from "./body-tcURGnGh.mjs";
|
|
10
10
|
import { bodyInputFlags } from "./body-flags-D7q87Btw.mjs";
|
|
11
|
-
import { Table, TableUpdateInput, tableView } from "./table-
|
|
11
|
+
import { Table, TableUpdateInput, tableView } from "./table-qDD2kApF.mjs";
|
|
12
12
|
|
|
13
13
|
//#region src/commands/table/update.ts
|
|
14
14
|
var update_default = defineMetabaseCommand({
|
|
@@ -45,7 +45,7 @@ var update_default = defineMetabaseCommand({
|
|
|
45
45
|
method: "PUT",
|
|
46
46
|
body
|
|
47
47
|
});
|
|
48
|
-
|
|
48
|
+
renderSummary(updated, tableView, `Updated table ${updated.id} "${updated.display_name}".`, ctx);
|
|
49
49
|
}
|
|
50
50
|
});
|
|
51
51
|
|
|
@@ -1,16 +1,16 @@
|
|
|
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-ZsFeevV2.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-Duawf5lE.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 "./field-
|
|
8
|
-
import { Card, CardUpdateInput, cardView } from "./card-
|
|
9
|
-
import { parseId } from "./parse-id-
|
|
10
|
-
import { readBody } from "./body-
|
|
7
|
+
import "./field-E0IBy4Uw.mjs";
|
|
8
|
+
import { Card, CardUpdateInput, cardView } from "./card-ezYiriML.mjs";
|
|
9
|
+
import { parseId } from "./parse-id-0_tOPvfI.mjs";
|
|
10
|
+
import { readBody } from "./body-tcURGnGh.mjs";
|
|
11
11
|
import { bodyInputFlags } from "./body-flags-D7q87Btw.mjs";
|
|
12
12
|
import "./validate-dPEOnOf8.mjs";
|
|
13
|
-
import { CARD_DATASET_QUERY_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-
|
|
13
|
+
import { CARD_DATASET_QUERY_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-CYvOP8Ld.mjs";
|
|
14
14
|
|
|
15
15
|
//#region src/commands/card/update.ts
|
|
16
16
|
var update_default = defineMetabaseCommand({
|
|
@@ -53,7 +53,7 @@ var update_default = defineMetabaseCommand({
|
|
|
53
53
|
method: "PUT",
|
|
54
54
|
body
|
|
55
55
|
});
|
|
56
|
-
|
|
56
|
+
renderSummary(updated, cardView, `Updated card ${updated.id} "${updated.name}".`, ctx);
|
|
57
57
|
}
|
|
58
58
|
});
|
|
59
59
|
|
|
@@ -1,17 +1,17 @@
|
|
|
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-ZsFeevV2.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-Duawf5lE.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 { parseId } from "./parse-id-
|
|
8
|
-
import { readBody } from "./body-
|
|
7
|
+
import { parseId } from "./parse-id-0_tOPvfI.mjs";
|
|
8
|
+
import { readBody } from "./body-tcURGnGh.mjs";
|
|
9
9
|
import { bodyInputFlags } from "./body-flags-D7q87Btw.mjs";
|
|
10
|
-
import "./poll-
|
|
11
|
-
import { parseWaitFlags, waitFlags } from "./wait-flags-
|
|
12
|
-
import { Workspace, WorkspaceUpdateDatabaseInput, workspaceView } from "./workspace-
|
|
13
|
-
import { waitForDatabaseProvisioned } from "./wait-
|
|
14
|
-
import { parseSchemasCsv } from "./parse-schemas-
|
|
10
|
+
import "./poll-4eoh5J0r.mjs";
|
|
11
|
+
import { parseWaitFlags, waitFlags } from "./wait-flags-DlfbIXHw.mjs";
|
|
12
|
+
import { Workspace, WorkspaceUpdateDatabaseInput, workspaceView } from "./workspace-D8HtUN0y.mjs";
|
|
13
|
+
import { waitForDatabaseProvisioned } from "./wait-B17I_pWy.mjs";
|
|
14
|
+
import { parseSchemasCsv } from "./parse-schemas-D-qVLl4z.mjs";
|
|
15
15
|
|
|
16
16
|
//#region src/commands/workspace/database/update.ts
|
|
17
17
|
var update_default = defineMetabaseCommand({
|
|
@@ -69,7 +69,8 @@ var update_default = defineMetabaseCommand({
|
|
|
69
69
|
body
|
|
70
70
|
});
|
|
71
71
|
const final = wait.enabled ? await waitForDatabaseProvisioned(client, workspaceId, databaseId, wait.schedule) : initial;
|
|
72
|
-
|
|
72
|
+
const message = wait.enabled ? `Re-provisioned database ${databaseId} in workspace ${workspaceId}.` : `Started re-provisioning database ${databaseId} in workspace ${workspaceId}; rerun with --wait to block until ready.`;
|
|
73
|
+
renderSummary(final, workspaceView, message, ctx);
|
|
73
74
|
}
|
|
74
75
|
});
|
|
75
76
|
|
|
@@ -1,13 +1,13 @@
|
|
|
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-ZsFeevV2.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-Duawf5lE.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 { parseId } from "./parse-id-
|
|
8
|
-
import { readBody } from "./body-
|
|
7
|
+
import { parseId } from "./parse-id-0_tOPvfI.mjs";
|
|
8
|
+
import { readBody } from "./body-tcURGnGh.mjs";
|
|
9
9
|
import { bodyInputFlags } from "./body-flags-D7q87Btw.mjs";
|
|
10
|
-
import { TransformJob, TransformJobUpdateInput, transformJobView } from "./transform-job-
|
|
10
|
+
import { TransformJob, TransformJobUpdateInput, transformJobView } from "./transform-job-DjhoJbiV.mjs";
|
|
11
11
|
|
|
12
12
|
//#region src/commands/transform-job/update.ts
|
|
13
13
|
var update_default = defineMetabaseCommand({
|
|
@@ -44,7 +44,7 @@ var update_default = defineMetabaseCommand({
|
|
|
44
44
|
method: "PUT",
|
|
45
45
|
body
|
|
46
46
|
});
|
|
47
|
-
|
|
47
|
+
renderSummary(updated, transformJobView, `Updated transform job ${updated.id} "${updated.name}".`, ctx);
|
|
48
48
|
}
|
|
49
49
|
});
|
|
50
50
|
|
|
@@ -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-ZsFeevV2.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-Duawf5lE.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 { Field, FieldUpdateInput, fieldView } from "./field-
|
|
8
|
-
import { parseId } from "./parse-id-
|
|
9
|
-
import { readBody } from "./body-
|
|
7
|
+
import { Field, FieldUpdateInput, fieldView } from "./field-E0IBy4Uw.mjs";
|
|
8
|
+
import { parseId } from "./parse-id-0_tOPvfI.mjs";
|
|
9
|
+
import { readBody } from "./body-tcURGnGh.mjs";
|
|
10
10
|
import { bodyInputFlags } from "./body-flags-D7q87Btw.mjs";
|
|
11
11
|
|
|
12
12
|
//#region src/commands/field/update.ts
|
|
@@ -44,7 +44,7 @@ var update_default = defineMetabaseCommand({
|
|
|
44
44
|
method: "PUT",
|
|
45
45
|
body
|
|
46
46
|
});
|
|
47
|
-
|
|
47
|
+
renderSummary(updated, fieldView, `Updated field ${updated.id} "${updated.display_name}".`, ctx);
|
|
48
48
|
}
|
|
49
49
|
});
|
|
50
50
|
|
|
@@ -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-ZsFeevV2.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-Duawf5lE.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 { parseId } from "./parse-id-
|
|
8
|
-
import { readBody } from "./body-
|
|
7
|
+
import { parseId } from "./parse-id-0_tOPvfI.mjs";
|
|
8
|
+
import { readBody } from "./body-tcURGnGh.mjs";
|
|
9
9
|
import { bodyInputFlags } from "./body-flags-D7q87Btw.mjs";
|
|
10
10
|
import "./validate-dPEOnOf8.mjs";
|
|
11
|
-
import { SEGMENT_DEFINITION_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-
|
|
12
|
-
import { Segment, SegmentUpdateInput, segmentView } from "./segment-
|
|
11
|
+
import { SEGMENT_DEFINITION_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-CYvOP8Ld.mjs";
|
|
12
|
+
import { Segment, SegmentUpdateInput, segmentView } from "./segment-DhBmcr_E.mjs";
|
|
13
13
|
|
|
14
14
|
//#region src/commands/segment/update.ts
|
|
15
15
|
var update_default = defineMetabaseCommand({
|
|
@@ -50,7 +50,7 @@ var update_default = defineMetabaseCommand({
|
|
|
50
50
|
method: "PUT",
|
|
51
51
|
body
|
|
52
52
|
});
|
|
53
|
-
|
|
53
|
+
renderSummary(updated, segmentView, `Updated segment ${updated.id} "${updated.name}".`, ctx);
|
|
54
54
|
}
|
|
55
55
|
});
|
|
56
56
|
|
|
@@ -1,13 +1,13 @@
|
|
|
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-ZsFeevV2.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-Duawf5lE.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 { parseId } from "./parse-id-
|
|
8
|
-
import { readBody } from "./body-
|
|
7
|
+
import { parseId } from "./parse-id-0_tOPvfI.mjs";
|
|
8
|
+
import { readBody } from "./body-tcURGnGh.mjs";
|
|
9
9
|
import { bodyInputFlags } from "./body-flags-D7q87Btw.mjs";
|
|
10
|
-
import { DashboardDetail, Dashcard, DashcardPatchInput, dashcardView } from "./dashboard-
|
|
10
|
+
import { DashboardDetail, Dashcard, DashcardPatchInput, dashcardView } from "./dashboard-B4bn3z6t.mjs";
|
|
11
11
|
|
|
12
12
|
//#region src/commands/dashboard/update-dashcard.ts
|
|
13
13
|
var update_dashcard_default = defineMetabaseCommand({
|
|
@@ -60,7 +60,7 @@ var update_dashcard_default = defineMetabaseCommand({
|
|
|
60
60
|
});
|
|
61
61
|
const refreshed = result.dashcards.find((dashcard) => dashcard.id === dashcardId);
|
|
62
62
|
if (refreshed === void 0) throw new Error(`PUT /api/dashboard/${dashboardId}: dashcard ${dashcardId} missing from response`);
|
|
63
|
-
|
|
63
|
+
renderSummary(refreshed, dashcardView, `Updated dashcard ${dashcardId} on dashboard ${dashboardId} (row ${refreshed.row}, col ${refreshed.col}, ${refreshed.size_x}x${refreshed.size_y}).`, ctx);
|
|
64
64
|
}
|
|
65
65
|
});
|
|
66
66
|
function stripEntityId(dashcard) {
|
|
@@ -1,17 +1,17 @@
|
|
|
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-ZsFeevV2.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-Duawf5lE.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 "./field-
|
|
8
|
-
import "./card-
|
|
9
|
-
import { parseId } from "./parse-id-
|
|
10
|
-
import { readBody } from "./body-
|
|
7
|
+
import "./field-E0IBy4Uw.mjs";
|
|
8
|
+
import "./card-ezYiriML.mjs";
|
|
9
|
+
import { parseId } from "./parse-id-0_tOPvfI.mjs";
|
|
10
|
+
import { readBody } from "./body-tcURGnGh.mjs";
|
|
11
11
|
import { bodyInputFlags } from "./body-flags-D7q87Btw.mjs";
|
|
12
12
|
import "./validate-dPEOnOf8.mjs";
|
|
13
|
-
import { DashboardDetail, DashboardUpdateInput, dashboardView } from "./dashboard-
|
|
14
|
-
import { preflightDashcardCardReferences } from "./preflight-
|
|
13
|
+
import { DashboardDetail, DashboardUpdateInput, dashboardView } from "./dashboard-B4bn3z6t.mjs";
|
|
14
|
+
import { preflightDashcardCardReferences } from "./preflight-BhsErYz3.mjs";
|
|
15
15
|
|
|
16
16
|
//#region src/commands/dashboard/update.ts
|
|
17
17
|
var update_default = defineMetabaseCommand({
|
|
@@ -51,7 +51,7 @@ var update_default = defineMetabaseCommand({
|
|
|
51
51
|
method: "PUT",
|
|
52
52
|
body
|
|
53
53
|
});
|
|
54
|
-
|
|
54
|
+
renderSummary(updated, dashboardView, `Updated dashboard ${updated.id} "${updated.name}".`, ctx);
|
|
55
55
|
}
|
|
56
56
|
});
|
|
57
57
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { AbortError, NetworkError, TimeoutError, UnknownError, errorMessage } from "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { outputFlags, package_default } from "./error-
|
|
3
|
-
import { HttpError, USER_AGENT, combineAborts, defineMetabaseCommand, parseJson, throwIfAborted } from "./runtime-
|
|
2
|
+
import { outputFlags, package_default } from "./error-ZsFeevV2.mjs";
|
|
3
|
+
import { HttpError, USER_AGENT, combineAborts, defineMetabaseCommand, parseJson, throwIfAborted } from "./runtime-Duawf5lE.mjs";
|
|
4
4
|
import "./capabilities-7e9MgquN.mjs";
|
|
5
|
-
import { renderItem, writeText } from "./render-
|
|
5
|
+
import { renderItem, writeText } from "./render-0_GsapXa.mjs";
|
|
6
6
|
import { promptConfirm } from "./prompt-CFKoys7k.mjs";
|
|
7
|
-
import { streamProcess } from "./process-
|
|
7
|
+
import { streamProcess } from "./process-CM7Uu5q_.mjs";
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
import { realpathSync } from "node:fs";
|
|
10
10
|
import { compare, valid } from "semver";
|
|
@@ -397,30 +397,16 @@ function emitStatus(status, install, command, ctx) {
|
|
|
397
397
|
}
|
|
398
398
|
function buildHumanText(status, install, command) {
|
|
399
399
|
if (!status.changeRequired) return `Up to date (${status.currentVersion}).`;
|
|
400
|
-
const
|
|
401
|
-
|
|
402
|
-
const tail = buildHumanTail(install, command);
|
|
403
|
-
return [
|
|
404
|
-
...header,
|
|
405
|
-
"",
|
|
406
|
-
...tail
|
|
407
|
-
].join("\n");
|
|
400
|
+
const headline = status.targetVersion === status.latestVersion ? `Update available: ${status.currentVersion} → ${status.latestVersion}` : `Target ${status.targetVersion} (current ${status.currentVersion}, latest ${status.latestVersion}).`;
|
|
401
|
+
return [headline, ...buildHumanTail(install, command)].join("\n");
|
|
408
402
|
}
|
|
409
403
|
function buildHumanTail(install, command) {
|
|
410
404
|
switch (install.kind) {
|
|
411
|
-
case "npm-global": return [
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
];
|
|
416
|
-
case "npm-local": return [
|
|
417
|
-
`Installed via: ${install.packageManager} (local install)`,
|
|
418
|
-
`Binary path: ${install.realPath}`,
|
|
419
|
-
...command === null ? [] : [`Run in that project: ${command.display}`]
|
|
420
|
-
];
|
|
421
|
-
case "npx": return [`Running via npx — no upgrade needed.`, `npx fetches the latest version on each invocation.`];
|
|
422
|
-
case "dev": return [`Running from source at ${install.realPath}.`, `Pull the latest changes from git and rebuild to upgrade.`];
|
|
423
|
-
case "unknown": return [`Could not detect how the CLI was installed${install.realPath === "" ? "" : ` (${install.realPath})`}.`, `Reinstall with your package manager — for example: npm install -g @metabase/cli@latest`];
|
|
405
|
+
case "npm-global": return command === null ? [] : [`Run: ${command.display}`];
|
|
406
|
+
case "npm-local": return command === null ? [] : [`Run in that project: ${command.display}`];
|
|
407
|
+
case "npx": return ["Running via npx — it fetches the latest version on each run, no upgrade needed."];
|
|
408
|
+
case "dev": return [`Running from source at ${install.realPath}. Pull the latest changes and rebuild.`];
|
|
409
|
+
case "unknown": return ["Reinstall with your package manager, e.g. npm install -g @metabase/cli@latest"];
|
|
424
410
|
}
|
|
425
411
|
}
|
|
426
412
|
function formatCommandCell(value) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { outputFlags } from "./error-
|
|
3
|
-
import { defineMetabaseCommand, localUrl } from "./runtime-
|
|
2
|
+
import { outputFlags } from "./error-ZsFeevV2.mjs";
|
|
3
|
+
import { defineMetabaseCommand, localUrl } from "./runtime-Duawf5lE.mjs";
|
|
4
4
|
import "./capabilities-7e9MgquN.mjs";
|
|
5
|
-
import {
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
7
|
-
import "./poll-
|
|
8
|
-
import "./process-
|
|
9
|
-
import { checkDockerReady, requireWorkspaceContainerLocation } from "./docker-
|
|
5
|
+
import { renderSummary } from "./render-0_GsapXa.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-0_tOPvfI.mjs";
|
|
7
|
+
import "./poll-4eoh5J0r.mjs";
|
|
8
|
+
import "./process-CM7Uu5q_.mjs";
|
|
9
|
+
import { checkDockerReady, requireWorkspaceContainerLocation } from "./docker-Ds252Mwc.mjs";
|
|
10
10
|
import { z } from "zod";
|
|
11
11
|
|
|
12
12
|
//#region src/commands/workspace/url.ts
|
|
@@ -48,7 +48,7 @@ var url_default = defineMetabaseCommand({
|
|
|
48
48
|
workspace_id: workspaceId,
|
|
49
49
|
url: localUrl(hostPort)
|
|
50
50
|
};
|
|
51
|
-
|
|
51
|
+
renderSummary(result, urlResultView, result.url, ctx);
|
|
52
52
|
}
|
|
53
53
|
});
|
|
54
54
|
|