@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,9 +1,9 @@
|
|
|
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-ZsFeevV2.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-Duawf5lE.mjs";
|
|
4
4
|
import "./capabilities-7e9MgquN.mjs";
|
|
5
|
-
import { renderList } from "./render-
|
|
6
|
-
import { Workspace, WorkspaceCompact, workspaceView } from "./workspace-
|
|
5
|
+
import { renderList } from "./render-0_GsapXa.mjs";
|
|
6
|
+
import { Workspace, WorkspaceCompact, workspaceView } from "./workspace-D8HtUN0y.mjs";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
|
|
9
9
|
//#region src/commands/workspace/list.ts
|
|
@@ -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-ZsFeevV2.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-Duawf5lE.mjs";
|
|
4
4
|
import "./capabilities-7e9MgquN.mjs";
|
|
5
|
-
import { renderList } from "./render-
|
|
6
|
-
import "./field-
|
|
7
|
-
import { Card, CardCompact, cardView } from "./card-
|
|
5
|
+
import { renderList } from "./render-0_GsapXa.mjs";
|
|
6
|
+
import "./field-E0IBy4Uw.mjs";
|
|
7
|
+
import { Card, CardCompact, cardView } from "./card-ezYiriML.mjs";
|
|
8
8
|
import { parseEnumFlag } from "./parse-enum-CrEWOhuY.mjs";
|
|
9
9
|
import { z } from "zod";
|
|
10
10
|
|
|
@@ -1,9 +1,9 @@
|
|
|
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-ZsFeevV2.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-Duawf5lE.mjs";
|
|
4
4
|
import "./capabilities-7e9MgquN.mjs";
|
|
5
|
-
import { renderList } from "./render-
|
|
6
|
-
import { Snippet, SnippetCompact, snippetView } from "./snippet-
|
|
5
|
+
import { renderList } from "./render-0_GsapXa.mjs";
|
|
6
|
+
import { Snippet, SnippetCompact, snippetView } from "./snippet-bi_0XbNT.mjs";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
|
|
9
9
|
//#region src/commands/snippet/list.ts
|
|
@@ -1,11 +1,11 @@
|
|
|
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-ZsFeevV2.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-Duawf5lE.mjs";
|
|
4
4
|
import "./capabilities-7e9MgquN.mjs";
|
|
5
|
-
import { renderList } from "./render-
|
|
6
|
-
import "./field-
|
|
7
|
-
import { parseId } from "./parse-id-
|
|
8
|
-
import { Table, TableCompact, tableView } from "./table-
|
|
5
|
+
import { renderList } from "./render-0_GsapXa.mjs";
|
|
6
|
+
import "./field-E0IBy4Uw.mjs";
|
|
7
|
+
import { parseId } from "./parse-id-0_tOPvfI.mjs";
|
|
8
|
+
import { Table, TableCompact, tableView } from "./table-qDD2kApF.mjs";
|
|
9
9
|
import { z } from "zod";
|
|
10
10
|
|
|
11
11
|
//#region src/commands/table/list.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
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-ZsFeevV2.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-Duawf5lE.mjs";
|
|
4
4
|
import "./capabilities-7e9MgquN.mjs";
|
|
5
|
-
import { renderList } from "./render-
|
|
6
|
-
import { Measure, MeasureCompact, measureView } from "./measure-
|
|
5
|
+
import { renderList } from "./render-0_GsapXa.mjs";
|
|
6
|
+
import { Measure, MeasureCompact, measureView } from "./measure-Bt3InQsA.mjs";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
|
|
9
9
|
//#region src/commands/measure/list.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ConfigError, errorMessage } from "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { DEFAULT_PROFILE, ParsedVersionSchema, ProbedUser, defineMetabaseCommand, explicitProfileName, keyringFallbackWarning, normalizeUrl, readEnvCredentials, writeProbeFailure, writeProbeResult, writeProfile } from "./runtime-
|
|
4
|
-
import { verifyAndProbe } from "./verify-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-ZsFeevV2.mjs";
|
|
3
|
+
import { DEFAULT_PROFILE, ParsedVersionSchema, ProbedUser, defineMetabaseCommand, explicitProfileName, keyringFallbackWarning, normalizeUrl, readEnvCredentials, writeProbeFailure, writeProbeResult, writeProfile } from "./runtime-Duawf5lE.mjs";
|
|
4
|
+
import { verifyAndProbe } from "./verify-A7BWfBPZ.mjs";
|
|
5
5
|
import { warn } from "./capabilities-7e9MgquN.mjs";
|
|
6
|
-
import {
|
|
7
|
-
import { renderUserName, renderUserRole, renderVersionTag } from "./render-
|
|
6
|
+
import { renderSummary } from "./render-0_GsapXa.mjs";
|
|
7
|
+
import { EMPTY_CELL, renderUserName, renderUserRole, renderVersionTag } from "./render-khznBlla.mjs";
|
|
8
8
|
import { promptPassword, promptText } from "./prompt-CFKoys7k.mjs";
|
|
9
9
|
import { readInput } from "./input-cMSEqISy.mjs";
|
|
10
10
|
import { z } from "zod";
|
|
@@ -85,13 +85,13 @@ var login_default = defineMetabaseCommand({
|
|
|
85
85
|
apiKey
|
|
86
86
|
}, profileName);
|
|
87
87
|
if (location$1.backend === "file") warn(keyringFallbackWarning(location$1, "credentials"));
|
|
88
|
-
|
|
88
|
+
renderSummary({
|
|
89
89
|
profile: profileName,
|
|
90
90
|
url,
|
|
91
91
|
authenticated: false,
|
|
92
92
|
user: null,
|
|
93
93
|
version: null
|
|
94
|
-
}, loginView, ctx);
|
|
94
|
+
}, loginView, `Saved credentials for profile "${profileName}" (${url}) without verifying.`, ctx);
|
|
95
95
|
return;
|
|
96
96
|
}
|
|
97
97
|
const result = await verifyAndProbe(url, apiKey);
|
|
@@ -111,13 +111,17 @@ var login_default = defineMetabaseCommand({
|
|
|
111
111
|
user: result.user,
|
|
112
112
|
server: result.server
|
|
113
113
|
});
|
|
114
|
-
|
|
114
|
+
const who = renderUserName(result.user);
|
|
115
|
+
const role = renderUserRole(result.user);
|
|
116
|
+
const versionTag = renderVersionTag(result.server.version);
|
|
117
|
+
const serverClause = versionTag === EMPTY_CELL ? "" : ` Server ${versionTag}.`;
|
|
118
|
+
renderSummary({
|
|
115
119
|
profile: profileName,
|
|
116
120
|
url,
|
|
117
121
|
authenticated: true,
|
|
118
122
|
user: result.user,
|
|
119
123
|
version: result.server.version
|
|
120
|
-
}, loginView, ctx);
|
|
124
|
+
}, loginView, `Logged in to ${url} as ${who} (${role}). Saved to profile "${profileName}".${serverClause}`, ctx);
|
|
121
125
|
}
|
|
122
126
|
});
|
|
123
127
|
function formatVerifyFailureMessage(profileName, failure) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { clearProfile, defineMetabaseCommand, resolveProfileName } from "./runtime-
|
|
2
|
+
import { outputFlags, profileFlag } from "./error-ZsFeevV2.mjs";
|
|
3
|
+
import { clearProfile, defineMetabaseCommand, resolveProfileName } from "./runtime-Duawf5lE.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
7
|
import { z } from "zod";
|
|
8
8
|
|
|
@@ -54,20 +54,21 @@ var logout_default = defineMetabaseCommand({
|
|
|
54
54
|
initialValue: false
|
|
55
55
|
});
|
|
56
56
|
if (!ok) {
|
|
57
|
-
|
|
57
|
+
renderSummary({
|
|
58
58
|
profile: profileName,
|
|
59
59
|
cleared: false,
|
|
60
60
|
aborted: true
|
|
61
|
-
}, logoutView, ctx);
|
|
61
|
+
}, logoutView, `Left credentials for profile "${profileName}" untouched.`, ctx);
|
|
62
62
|
return;
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
const cleared = await clearProfile(profileName);
|
|
66
|
-
|
|
66
|
+
const message = cleared ? `Cleared stored credentials for profile "${profileName}".` : `No stored credentials for profile "${profileName}".`;
|
|
67
|
+
renderSummary({
|
|
67
68
|
profile: profileName,
|
|
68
69
|
cleared,
|
|
69
70
|
aborted: false
|
|
70
|
-
}, logoutView, ctx);
|
|
71
|
+
}, logoutView, message, ctx);
|
|
71
72
|
}
|
|
72
73
|
});
|
|
73
74
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ConfigError } from "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { outputFlags } from "./error-
|
|
3
|
-
import { defineMetabaseCommand, parseInteger } from "./runtime-
|
|
2
|
+
import { outputFlags } from "./error-ZsFeevV2.mjs";
|
|
3
|
+
import { defineMetabaseCommand, parseInteger } from "./runtime-Duawf5lE.mjs";
|
|
4
4
|
import "./capabilities-7e9MgquN.mjs";
|
|
5
|
-
import { parseId } from "./parse-id-
|
|
6
|
-
import "./poll-
|
|
7
|
-
import "./process-
|
|
8
|
-
import { checkDockerReady, containerLifecycleStatus, containerNameFor, streamLogs } from "./docker-
|
|
5
|
+
import { parseId } from "./parse-id-0_tOPvfI.mjs";
|
|
6
|
+
import "./poll-4eoh5J0r.mjs";
|
|
7
|
+
import "./process-CM7Uu5q_.mjs";
|
|
8
|
+
import { checkDockerReady, containerLifecycleStatus, containerNameFor, streamLogs } from "./docker-Ds252Mwc.mjs";
|
|
9
9
|
|
|
10
10
|
//#region src/commands/workspace/logs.ts
|
|
11
11
|
const DEFAULT_TAIL = 200;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getMetabaseAugment, resolveCitty, toAliasArray } from "./command-augment-BH9qgQ5u.mjs";
|
|
2
2
|
import { Capabilities } from "./capabilities-7e9MgquN.mjs";
|
|
3
|
-
import { writeJson } from "./render-
|
|
3
|
+
import { writeJson } from "./render-0_GsapXa.mjs";
|
|
4
4
|
import { defineCommand } from "citty";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { defineCommand } from "citty";
|
|
2
|
+
|
|
3
|
+
//#region src/commands/measure/index.ts
|
|
4
|
+
var measure_default = defineCommand({
|
|
5
|
+
meta: {
|
|
6
|
+
name: "measure",
|
|
7
|
+
description: "Manage Metabase measures"
|
|
8
|
+
},
|
|
9
|
+
subCommands: {
|
|
10
|
+
list: () => import("./list-HS15y_WN.mjs").then((mod) => mod.default),
|
|
11
|
+
get: () => import("./get-y17zJMnU.mjs").then((mod) => mod.default),
|
|
12
|
+
create: () => import("./create-BdPoSk_7.mjs").then((mod) => mod.default),
|
|
13
|
+
update: () => import("./update-CbBnHz42.mjs").then((mod) => mod.default),
|
|
14
|
+
archive: () => import("./archive-CuVk8iwN.mjs").then((mod) => mod.default)
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
export { measure_default as default };
|
|
@@ -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 { renderItem } from "./render-
|
|
6
|
-
import "./field-
|
|
7
|
-
import { parseId } from "./parse-id-
|
|
8
|
-
import "./table-
|
|
9
|
-
import { Database, databaseView } from "./database-
|
|
5
|
+
import { renderItem } 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 { Database, databaseView } from "./database-BXiue1in.mjs";
|
|
10
10
|
|
|
11
11
|
//#region src/commands/db/metadata.ts
|
|
12
12
|
var metadata_default = defineMetabaseCommand({
|
|
@@ -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-ZsFeevV2.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-Duawf5lE.mjs";
|
|
4
4
|
import "./capabilities-7e9MgquN.mjs";
|
|
5
|
-
import { renderItem } from "./render-
|
|
6
|
-
import "./field-
|
|
7
|
-
import { parseId } from "./parse-id-
|
|
8
|
-
import { TableQueryMetadata, tableView } from "./table-
|
|
5
|
+
import { renderItem } from "./render-0_GsapXa.mjs";
|
|
6
|
+
import "./field-E0IBy4Uw.mjs";
|
|
7
|
+
import { parseId } from "./parse-id-0_tOPvfI.mjs";
|
|
8
|
+
import { TableQueryMetadata, tableView } from "./table-qDD2kApF.mjs";
|
|
9
9
|
|
|
10
10
|
//#region src/commands/table/metadata.ts
|
|
11
11
|
var metadata_default = defineMetabaseCommand({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { listEnvelopeSchema, outputFlags, wrapList } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { listEnvelopeSchema, outputFlags, wrapList } from "./error-ZsFeevV2.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-Duawf5lE.mjs";
|
|
4
4
|
import "./capabilities-7e9MgquN.mjs";
|
|
5
|
-
import { renderList } from "./render-
|
|
6
|
-
import "./yaml-
|
|
7
|
-
import { findSkillByName, loadAllSkills, loadVisibleSkills } from "./skills-
|
|
5
|
+
import { renderList } from "./render-0_GsapXa.mjs";
|
|
6
|
+
import "./yaml-Gv6wRFMF.mjs";
|
|
7
|
+
import { findSkillByName, loadAllSkills, loadVisibleSkills } from "./skills-BkregMyb.mjs";
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
|
|
10
10
|
//#region src/commands/skills/path.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TimeoutError } from "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { combineAborts, throwIfAborted } from "./runtime-
|
|
2
|
+
import { combineAborts, throwIfAborted } from "./runtime-Duawf5lE.mjs";
|
|
3
3
|
import { setTimeout } from "node:timers/promises";
|
|
4
4
|
|
|
5
5
|
//#region src/runtime/poll.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { parseJsonOrPlain } from "./runtime-
|
|
2
|
-
import { pollUntil } from "./poll-
|
|
1
|
+
import { parseJsonOrPlain } from "./runtime-Duawf5lE.mjs";
|
|
2
|
+
import { pollUntil } from "./poll-4eoh5J0r.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
|
|
5
5
|
//#region src/domain/git-sync.ts
|
|
@@ -173,6 +173,22 @@ function throwIfFailedTask(final, verb) {
|
|
|
173
173
|
const detail = final.error_message ? `: ${final.error_message}` : "";
|
|
174
174
|
throw new Error(`git-sync ${verb} ${final.status}${detail}`);
|
|
175
175
|
}
|
|
176
|
+
function formatSyncTask(task) {
|
|
177
|
+
const kind = task.sync_task_type === "export" ? "Export" : "Import";
|
|
178
|
+
const label = `${kind} task #${task.id}`;
|
|
179
|
+
const detail = task.error_message ? `: ${task.error_message}` : "";
|
|
180
|
+
switch (task.status) {
|
|
181
|
+
case "running": {
|
|
182
|
+
const percent = task.progress === null ? "" : ` (${Math.round(task.progress * 100)}%)`;
|
|
183
|
+
return `${label} is running${percent}.`;
|
|
184
|
+
}
|
|
185
|
+
case "successful": return `${label} succeeded.`;
|
|
186
|
+
case "errored": return `${label} errored${detail}.`;
|
|
187
|
+
case "timed-out": return `${label} timed out${detail}.`;
|
|
188
|
+
case "conflict": return `${label} hit conflicts${detail}.`;
|
|
189
|
+
case "cancelled": return `${label} was cancelled.`;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
176
192
|
|
|
177
193
|
//#endregion
|
|
178
|
-
export { REMOTE_SYNC_PATHS, SyncDirtyItem, SyncDirtyItemCompact, SyncTask, SyncTaskOrIdle, fetchCurrentTask, fetchOptionalParsed, pollSyncTask, syncDirtyItemView, syncTaskIdleView, syncTaskView, throwIfFailedTask };
|
|
194
|
+
export { REMOTE_SYNC_PATHS, SyncDirtyItem, SyncDirtyItemCompact, SyncTask, SyncTaskOrIdle, fetchCurrentTask, fetchOptionalParsed, formatSyncTask, pollSyncTask, syncDirtyItemView, syncTaskIdleView, syncTaskView, throwIfFailedTask };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ChainedRequestError, ConfigError, MetabaseError } from "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { HttpError } from "./runtime-
|
|
3
|
-
import { writeJson } from "./render-
|
|
4
|
-
import { Card } from "./card-
|
|
2
|
+
import { HttpError } from "./runtime-Duawf5lE.mjs";
|
|
3
|
+
import { writeJson } from "./render-0_GsapXa.mjs";
|
|
4
|
+
import { Card } from "./card-ezYiriML.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
|
|
7
7
|
//#region src/commands/dashboard/preflight.ts
|
|
@@ -1,17 +1,17 @@
|
|
|
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 "./poll-
|
|
11
|
-
import { parseWaitFlags, waitFlags } from "./wait-flags-
|
|
12
|
-
import { Workspace, WorkspaceProvisionInput, 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, WorkspaceProvisionInput, 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/provision.ts
|
|
17
17
|
var provision_default = defineMetabaseCommand({
|
|
@@ -74,7 +74,8 @@ var provision_default = defineMetabaseCommand({
|
|
|
74
74
|
body
|
|
75
75
|
});
|
|
76
76
|
const final = wait.enabled ? await waitForDatabaseProvisioned(client, workspaceId, body.database_id, wait.schedule) : initial;
|
|
77
|
-
|
|
77
|
+
const message = wait.enabled ? `Provisioned database ${body.database_id} into workspace ${workspaceId}.` : `Started provisioning database ${body.database_id} into workspace ${workspaceId}; rerun with --wait to block until ready.`;
|
|
78
|
+
renderSummary(final, workspaceView, message, ctx);
|
|
78
79
|
}
|
|
79
80
|
});
|
|
80
81
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { listEnvelopeSchema, outputFlags, wrapList } from "./error-
|
|
2
|
-
import { defineMetabaseCommand, localUrl } from "./runtime-
|
|
3
|
-
import { renderList } from "./render-
|
|
4
|
-
import { CONTAINER_STATES, checkDockerReady, listWorkspaceContainers } from "./docker-
|
|
1
|
+
import { listEnvelopeSchema, outputFlags, wrapList } from "./error-ZsFeevV2.mjs";
|
|
2
|
+
import { defineMetabaseCommand, localUrl } from "./runtime-Duawf5lE.mjs";
|
|
3
|
+
import { renderList } from "./render-0_GsapXa.mjs";
|
|
4
|
+
import { CONTAINER_STATES, checkDockerReady, listWorkspaceContainers } from "./docker-Ds252Mwc.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
|
|
7
7
|
//#region src/commands/workspace/ps.ts
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
+
import "./error-ZsFeevV2.mjs";
|
|
3
|
+
import "./runtime-Duawf5lE.mjs";
|
|
4
|
+
import "./capabilities-7e9MgquN.mjs";
|
|
5
|
+
import "./render-0_GsapXa.mjs";
|
|
6
|
+
import "./poll-4eoh5J0r.mjs";
|
|
7
|
+
import "./process-CM7Uu5q_.mjs";
|
|
8
|
+
import "./docker-Ds252Mwc.mjs";
|
|
9
|
+
import { LocalWorkspace, LocalWorkspaceCompact, LocalWorkspaceListEnvelope, LocalWorkspaceState, localWorkspaceView, ps_default } from "./ps-CEYtsKBj.mjs";
|
|
10
|
+
|
|
11
|
+
export { ps_default as default };
|
|
@@ -1,15 +1,16 @@
|
|
|
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, writeJson } from "./render-0_GsapXa.mjs";
|
|
6
6
|
import "./input-cMSEqISy.mjs";
|
|
7
|
-
import "./field-
|
|
8
|
-
import { CardQueryResult, cardQueryView } from "./card-
|
|
9
|
-
import { readBody } from "./body-
|
|
7
|
+
import "./field-E0IBy4Uw.mjs";
|
|
8
|
+
import { CardQueryResult, cardQueryView } from "./card-ezYiriML.mjs";
|
|
9
|
+
import { readBody } from "./body-tcURGnGh.mjs";
|
|
10
10
|
import { bodyInputFlags } from "./body-flags-D7q87Btw.mjs";
|
|
11
11
|
import { assertNotLegacyEnvelopeWrappingMbql5, getQuerySchemaBundle, isMbql5Query, validateQuery } from "./validate-dPEOnOf8.mjs";
|
|
12
|
-
import { skipValidateFlag } from "./validate-query-
|
|
12
|
+
import { skipValidateFlag } from "./validate-query-CYvOP8Ld.mjs";
|
|
13
|
+
import { formatQueryResult } from "./query-result-ABPLz6I4.mjs";
|
|
13
14
|
import { z } from "zod";
|
|
14
15
|
|
|
15
16
|
//#region src/commands/query.ts
|
|
@@ -84,7 +85,7 @@ var query_default = defineMetabaseCommand({
|
|
|
84
85
|
method: "POST",
|
|
85
86
|
body
|
|
86
87
|
});
|
|
87
|
-
|
|
88
|
+
renderSummary(queryResult, cardQueryView, () => formatQueryResult(queryResult), ctx);
|
|
88
89
|
}
|
|
89
90
|
});
|
|
90
91
|
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { ConfigError } from "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand, parseJson } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-ZsFeevV2.mjs";
|
|
3
|
+
import { defineMetabaseCommand, parseJson } from "./runtime-Duawf5lE.mjs";
|
|
4
4
|
import "./capabilities-7e9MgquN.mjs";
|
|
5
|
-
import {
|
|
6
|
-
import "./field-
|
|
7
|
-
import { CardQueryResult, cardQueryView } from "./card-
|
|
8
|
-
import { parseId } from "./parse-id-
|
|
5
|
+
import { renderSummary } from "./render-0_GsapXa.mjs";
|
|
6
|
+
import "./field-E0IBy4Uw.mjs";
|
|
7
|
+
import { CardQueryResult, cardQueryView } from "./card-ezYiriML.mjs";
|
|
8
|
+
import { parseId } from "./parse-id-0_tOPvfI.mjs";
|
|
9
|
+
import { formatQueryResult } from "./query-result-ABPLz6I4.mjs";
|
|
9
10
|
import { z } from "zod";
|
|
10
11
|
import { Writable } from "node:stream";
|
|
11
12
|
|
|
@@ -86,7 +87,8 @@ var query_default = defineMetabaseCommand({
|
|
|
86
87
|
body: { parameters }
|
|
87
88
|
});
|
|
88
89
|
const limit = args.limit === void 0 || args.limit === "" ? null : parseId(args.limit, "limit");
|
|
89
|
-
|
|
90
|
+
const limited = applyLimit(result, limit);
|
|
91
|
+
renderSummary(limited, cardQueryView, () => formatQueryResult(limited), ctx);
|
|
90
92
|
}
|
|
91
93
|
});
|
|
92
94
|
function parseParameters(raw) {
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { formatScalar, renderRows } from "./render-0_GsapXa.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/output/query-result.ts
|
|
4
|
+
function formatQueryResult(result) {
|
|
5
|
+
if (result.status !== "completed" || result.data === void 0) {
|
|
6
|
+
const hasError = typeof result.error === "string" && result.error !== "";
|
|
7
|
+
const detail = hasError ? `: ${result.error}` : "";
|
|
8
|
+
return `Query ${result.status}${detail}`;
|
|
9
|
+
}
|
|
10
|
+
const head = result.data.cols.map((col) => col.display_name ?? col.name);
|
|
11
|
+
const rowCount = result.row_count ?? result.data.rows.length;
|
|
12
|
+
const summary = `${rowCount} row${rowCount === 1 ? "" : "s"}.`;
|
|
13
|
+
if (result.data.rows.length === 0) return summary;
|
|
14
|
+
const rows = result.data.rows.map((row) => Array.isArray(row) ? row.map((cell) => formatScalar(cell)) : [formatScalar(row)]);
|
|
15
|
+
return `${renderRows(head, rows)}\n${summary}`;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
export { formatQueryResult };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { outputFlags } from "./error-
|
|
3
|
-
import { clearLicense, defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { outputFlags } from "./error-ZsFeevV2.mjs";
|
|
3
|
+
import { clearLicense, defineMetabaseCommand } from "./runtime-Duawf5lE.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
7
|
import { z } from "zod";
|
|
8
8
|
|
|
@@ -44,18 +44,19 @@ var remove_default = defineMetabaseCommand({
|
|
|
44
44
|
initialValue: false
|
|
45
45
|
});
|
|
46
46
|
if (!ok) {
|
|
47
|
-
|
|
47
|
+
renderSummary({
|
|
48
48
|
removed: false,
|
|
49
49
|
aborted: true
|
|
50
|
-
}, licenseRemoveView, ctx);
|
|
50
|
+
}, licenseRemoveView, "Left the stored license token in place.", ctx);
|
|
51
51
|
return;
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
const removed = await clearLicense();
|
|
55
|
-
|
|
55
|
+
const message = removed ? "License token removed." : "No license token was stored.";
|
|
56
|
+
renderSummary({
|
|
56
57
|
removed,
|
|
57
58
|
aborted: false
|
|
58
|
-
}, licenseRemoveView, ctx);
|
|
59
|
+
}, licenseRemoveView, message, ctx);
|
|
59
60
|
}
|
|
60
61
|
});
|
|
61
62
|
|
|
@@ -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 { parseId } from "./parse-id-
|
|
7
|
-
import "./poll-task-
|
|
8
|
-
import "./poll-
|
|
9
|
-
import { SyncSettingsUpdateResult, setCollectionRemoteSynced, syncSettingsUpdateView } from "./add-collection-
|
|
5
|
+
import { renderSummary } from "./render-0_GsapXa.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-0_tOPvfI.mjs";
|
|
7
|
+
import "./poll-task-51WRdugU.mjs";
|
|
8
|
+
import "./poll-4eoh5J0r.mjs";
|
|
9
|
+
import { SyncSettingsUpdateResult, setCollectionRemoteSynced, syncSettingsUpdateView } from "./add-collection-DQjTlDNF.mjs";
|
|
10
10
|
|
|
11
11
|
//#region src/commands/git-sync/remove-collection.ts
|
|
12
12
|
var remove_collection_default = defineMetabaseCommand({
|
|
@@ -34,7 +34,9 @@ var remove_collection_default = defineMetabaseCommand({
|
|
|
34
34
|
const collectionId = parseId(args.id, "id");
|
|
35
35
|
const client = await getClient();
|
|
36
36
|
const result = await setCollectionRemoteSynced(client, collectionId, false);
|
|
37
|
-
|
|
37
|
+
const taskPart = result.task_id !== void 0 ? ` (task #${result.task_id})` : "";
|
|
38
|
+
const message = result.success ? `Collection ${collectionId} is no longer git-synced${taskPart}.` : `Could not update git-sync setting for collection ${collectionId}.`;
|
|
39
|
+
renderSummary(result, syncSettingsUpdateView, message, ctx);
|
|
38
40
|
}
|
|
39
41
|
});
|
|
40
42
|
|