@metabase/cli 0.2.0 → 0.2.1-alpha.bcm-ghy-4075-spawn-default-profile.eb120d1
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 +222 -10
- package/dist/add-collection-CCpC-GUz.mjs +9 -0
- package/dist/{add-collection-BTSGp4f9.mjs → add-collection-CLXfrgp4.mjs} +4 -4
- package/dist/{append-DY1-O789.mjs → append-DMcxP1LM.mjs} +5 -5
- package/dist/archive-4WqMsPWB.mjs +38 -0
- package/dist/{archive-CWtUzlHO.mjs → archive-5inmbMDL.mjs} +4 -4
- package/dist/{archive-CJ9rElKn.mjs → archive-BggM_AuL.mjs} +5 -5
- package/dist/{archive-pHsa4dL0.mjs → archive-BmhehbS0.mjs} +3 -3
- package/dist/{archive-DCPw3df6.mjs → archive-BwIZzWGe.mjs} +4 -4
- package/dist/{archive-DOa1u1aJ.mjs → archive-DErhQn8A.mjs} +4 -4
- package/dist/archive-DTnz1suV.mjs +38 -0
- package/dist/{archive-w6TX-zEk.mjs → archive-Q1387APe.mjs} +4 -4
- package/dist/{archive-BOEEMrYL.mjs → archive-h-3H5b4K.mjs} +5 -5
- package/dist/{auth-BrQtY0pO.mjs → auth-DzCAiArV.mjs} +4 -4
- package/dist/{body-C1_AaTS4.mjs → body-5snfmiwR.mjs} +3 -3
- package/dist/{branches-BsBzaGIf.mjs → branches-PL170CYS.mjs} +4 -4
- package/dist/{cancel-BNM0yyx-.mjs → cancel-EFKcF5J_.mjs} +3 -3
- package/dist/{cancel-task-Bggzn4JL.mjs → cancel-task-mFFx0d5m.mjs} +4 -4
- package/dist/{capabilities-DrDJo_ng.mjs → capabilities-CiaAfUgX.mjs} +1 -1
- package/dist/{card-DHCcmpgr.mjs → card-BsfdXK0O.mjs} +6 -6
- package/dist/{cards-D0hvA13L.mjs → cards-BI7zKb9M.mjs} +4 -4
- package/dist/cli.mjs +29 -26
- package/dist/{collection-D0O9gp3S.mjs → collection-2h_by9Ue.mjs} +6 -6
- package/dist/{collection-CFoLPrY5.mjs → collection-C52Ndi_O.mjs} +4 -2
- package/dist/{collection-namespace-DqPNrCdQ.mjs → collection-namespace-uNA5WhLB.mjs} +2 -2
- package/dist/{create-Cii_utzV.mjs → create-BLD0YniB.mjs} +5 -4
- package/dist/create-BP8EIWrP.mjs +161 -0
- package/dist/{create-Cyv7vHV_.mjs → create-BpizGzgQ.mjs} +5 -5
- package/dist/create-BxCsAdqc.mjs +45 -0
- package/dist/{create-CZ9KFnbi.mjs → create-CBKT7SE_.mjs} +5 -5
- package/dist/{create-C17Fh1_X.mjs → create-CQ32FwVe.mjs} +8 -7
- package/dist/{create-DKuixGJ2.mjs → create-CU3bYpsT.mjs} +5 -5
- package/dist/create-DAH24ltu.mjs +45 -0
- package/dist/{create-a3s1S2Dw.mjs → create-DutkaD7P.mjs} +7 -7
- package/dist/{create-E6L3WMqV.mjs → create-FuZa4j1N.mjs} +5 -5
- package/dist/{create-BR7x66KW.mjs → create-KveE3j3p.mjs} +8 -8
- package/dist/{create-C8ndg3g4.mjs → create-VrSowEbj.mjs} +6 -6
- package/dist/{create-oLb0E-ZP.mjs → create-acWKw4Y1.mjs} +7 -7
- package/dist/{create-branch-Dxn6UnV_.mjs → create-branch-CP1Y4_El.mjs} +4 -4
- package/dist/{create-05rX4oL-.mjs → create-xPfmI1Tu.mjs} +7 -7
- package/dist/{csv-T6_vlLJS.mjs → csv-CZyYi0vi.mjs} +5 -5
- package/dist/{current-task-DxWbw-bU.mjs → current-task-BR4koo9z.mjs} +4 -4
- package/dist/{dashboard-BpSPoeAn.mjs → dashboard-ARgJfamb.mjs} +8 -8
- package/dist/{database-CIbVSfua.mjs → database-BOqzcexD.mjs} +1 -1
- package/dist/{db-DBRijnh4.mjs → db-dbnxMPSR.mjs} +6 -6
- package/dist/{delete--P1xFX37.mjs → delete-BpL3vaaT.mjs} +5 -5
- package/dist/{delete-Ce2EBQYA.mjs → delete-C5DqDwev.mjs} +5 -5
- package/dist/delete-DCDFLHFa.mjs +49 -0
- package/dist/delete-P2Qlsr_s.mjs +49 -0
- package/dist/{delete-BBOIUl0D.mjs → delete-ea_ns1uM.mjs} +5 -5
- package/dist/{delete-runtime-B-8I9V1g.mjs → delete-runtime-DdBn6poA.mjs} +2 -2
- package/dist/{delete-table-Bj32NsXn.mjs → delete-table-tM048btr.mjs} +5 -5
- package/dist/{dependencies-ixzjVjUz.mjs → dependencies-DdOTClO2.mjs} +4 -4
- package/dist/destroy-B51EPvOJ.mjs +168 -0
- package/dist/{dirty-CH70h5m5.mjs → dirty-CEQYmhNF.mjs} +4 -4
- package/dist/{document-dZpuFu3I.mjs → document-DR1FLOn9.mjs} +5 -5
- package/dist/{eid-XjkBbyb_.mjs → eid-CtKGjAkz.mjs} +4 -4
- package/dist/events-C26DZ6yZ.mjs +44 -0
- package/dist/{export-CChMg-mL.mjs → export-CippuWZJ.mjs} +5 -8
- package/dist/export-Cy2DFtR2.mjs +10 -0
- package/dist/{field-B1heFeCz.mjs → field-CXDndCbB.mjs} +4 -4
- package/dist/{fields-C7h2QwUp.mjs → fields-Xm_HVNcX.mjs} +4 -4
- package/dist/{get-RlP_xiUd.mjs → get-3O7hv4zv.mjs} +5 -5
- package/dist/{get-Cj90oyxG.mjs → get-B0cq1uGy.mjs} +4 -4
- package/dist/{get-BWHJDa0B.mjs → get-B90bXbpw.mjs} +4 -4
- package/dist/{get-DWWmpQ87.mjs → get-BQBu2c94.mjs} +4 -4
- package/dist/{get-BsyccuCH.mjs → get-BQz45IBF.mjs} +5 -4
- package/dist/get-BSfKWZNJ.mjs +35 -0
- package/dist/get-BdNC8WM8.mjs +38 -0
- package/dist/{get-D9r2znrn.mjs → get-Bj66bcuU.mjs} +4 -4
- package/dist/{get-DRZENkCj.mjs → get-BrKqMM1d.mjs} +4 -4
- package/dist/{get-cyR67Lmq.mjs → get-CjZWjRa5.mjs} +4 -4
- package/dist/{get-kqY2lwhO.mjs → get-CwGqARAf.mjs} +4 -4
- package/dist/{get-B6ZJCJ8H.mjs → get-D5crrFSf.mjs} +4 -4
- package/dist/{get-AvGH_oph.mjs → get-DTkvGu_J.mjs} +3 -3
- package/dist/{get-KVN9ANVh.mjs → get-DX2fp6BB.mjs} +3 -3
- package/dist/get-DYuJVlP-.mjs +35 -0
- package/dist/{get-DrWYvefc.mjs → get-FIE88hj9.mjs} +4 -4
- package/dist/{get-C98IFgFi.mjs → get-Ihx_XaaI.mjs} +3 -3
- package/dist/{get-run-C4C_QQqO.mjs → get-run-lVwhQVFx.mjs} +4 -4
- package/dist/{get-Dg1J0wxb.mjs → get-z0BKkiRX.mjs} +4 -4
- package/dist/git-sync-CmB4YBmS.mjs +31 -0
- package/dist/{has-remote-changes-dLUGr0MD.mjs → has-remote-changes-DHrYSnTg.mjs} +4 -4
- package/dist/{import-Byull6jF.mjs → import-BU40xXSF.mjs} +6 -6
- package/dist/{input-m9ctfLxZ.mjs → input-BGyHn0Kr.mjs} +1 -1
- package/dist/{is-dirty-CU3ovgdG.mjs → is-dirty-BPluqPPP.mjs} +3 -3
- package/dist/is-dirty-DOy1TRcf.mjs +8 -0
- package/dist/{items-CEGDYWuF.mjs → items-BZpYkImP.mjs} +6 -6
- package/dist/{key-Ge4VwWvS.mjs → key-B8UAsQmB.mjs} +1 -1
- package/dist/{library-DHWWa4Tt.mjs → library-BGWDIfEM.mjs} +4 -4
- package/dist/list-B037kJtH.mjs +39 -0
- package/dist/{list-BuyRG3GB.mjs → list-B7Ihu6XI.mjs} +4 -4
- package/dist/{list-BtcpNl4-.mjs → list-BCeZlfpQ.mjs} +3 -3
- package/dist/{list-Bpv06V24.mjs → list-Bct00qku.mjs} +4 -4
- package/dist/{list-D9FY30xH.mjs → list-Be8xMtS3.mjs} +3 -3
- package/dist/{list-3z1ZChTG.mjs → list-CjBPVJqd.mjs} +3 -3
- package/dist/{list-CmCJwaGT.mjs → list-CoqHnusK.mjs} +3 -3
- package/dist/{list-O2w5xd1q.mjs → list-CvaoHnl-.mjs} +3 -3
- package/dist/{list-BliCJAjt.mjs → list-DamRE5Ds.mjs} +3 -3
- package/dist/{list-Br48kL09.mjs → list-DmopauvJ.mjs} +3 -3
- package/dist/{list-th_Ym6Cv.mjs → list-M_1sdYNH.mjs} +4 -4
- package/dist/{list-Cur_72xZ.mjs → list-Ov6bYzT9.mjs} +6 -5
- package/dist/{list-BFm4iEBt.mjs → list-SfpASSFx.mjs} +3 -3
- package/dist/{list-DEkPxVZu.mjs → list-fPfgG0PY.mjs} +3 -3
- package/dist/list-lsPeumLP.mjs +34 -0
- package/dist/{list-B9TyELob.mjs → list-sn9M7QQX.mjs} +3 -3
- package/dist/{list-CMb03cv3.mjs → list-wxIVl45_.mjs} +3 -3
- package/dist/listing-wFZuS5li.mjs +10 -0
- package/dist/{login-hKlYsAa1.mjs → login-CRlmR4op.mjs} +59 -19
- package/dist/{logout-DO8GVC6b.mjs → logout-DSZEUxSQ.mjs} +4 -4
- package/dist/{measure-R3T20wnB.mjs → measure-Ka0n3426.mjs} +5 -5
- package/dist/{parameter-values-BJb2GuLz.mjs → parameter-values-CwW8Xes7.mjs} +3 -3
- package/dist/{parse-enum-Cfne2suT.mjs → parse-enum-ooCsJWn6.mjs} +1 -1
- package/dist/parse-id-xS1tWJAq.mjs +18 -0
- package/dist/{parse-ref-C_MsXYI6.mjs → parse-ref-j4lxaQmd.mjs} +1 -1
- package/dist/{path-DzhQVCH8.mjs → path-CVmg-bmf.mjs} +3 -3
- package/dist/{poll-D1Yg78c3.mjs → poll-CuTlWBwI.mjs} +2 -2
- package/dist/{poll-task-DLUZaglY.mjs → poll-task-DhsYs8Hx.mjs} +2 -2
- package/dist/{preflight-Cy2jUSca.mjs → preflight-D3VgjEg7.mjs} +2 -2
- package/dist/{process-D5HN1wpT.mjs → process-7c8BcQEi.mjs} +1 -1
- package/dist/profile-name-CZ1-Vtrh.mjs +7 -0
- package/dist/{prompt-ZG9Drin_.mjs → prompt-jQnNKtlx.mjs} +1 -1
- package/dist/{publish-3hmHoaX-.mjs → publish-DFTCsjHU.mjs} +12 -7
- package/dist/{query-DkZViD_3.mjs → query-CPq-dhFV.mjs} +7 -7
- package/dist/{query-DTASj9Zu.mjs → query-Dfx69iJ4.mjs} +4 -4
- package/dist/{query-result-CbTFdlSf.mjs → query-result-Cg7odyR_.mjs} +1 -1
- package/dist/{remove-collection-D3wH9H6R.mjs → remove-collection-DUAMhx5L.mjs} +6 -6
- package/dist/{replace-CFzqkZXs.mjs → replace-DZWd6avZ.mjs} +5 -5
- package/dist/{requests-KBiY9UYy.mjs → requests-DYrDe-D0.mjs} +2 -2
- package/dist/{rescan-values-B1WycObS.mjs → rescan-values-DZSnEFA0.mjs} +5 -5
- package/dist/{resolve-Ct084wx3.mjs → resolve-BTZuO3Yq.mjs} +22 -15
- package/dist/{run-B8qEEdC8.mjs → run-B2b3Bjmv.mjs} +3 -3
- package/dist/{run-cw0qTEQ7.mjs → run-ryZ4sXK5.mjs} +6 -6
- package/dist/{runs-BOA4kK_X.mjs → runs-F82HVSie.mjs} +5 -5
- package/dist/{runtime-B-c-Fc2i.mjs → runtime-C6ASrgVA.mjs} +942 -906
- package/dist/{schema-tables-DRYzSVcW.mjs → schema-tables-CCOKb715.mjs} +4 -4
- package/dist/{schemas-BiMjD25L.mjs → schemas-LtVrNECH.mjs} +3 -3
- package/dist/{search-DjKxRXO5.mjs → search-9GSZHgJQ.mjs} +3 -3
- package/dist/{segment-CZkk0g79.mjs → segment-C40bORNZ.mjs} +5 -5
- package/dist/{selectors-B7MJUn3I.mjs → selectors-B2nDmrIV.mjs} +3 -3
- package/dist/{set-kyoORFG3.mjs → set-C57KDMGM.mjs} +6 -6
- package/dist/{set-active-CF868qdW.mjs → set-active-BDHGHtj2.mjs} +3 -3
- package/dist/{setting-BZgjURQ_.mjs → setting-zrJwy48C.mjs} +3 -3
- package/dist/{setup-D9joJYPb.mjs → setup-Doq8atTG.mjs} +4 -4
- package/dist/{skills-BqI05u72.mjs → skills-y-KsUqT9.mjs} +1 -1
- package/dist/{skills-D8NrJxjp.mjs → skills-yuzH_o8s.mjs} +3 -3
- package/dist/{snippet-y_FzKxaQ.mjs → snippet-ScFM8re8.mjs} +5 -5
- package/dist/{stash-BVMerTaF.mjs → stash-D_u6z4q6.mjs} +6 -6
- package/dist/{status-C-0jFjFn.mjs → status--Dm2Jv6k.mjs} +3 -3
- package/dist/{status-x8bDOa1i.mjs → status-CDPhDX5I.mjs} +26 -10
- package/dist/{summary-B-R9SdMF.mjs → summary-C9a2cBTE.mjs} +3 -3
- package/dist/{sync-schema-wne2KXIW.mjs → sync-schema-CDIWNCGI.mjs} +7 -7
- package/dist/sync-scope-DW2QpGwv.mjs +55 -0
- package/dist/{table-CS2-2INi.mjs → table-BKehBm_E.mjs} +4 -4
- package/dist/timeline-DEaiuB5V.mjs +157 -0
- package/dist/timeline-event-CLWMxvE0.mjs +22 -0
- package/dist/timeline-n3Nw9Egt.mjs +24 -0
- package/dist/transform-CrOOqKen.mjs +31 -0
- package/dist/transform-job-J-E0Mec7.mjs +25 -0
- package/dist/{transform-tag-DaNKreDj.mjs → transform-tag-Bkyasy_s.mjs} +4 -4
- package/dist/{transforms-DB2WNP2R.mjs → transforms-w2a5qsjJ.mjs} +4 -4
- package/dist/{tree-BIOphGVs.mjs → tree-JZC6vD9q.mjs} +3 -3
- package/dist/{unpublish-BWM36ZTg.mjs → unpublish-BsfIH46y.mjs} +4 -4
- package/dist/{update-BCbv880u.mjs → update-B8hn6VxO.mjs} +8 -8
- package/dist/{update-BlzcZwRQ.mjs → update-BSNK36fk.mjs} +8 -8
- package/dist/update-BTFj6WHo.mjs +52 -0
- package/dist/{update-6umfSz5t.mjs → update-BfIGjAVA.mjs} +5 -5
- package/dist/{update-HxYcvpSq.mjs → update-C1_aIL6X.mjs} +7 -7
- package/dist/{update-BchtHlbH.mjs → update-CXKWHOIN.mjs} +6 -6
- package/dist/{update-CTZg2Lia.mjs → update-Cg09lBb5.mjs} +9 -9
- package/dist/update-D01S8hnw.mjs +52 -0
- package/dist/{update-7Ts7KrB8.mjs → update-DKQjMsuE.mjs} +6 -6
- package/dist/{update-Sz0QRGWB.mjs → update-DSlSr7Ky.mjs} +6 -6
- package/dist/{update-DJDuIhYG.mjs → update-QaBVvlz9.mjs} +6 -6
- package/dist/{update-BiUeEGU-.mjs → update-WLb9099y.mjs} +8 -8
- package/dist/{update-zfLbmC-H.mjs → update-bFNKpay8.mjs} +6 -6
- package/dist/{update-dashcard-CfDpy7Lz.mjs → update-dashcard-CKZC7scy.mjs} +6 -6
- package/dist/{upgrade-BWl0VjMK.mjs → upgrade-DkK1ZbEY.mjs} +4 -4
- package/dist/{upload-CPzOhGeX.mjs → upload-DOMoaR9f.mjs} +3 -3
- package/dist/{uuid-D_YeqDui.mjs → uuid-DDbLKnbe.mjs} +2 -2
- package/dist/{validate-clAWO3X-.mjs → validate-DqQ7DQnP.mjs} +1 -1
- package/dist/{validate-query-CsK2_2_u.mjs → validate-query-BYG7lyaY.mjs} +2 -2
- package/dist/{values-DSk8ZJ3B.mjs → values-Bc99Kkuv.mjs} +3 -3
- package/dist/{verify-DkQdLjf3.mjs → verify-WvMbaT8W.mjs} +2 -2
- package/dist/{wait-DvSsMjea.mjs → wait-DmgEPnHW.mjs} +5 -5
- package/dist/{wait-flags-dXGThljd.mjs → wait-flags-BpzyrpAL.mjs} +2 -2
- package/dist/workspace-BgH_4xFO.mjs +75 -0
- package/dist/workspace-LFtHxcw9.mjs +19 -0
- package/package.json +1 -1
- package/skill-data/core/SKILL.md +5 -3
- package/skill-data/git-sync/SKILL.md +20 -5
- package/skill-data/visualization/SKILL.md +1 -0
- package/dist/add-collection-DlAwt2Z3.mjs +0 -9
- package/dist/git-sync-JHa7bIyY.mjs +0 -31
- package/dist/is-dirty-Bb2dfEYs.mjs +0 -8
- package/dist/parse-id-DfY0Lugw.mjs +0 -12
- package/dist/transform-6hqM1DXA.mjs +0 -31
- package/dist/transform-job-DuERhLaj.mjs +0 -25
- /package/dist/{dashboard-B-MTpfeS.mjs → dashboard-BLihjDXg.mjs} +0 -0
- /package/dist/{document-CL4ML5FN.mjs → document-D4zB-5a0.mjs} +0 -0
- /package/dist/{measure-S9WszHre.mjs → measure-C3G1srWb.mjs} +0 -0
- /package/dist/{paginate-CMqbqhMC.mjs → paginate-FVZUxL4J.mjs} +0 -0
- /package/dist/{revision-message-flag-CHzX0cqV.mjs → revision-message-flag-CHrJgFFx.mjs} +0 -0
- /package/dist/{segment-BPb1H6DW.mjs → segment-CxRYEXeO.mjs} +0 -0
- /package/dist/{setting-Cko6bE_w.mjs → setting-m46MUtW5.mjs} +0 -0
- /package/dist/{snippet-DWiXNy4T.mjs → snippet-C8PVaPY9.mjs} +0 -0
- /package/dist/{table-C3RIKiYM.mjs → table-3onHpwcb.mjs} +0 -0
- /package/dist/{transform-JQel7e5H.mjs → transform-DP6J2ber.mjs} +0 -0
- /package/dist/{transform-job-CtVziW85.mjs → transform-job-B5x8aYfV.mjs} +0 -0
- /package/dist/{transform-tag-wFiWmiyO.mjs → transform-tag-BRwfWeHf.mjs} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-
|
|
1
|
+
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-CiaAfUgX.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./poll-
|
|
5
|
-
import { SyncTaskOrIdle, fetchCurrentTask, formatSyncTask, syncTaskIdleView, syncTaskView } from "./poll-task-
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C6ASrgVA.mjs";
|
|
4
|
+
import "./poll-CuTlWBwI.mjs";
|
|
5
|
+
import { SyncTaskOrIdle, fetchCurrentTask, formatSyncTask, syncTaskIdleView, syncTaskView } from "./poll-task-DhsYs8Hx.mjs";
|
|
6
6
|
|
|
7
7
|
//#region src/commands/git-sync/current-task.ts
|
|
8
8
|
const CurrentTaskResult = SyncTaskOrIdle;
|
|
@@ -20,14 +20,14 @@ var dashboard_default = defineCommandGroup({
|
|
|
20
20
|
}
|
|
21
21
|
],
|
|
22
22
|
subCommands: {
|
|
23
|
-
list: () => import("./list-
|
|
24
|
-
get: () => import("./get-
|
|
25
|
-
cards: () => import("./cards-
|
|
26
|
-
"parameter-values": () => import("./parameter-values-
|
|
27
|
-
create: () => import("./create-
|
|
28
|
-
update: () => import("./update-
|
|
29
|
-
"update-dashcard": () => import("./update-dashcard-
|
|
30
|
-
archive: () => import("./archive-
|
|
23
|
+
list: () => import("./list-B7Ihu6XI.mjs").then((mod) => mod.default),
|
|
24
|
+
get: () => import("./get-FIE88hj9.mjs").then((mod) => mod.default),
|
|
25
|
+
cards: () => import("./cards-BI7zKb9M.mjs").then((mod) => mod.default),
|
|
26
|
+
"parameter-values": () => import("./parameter-values-CwW8Xes7.mjs").then((mod) => mod.default),
|
|
27
|
+
create: () => import("./create-acWKw4Y1.mjs").then((mod) => mod.default),
|
|
28
|
+
update: () => import("./update-BSNK36fk.mjs").then((mod) => mod.default),
|
|
29
|
+
"update-dashcard": () => import("./update-dashcard-CKZC7scy.mjs").then((mod) => mod.default),
|
|
30
|
+
archive: () => import("./archive-Q1387APe.mjs").then((mod) => mod.default)
|
|
31
31
|
}
|
|
32
32
|
});
|
|
33
33
|
|
|
@@ -14,12 +14,12 @@ var db_default = defineCommandGroup({
|
|
|
14
14
|
purpose: "model a raw database into clean tables"
|
|
15
15
|
}],
|
|
16
16
|
subCommands: {
|
|
17
|
-
list: () => import("./list-
|
|
18
|
-
get: () => import("./get-
|
|
19
|
-
schemas: () => import("./schemas-
|
|
20
|
-
"schema-tables": () => import("./schema-tables-
|
|
21
|
-
"sync-schema": () => import("./sync-schema-
|
|
22
|
-
"rescan-values": () => import("./rescan-values-
|
|
17
|
+
list: () => import("./list-Bct00qku.mjs").then((m) => m.default),
|
|
18
|
+
get: () => import("./get-3O7hv4zv.mjs").then((m) => m.default),
|
|
19
|
+
schemas: () => import("./schemas-LtVrNECH.mjs").then((m) => m.default),
|
|
20
|
+
"schema-tables": () => import("./schema-tables-CCOKb715.mjs").then((m) => m.default),
|
|
21
|
+
"sync-schema": () => import("./sync-schema-CDIWNCGI.mjs").then((m) => m.default),
|
|
22
|
+
"rescan-values": () => import("./rescan-values-DZSnEFA0.mjs").then((m) => m.default)
|
|
23
23
|
}
|
|
24
24
|
});
|
|
25
25
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { connectionFlags, outputFlags, profileFlag } from "./capabilities-
|
|
1
|
+
import { connectionFlags, outputFlags, profileFlag } from "./capabilities-CiaAfUgX.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./prompt-
|
|
5
|
-
import { parseId } from "./parse-id-
|
|
6
|
-
import { DeleteResult, confirmAndDelete } from "./delete-runtime-
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C6ASrgVA.mjs";
|
|
4
|
+
import "./prompt-jQnNKtlx.mjs";
|
|
5
|
+
import { parseId } from "./parse-id-xS1tWJAq.mjs";
|
|
6
|
+
import { DeleteResult, confirmAndDelete } from "./delete-runtime-DdBn6poA.mjs";
|
|
7
7
|
|
|
8
8
|
//#region src/commands/transform-tag/delete.ts
|
|
9
9
|
var delete_default = defineMetabaseCommand({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { connectionFlags, outputFlags, profileFlag } from "./capabilities-
|
|
1
|
+
import { connectionFlags, outputFlags, profileFlag } from "./capabilities-CiaAfUgX.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./prompt-
|
|
5
|
-
import { parseId } from "./parse-id-
|
|
6
|
-
import { DeleteResult, confirmAndDelete } from "./delete-runtime-
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C6ASrgVA.mjs";
|
|
4
|
+
import "./prompt-jQnNKtlx.mjs";
|
|
5
|
+
import { parseId } from "./parse-id-xS1tWJAq.mjs";
|
|
6
|
+
import { DeleteResult, confirmAndDelete } from "./delete-runtime-DdBn6poA.mjs";
|
|
7
7
|
|
|
8
8
|
//#region src/commands/transform/delete.ts
|
|
9
9
|
var delete_default = defineMetabaseCommand({
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { connectionFlags, outputFlags, profileFlag } from "./capabilities-CiaAfUgX.mjs";
|
|
2
|
+
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C6ASrgVA.mjs";
|
|
4
|
+
import "./prompt-jQnNKtlx.mjs";
|
|
5
|
+
import { parseId } from "./parse-id-xS1tWJAq.mjs";
|
|
6
|
+
import { DeleteResult, confirmAndDelete } from "./delete-runtime-DdBn6poA.mjs";
|
|
7
|
+
|
|
8
|
+
//#region src/commands/timeline/delete.ts
|
|
9
|
+
var delete_default = defineMetabaseCommand({
|
|
10
|
+
meta: {
|
|
11
|
+
name: "delete",
|
|
12
|
+
description: "Permanently delete a timeline and all its events by id"
|
|
13
|
+
},
|
|
14
|
+
capabilities: { minVersion: 58 },
|
|
15
|
+
args: {
|
|
16
|
+
...outputFlags,
|
|
17
|
+
...profileFlag,
|
|
18
|
+
...connectionFlags,
|
|
19
|
+
yes: {
|
|
20
|
+
type: "boolean",
|
|
21
|
+
description: "Skip confirmation",
|
|
22
|
+
default: false
|
|
23
|
+
},
|
|
24
|
+
id: {
|
|
25
|
+
type: "positional",
|
|
26
|
+
description: "Timeline id",
|
|
27
|
+
required: true
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
outputSchema: DeleteResult,
|
|
31
|
+
examples: ["mb timeline delete 1 --yes", "mb timeline delete 1"],
|
|
32
|
+
async run({ args, ctx, getClient }) {
|
|
33
|
+
const id = parseId(args.id);
|
|
34
|
+
const client = await getClient();
|
|
35
|
+
await confirmAndDelete({
|
|
36
|
+
id,
|
|
37
|
+
path: `/api/timeline/${id}`,
|
|
38
|
+
yes: args.yes,
|
|
39
|
+
promptMessage: `Delete timeline ${id} and all its events?`,
|
|
40
|
+
successMessage: `Deleted timeline ${id}.`,
|
|
41
|
+
abortMessage: `Aborted; timeline ${id} was not deleted.`,
|
|
42
|
+
client,
|
|
43
|
+
ctx
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
//#endregion
|
|
49
|
+
export { delete_default as default };
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { connectionFlags, outputFlags, profileFlag } from "./capabilities-CiaAfUgX.mjs";
|
|
2
|
+
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C6ASrgVA.mjs";
|
|
4
|
+
import "./prompt-jQnNKtlx.mjs";
|
|
5
|
+
import { parseId } from "./parse-id-xS1tWJAq.mjs";
|
|
6
|
+
import { DeleteResult, confirmAndDelete } from "./delete-runtime-DdBn6poA.mjs";
|
|
7
|
+
|
|
8
|
+
//#region src/commands/timeline-event/delete.ts
|
|
9
|
+
var delete_default = defineMetabaseCommand({
|
|
10
|
+
meta: {
|
|
11
|
+
name: "delete",
|
|
12
|
+
description: "Permanently delete a timeline event by id"
|
|
13
|
+
},
|
|
14
|
+
capabilities: { minVersion: 58 },
|
|
15
|
+
args: {
|
|
16
|
+
...outputFlags,
|
|
17
|
+
...profileFlag,
|
|
18
|
+
...connectionFlags,
|
|
19
|
+
yes: {
|
|
20
|
+
type: "boolean",
|
|
21
|
+
description: "Skip confirmation",
|
|
22
|
+
default: false
|
|
23
|
+
},
|
|
24
|
+
id: {
|
|
25
|
+
type: "positional",
|
|
26
|
+
description: "Timeline event id",
|
|
27
|
+
required: true
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
outputSchema: DeleteResult,
|
|
31
|
+
examples: ["mb timeline-event delete 1 --yes", "mb timeline-event delete 1"],
|
|
32
|
+
async run({ args, ctx, getClient }) {
|
|
33
|
+
const id = parseId(args.id);
|
|
34
|
+
const client = await getClient();
|
|
35
|
+
await confirmAndDelete({
|
|
36
|
+
id,
|
|
37
|
+
path: `/api/timeline-event/${id}`,
|
|
38
|
+
yes: args.yes,
|
|
39
|
+
promptMessage: `Delete timeline event ${id}?`,
|
|
40
|
+
successMessage: `Deleted timeline event ${id}.`,
|
|
41
|
+
abortMessage: `Aborted; timeline event ${id} was not deleted.`,
|
|
42
|
+
client,
|
|
43
|
+
ctx
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
//#endregion
|
|
49
|
+
export { delete_default as default };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { connectionFlags, outputFlags, profileFlag } from "./capabilities-
|
|
1
|
+
import { connectionFlags, outputFlags, profileFlag } from "./capabilities-CiaAfUgX.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./prompt-
|
|
5
|
-
import { parseId } from "./parse-id-
|
|
6
|
-
import { DeleteResult, confirmAndDelete } from "./delete-runtime-
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C6ASrgVA.mjs";
|
|
4
|
+
import "./prompt-jQnNKtlx.mjs";
|
|
5
|
+
import { parseId } from "./parse-id-xS1tWJAq.mjs";
|
|
6
|
+
import { DeleteResult, confirmAndDelete } from "./delete-runtime-DdBn6poA.mjs";
|
|
7
7
|
|
|
8
8
|
//#region src/commands/transform-job/delete.ts
|
|
9
9
|
var delete_default = defineMetabaseCommand({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ConfigError, renderSummary } from "./capabilities-
|
|
2
|
-
import { promptConfirm } from "./prompt-
|
|
1
|
+
import { ConfigError, renderSummary } from "./capabilities-CiaAfUgX.mjs";
|
|
2
|
+
import { promptConfirm } from "./prompt-jQnNKtlx.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
|
|
5
5
|
//#region src/commands/delete-runtime.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { connectionFlags, outputFlags, profileFlag } from "./capabilities-
|
|
1
|
+
import { connectionFlags, outputFlags, profileFlag } from "./capabilities-CiaAfUgX.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./prompt-
|
|
5
|
-
import { parseId } from "./parse-id-
|
|
6
|
-
import { DeleteResult, confirmAndDelete } from "./delete-runtime-
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C6ASrgVA.mjs";
|
|
4
|
+
import "./prompt-jQnNKtlx.mjs";
|
|
5
|
+
import { parseId } from "./parse-id-xS1tWJAq.mjs";
|
|
6
|
+
import { DeleteResult, confirmAndDelete } from "./delete-runtime-DdBn6poA.mjs";
|
|
7
7
|
|
|
8
8
|
//#region src/commands/transform/delete-table.ts
|
|
9
9
|
var delete_table_default = defineMetabaseCommand({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, renderList, wrapList } from "./capabilities-
|
|
1
|
+
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, renderList, wrapList } from "./capabilities-CiaAfUgX.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import { parseId } from "./parse-id-
|
|
5
|
-
import { Transform, TransformCompact, transformView } from "./transform-
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C6ASrgVA.mjs";
|
|
4
|
+
import { parseId } from "./parse-id-xS1tWJAq.mjs";
|
|
5
|
+
import { Transform, TransformCompact, transformView } from "./transform-DP6J2ber.mjs";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
|
|
8
8
|
//#region src/commands/transform/dependencies.ts
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import { ConfigError, connectionFlags, errorMessage, outputFlags, profileFlag, renderSummary, warn } from "./capabilities-CiaAfUgX.mjs";
|
|
2
|
+
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
+
import { clearProfile, createClient, defineMetabaseCommand, readProfileCredential } from "./runtime-C6ASrgVA.mjs";
|
|
4
|
+
import { promptConfirm } from "./prompt-jQnNKtlx.mjs";
|
|
5
|
+
import { parseId } from "./parse-id-xS1tWJAq.mjs";
|
|
6
|
+
import { DEFAULT_INTERVAL_MS, DEFAULT_TIMEOUT_MS } from "./poll-CuTlWBwI.mjs";
|
|
7
|
+
import "./wait-flags-BpzyrpAL.mjs";
|
|
8
|
+
import { REMOTE_SYNC_PATHS, pollSyncTask, throwIfFailedTask } from "./poll-task-DhsYs8Hx.mjs";
|
|
9
|
+
import { SyncExportKickoff } from "./export-CippuWZJ.mjs";
|
|
10
|
+
import { IsDirtyResult } from "./is-dirty-BPluqPPP.mjs";
|
|
11
|
+
import { workspaceProfileName } from "./profile-name-CZ1-Vtrh.mjs";
|
|
12
|
+
import { z } from "zod";
|
|
13
|
+
|
|
14
|
+
//#region src/commands/workspace/destroy.ts
|
|
15
|
+
const WorkspaceOrphanedResource = z.object({
|
|
16
|
+
workspace_database_id: z.number().int(),
|
|
17
|
+
database_id: z.number().int(),
|
|
18
|
+
driver: z.string(),
|
|
19
|
+
schema: z.string(),
|
|
20
|
+
user: z.string(),
|
|
21
|
+
reason: z.string().nullable().optional()
|
|
22
|
+
}).loose();
|
|
23
|
+
const WorkspaceDeleteResponse = z.object({
|
|
24
|
+
id: z.number().int(),
|
|
25
|
+
deleted: z.boolean(),
|
|
26
|
+
message: z.string().optional(),
|
|
27
|
+
orphaned_resources: z.array(WorkspaceOrphanedResource).optional()
|
|
28
|
+
}).loose();
|
|
29
|
+
const WorkspaceDestroyResult = WorkspaceDeleteResponse.extend({ aborted: z.boolean() });
|
|
30
|
+
const workspaceDestroyView = {
|
|
31
|
+
compactPick: WorkspaceDestroyResult,
|
|
32
|
+
tableColumns: [
|
|
33
|
+
{
|
|
34
|
+
key: "id",
|
|
35
|
+
label: "ID"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
key: "deleted",
|
|
39
|
+
label: "Destroyed"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
key: "aborted",
|
|
43
|
+
label: "Aborted"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
key: "message",
|
|
47
|
+
label: "Message"
|
|
48
|
+
}
|
|
49
|
+
]
|
|
50
|
+
};
|
|
51
|
+
var destroy_default = defineMetabaseCommand({
|
|
52
|
+
meta: {
|
|
53
|
+
name: "destroy",
|
|
54
|
+
description: "Destroy a workspace and its warehouse isolation"
|
|
55
|
+
},
|
|
56
|
+
details: "Destroy is the only irreversible moment, so it closes the work-loss window first: when a local profile named ws-<id> exists, the child is checked for unsynced work and a dirty workspace is auto-exported to its target branch before anything is torn down (--discard skips the check and the export). Then each provisioned database's warehouse isolation (temporary schema + user) is dropped and the workspace removed; the matching local profile is dropped on success. Refuses with a 409 while any database is still provisioning/deprovisioning unless --ignore-pending is passed, which removes the workspace records and leaves those warehouse objects behind. If the warehouse was unreachable, the result lists the leftover schema/user objects under orphaned_resources.",
|
|
57
|
+
capabilities: {
|
|
58
|
+
minVersion: 62,
|
|
59
|
+
tokenFeature: "workspaces"
|
|
60
|
+
},
|
|
61
|
+
args: {
|
|
62
|
+
...outputFlags,
|
|
63
|
+
...profileFlag,
|
|
64
|
+
...connectionFlags,
|
|
65
|
+
yes: {
|
|
66
|
+
type: "boolean",
|
|
67
|
+
description: "Skip confirmation",
|
|
68
|
+
default: false
|
|
69
|
+
},
|
|
70
|
+
discard: {
|
|
71
|
+
type: "boolean",
|
|
72
|
+
description: "Destroy without exporting unsynced work (skips the is-dirty check)",
|
|
73
|
+
default: false
|
|
74
|
+
},
|
|
75
|
+
"ignore-pending": {
|
|
76
|
+
type: "boolean",
|
|
77
|
+
description: "Remove workspace records even while databases are provisioning/deprovisioning",
|
|
78
|
+
default: false
|
|
79
|
+
},
|
|
80
|
+
id: {
|
|
81
|
+
type: "positional",
|
|
82
|
+
description: "Workspace id",
|
|
83
|
+
required: true
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
outputSchema: WorkspaceDestroyResult,
|
|
87
|
+
examples: [
|
|
88
|
+
"mb workspace destroy 1 --yes",
|
|
89
|
+
"mb workspace destroy 1 --yes --discard",
|
|
90
|
+
"mb workspace destroy 1 --yes --ignore-pending"
|
|
91
|
+
],
|
|
92
|
+
async run({ args, ctx, getClient }) {
|
|
93
|
+
const id = parseId(args.id);
|
|
94
|
+
if (!args.yes) {
|
|
95
|
+
if (process.stdin.isTTY !== true) throw new ConfigError(`refusing to destroy workspace ${id} without confirmation — pass --yes to proceed non-interactively`);
|
|
96
|
+
const ok = await promptConfirm({
|
|
97
|
+
message: `Destroy workspace ${id}? Its warehouse isolation (schema + user) is dropped.`,
|
|
98
|
+
initialValue: false
|
|
99
|
+
});
|
|
100
|
+
if (!ok) {
|
|
101
|
+
renderSummary({
|
|
102
|
+
id,
|
|
103
|
+
deleted: false,
|
|
104
|
+
aborted: true
|
|
105
|
+
}, workspaceDestroyView, `Aborted; workspace ${id} was not destroyed.`, ctx);
|
|
106
|
+
return;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
const client = await getClient();
|
|
110
|
+
const profileName = workspaceProfileName(id);
|
|
111
|
+
const hasProfile = await guardUnsyncedWork(profileName, args.discard);
|
|
112
|
+
const response = await client.requestParsed(WorkspaceDeleteResponse, `/api/ee/workspace-manager/${id}`, {
|
|
113
|
+
method: "DELETE",
|
|
114
|
+
query: { "ignore-pending": args["ignore-pending"] ? true : void 0 }
|
|
115
|
+
});
|
|
116
|
+
if (response.deleted && hasProfile) {
|
|
117
|
+
await clearProfile(profileName);
|
|
118
|
+
warn(`dropped profile "${profileName}"`);
|
|
119
|
+
}
|
|
120
|
+
renderSummary({
|
|
121
|
+
...response,
|
|
122
|
+
aborted: false
|
|
123
|
+
}, workspaceDestroyView, response.message ?? `Destroyed workspace ${id}.`, ctx);
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
async function guardUnsyncedWork(profileName, discard) {
|
|
127
|
+
const resolved = await readProfileCredential(profileName);
|
|
128
|
+
if (resolved === null) {
|
|
129
|
+
warn(`no local profile "${profileName}" for this workspace — skipping the unsynced-work check`);
|
|
130
|
+
return false;
|
|
131
|
+
}
|
|
132
|
+
if (discard) {
|
|
133
|
+
warn("--discard given — skipping the unsynced-work check");
|
|
134
|
+
return true;
|
|
135
|
+
}
|
|
136
|
+
const child = createClient({
|
|
137
|
+
url: resolved.url,
|
|
138
|
+
credential: resolved.credential
|
|
139
|
+
});
|
|
140
|
+
const dirty = await checkIsDirty(child, profileName);
|
|
141
|
+
if (!dirty) return true;
|
|
142
|
+
warn("workspace has unsynced work — exporting to the target branch before destroy");
|
|
143
|
+
await exportUnsyncedWork(child);
|
|
144
|
+
return true;
|
|
145
|
+
}
|
|
146
|
+
async function checkIsDirty(child, profileName) {
|
|
147
|
+
try {
|
|
148
|
+
const result = await child.requestParsed(IsDirtyResult, REMOTE_SYNC_PATHS.isDirty);
|
|
149
|
+
return result.is_dirty;
|
|
150
|
+
} catch (error) {
|
|
151
|
+
throw new ConfigError(`could not check workspace profile "${profileName}" for unsynced work: ${errorMessage(error)} — pass --discard to destroy anyway`);
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
async function exportUnsyncedWork(child) {
|
|
155
|
+
const kickoff = await child.requestParsed(SyncExportKickoff, REMOTE_SYNC_PATHS.export, {
|
|
156
|
+
method: "POST",
|
|
157
|
+
body: {}
|
|
158
|
+
});
|
|
159
|
+
const final = await pollSyncTask(child, {
|
|
160
|
+
intervalMs: DEFAULT_INTERVAL_MS,
|
|
161
|
+
timeoutMs: DEFAULT_TIMEOUT_MS
|
|
162
|
+
});
|
|
163
|
+
throwIfFailedTask(final, "export");
|
|
164
|
+
warn(`export task #${kickoff.task_id} completed; unsynced work is saved`);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
//#endregion
|
|
168
|
+
export { destroy_default as default };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, renderList, wrapList } from "./capabilities-
|
|
1
|
+
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, renderList, wrapList } from "./capabilities-CiaAfUgX.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./poll-
|
|
5
|
-
import { REMOTE_SYNC_PATHS, SyncDirtyItem, SyncDirtyItemCompact, syncDirtyItemView } from "./poll-task-
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C6ASrgVA.mjs";
|
|
4
|
+
import "./poll-CuTlWBwI.mjs";
|
|
5
|
+
import { REMOTE_SYNC_PATHS, SyncDirtyItem, SyncDirtyItemCompact, syncDirtyItemView } from "./poll-task-DhsYs8Hx.mjs";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
|
|
8
8
|
//#region src/commands/git-sync/dirty.ts
|
|
@@ -10,11 +10,11 @@ var document_default = defineCommandGroup({
|
|
|
10
10
|
purpose: "author the ProseMirror document body"
|
|
11
11
|
}],
|
|
12
12
|
subCommands: {
|
|
13
|
-
list: () => import("./list-
|
|
14
|
-
get: () => import("./get-
|
|
15
|
-
create: () => import("./create-
|
|
16
|
-
update: () => import("./update-
|
|
17
|
-
archive: () => import("./archive-
|
|
13
|
+
list: () => import("./list-DmopauvJ.mjs").then((mod) => mod.default),
|
|
14
|
+
get: () => import("./get-D5crrFSf.mjs").then((mod) => mod.default),
|
|
15
|
+
create: () => import("./create-CBKT7SE_.mjs").then((mod) => mod.default),
|
|
16
|
+
update: () => import("./update-DKQjMsuE.mjs").then((mod) => mod.default),
|
|
17
|
+
archive: () => import("./archive-BwIZzWGe.mjs").then((mod) => mod.default)
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
20
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ConfigError, connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-
|
|
1
|
+
import { ConfigError, connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-CiaAfUgX.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { defineMetabaseCommand, parseCsv } from "./runtime-
|
|
4
|
-
import "./input-
|
|
5
|
-
import { readBody } from "./body-
|
|
3
|
+
import { defineMetabaseCommand, parseCsv } from "./runtime-C6ASrgVA.mjs";
|
|
4
|
+
import "./input-BGyHn0Kr.mjs";
|
|
5
|
+
import { readBody } from "./body-5snfmiwR.mjs";
|
|
6
6
|
import { bodyInputFlags } from "./body-flags-CgHgJBRC.mjs";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, renderList, wrapList } from "./capabilities-CiaAfUgX.mjs";
|
|
2
|
+
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C6ASrgVA.mjs";
|
|
4
|
+
import { parseId } from "./parse-id-xS1tWJAq.mjs";
|
|
5
|
+
import { Timeline, TimelineEventCompact, timelineEventView } from "./timeline-DEaiuB5V.mjs";
|
|
6
|
+
|
|
7
|
+
//#region src/commands/timeline/events.ts
|
|
8
|
+
const TimelineWithEvents = Timeline.required({ events: true });
|
|
9
|
+
const TimelineEventListEnvelope = listEnvelopeSchema(TimelineEventCompact);
|
|
10
|
+
var events_default = defineMetabaseCommand({
|
|
11
|
+
meta: {
|
|
12
|
+
name: "events",
|
|
13
|
+
description: "List events on a timeline"
|
|
14
|
+
},
|
|
15
|
+
capabilities: { minVersion: 58 },
|
|
16
|
+
args: {
|
|
17
|
+
...outputFlags,
|
|
18
|
+
...profileFlag,
|
|
19
|
+
...connectionFlags,
|
|
20
|
+
archived: {
|
|
21
|
+
type: "boolean",
|
|
22
|
+
description: "Include archived events"
|
|
23
|
+
},
|
|
24
|
+
id: {
|
|
25
|
+
type: "positional",
|
|
26
|
+
description: "Timeline id",
|
|
27
|
+
required: true
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
outputSchema: TimelineEventListEnvelope,
|
|
31
|
+
examples: ["mb timeline events 1", "mb timeline events 1 --archived --json"],
|
|
32
|
+
async run({ args, ctx, getClient }) {
|
|
33
|
+
const id = parseId(args.id);
|
|
34
|
+
const client = await getClient();
|
|
35
|
+
const timeline = await client.requestParsed(TimelineWithEvents, `/api/timeline/${id}`, { query: {
|
|
36
|
+
include: "events",
|
|
37
|
+
archived: args.archived || void 0
|
|
38
|
+
} });
|
|
39
|
+
renderList(wrapList(timeline.events), timelineEventView, ctx);
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
//#endregion
|
|
44
|
+
export { events_default as default };
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import { connectionFlags, outputFlags, profileFlag, renderSummary, warn } from "./capabilities-
|
|
2
|
-
import "./
|
|
3
|
-
import {
|
|
4
|
-
import "./
|
|
5
|
-
import "./poll-D1Yg78c3.mjs";
|
|
6
|
-
import { gitSyncWaitFlags, parseWaitFlags } from "./wait-flags-dXGThljd.mjs";
|
|
7
|
-
import { REMOTE_SYNC_PATHS, SyncTask, formatSyncTask, pollSyncTask, throwIfFailedTask } from "./poll-task-DLUZaglY.mjs";
|
|
1
|
+
import { connectionFlags, outputFlags, profileFlag, renderSummary, warn } from "./capabilities-CiaAfUgX.mjs";
|
|
2
|
+
import { defineMetabaseCommand } from "./runtime-C6ASrgVA.mjs";
|
|
3
|
+
import { gitSyncWaitFlags, parseWaitFlags } from "./wait-flags-BpzyrpAL.mjs";
|
|
4
|
+
import { REMOTE_SYNC_PATHS, SyncTask, formatSyncTask, pollSyncTask, throwIfFailedTask } from "./poll-task-DhsYs8Hx.mjs";
|
|
8
5
|
import { z } from "zod";
|
|
9
6
|
|
|
10
7
|
//#region src/commands/git-sync/export.ts
|
|
@@ -100,4 +97,4 @@ function emitRealignHint(ctx) {
|
|
|
100
97
|
}
|
|
101
98
|
|
|
102
99
|
//#endregion
|
|
103
|
-
export {
|
|
100
|
+
export { SyncExportKickoff, SyncExportResult, export_default };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import "./capabilities-CiaAfUgX.mjs";
|
|
2
|
+
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
+
import "./runtime-C6ASrgVA.mjs";
|
|
4
|
+
import "./parse-id-xS1tWJAq.mjs";
|
|
5
|
+
import "./poll-CuTlWBwI.mjs";
|
|
6
|
+
import "./wait-flags-BpzyrpAL.mjs";
|
|
7
|
+
import "./poll-task-DhsYs8Hx.mjs";
|
|
8
|
+
import { SyncExportKickoff, SyncExportResult, export_default } from "./export-CippuWZJ.mjs";
|
|
9
|
+
|
|
10
|
+
export { export_default as default };
|
|
@@ -10,10 +10,10 @@ var field_default = defineCommandGroup({
|
|
|
10
10
|
purpose: "semantic types, FK targets, visibility, dropdown behavior"
|
|
11
11
|
}],
|
|
12
12
|
subCommands: {
|
|
13
|
-
get: () => import("./get-
|
|
14
|
-
values: () => import("./values-
|
|
15
|
-
summary: () => import("./summary-
|
|
16
|
-
update: () => import("./update-
|
|
13
|
+
get: () => import("./get-Ihx_XaaI.mjs").then((m) => m.default),
|
|
14
|
+
values: () => import("./values-Bc99Kkuv.mjs").then((m) => m.default),
|
|
15
|
+
summary: () => import("./summary-C9a2cBTE.mjs").then((m) => m.default),
|
|
16
|
+
update: () => import("./update-BfIGjAVA.mjs").then((m) => m.default)
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
19
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, renderList, wrapList } from "./capabilities-
|
|
1
|
+
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, renderList, wrapList } from "./capabilities-CiaAfUgX.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C6ASrgVA.mjs";
|
|
4
4
|
import { FieldCompact, fieldView } from "./field-DsXTeqBy.mjs";
|
|
5
|
-
import { parseId } from "./parse-id-
|
|
6
|
-
import { TableQueryMetadata } from "./table-
|
|
5
|
+
import { parseId } from "./parse-id-xS1tWJAq.mjs";
|
|
6
|
+
import { TableQueryMetadata } from "./table-3onHpwcb.mjs";
|
|
7
7
|
|
|
8
8
|
//#region src/commands/table/fields.ts
|
|
9
9
|
const FieldListEnvelope = listEnvelopeSchema(FieldCompact);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { connectionFlags, outputFlags, profileFlag, renderItem } from "./capabilities-
|
|
1
|
+
import { connectionFlags, outputFlags, profileFlag, renderItem } from "./capabilities-CiaAfUgX.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { defineMetabaseCommand, parseEnum } from "./runtime-
|
|
3
|
+
import { defineMetabaseCommand, parseEnum } from "./runtime-C6ASrgVA.mjs";
|
|
4
4
|
import "./field-DsXTeqBy.mjs";
|
|
5
|
-
import { parseId } from "./parse-id-
|
|
6
|
-
import "./table-
|
|
7
|
-
import { Database, databaseView } from "./database-
|
|
5
|
+
import { parseId } from "./parse-id-xS1tWJAq.mjs";
|
|
6
|
+
import "./table-3onHpwcb.mjs";
|
|
7
|
+
import { Database, databaseView } from "./database-BOqzcexD.mjs";
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
|
|
10
10
|
//#region src/commands/db/hints.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { connectionFlags, outputFlags, profileFlag, renderItem } from "./capabilities-
|
|
1
|
+
import { connectionFlags, outputFlags, profileFlag, renderItem } from "./capabilities-CiaAfUgX.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import { parseId } from "./parse-id-
|
|
5
|
-
import { Transform, transformView } from "./transform-
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C6ASrgVA.mjs";
|
|
4
|
+
import { parseId } from "./parse-id-xS1tWJAq.mjs";
|
|
5
|
+
import { Transform, transformView } from "./transform-DP6J2ber.mjs";
|
|
6
6
|
|
|
7
7
|
//#region src/commands/transform/get.ts
|
|
8
8
|
var get_default = defineMetabaseCommand({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { connectionFlags, outputFlags, profileFlag, renderItem } from "./capabilities-
|
|
1
|
+
import { connectionFlags, outputFlags, profileFlag, renderItem } from "./capabilities-CiaAfUgX.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import { parseId } from "./parse-id-
|
|
5
|
-
import { Snippet, snippetView } from "./snippet-
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C6ASrgVA.mjs";
|
|
4
|
+
import { parseId } from "./parse-id-xS1tWJAq.mjs";
|
|
5
|
+
import { Snippet, snippetView } from "./snippet-C8PVaPY9.mjs";
|
|
6
6
|
|
|
7
7
|
//#region src/commands/snippet/get.ts
|
|
8
8
|
var get_default = defineMetabaseCommand({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { connectionFlags, outputFlags, profileFlag, renderItem } from "./capabilities-
|
|
1
|
+
import { connectionFlags, outputFlags, profileFlag, renderItem } from "./capabilities-CiaAfUgX.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import { Collection, collectionView } from "./collection-
|
|
5
|
-
import { parseCollectionRef } from "./parse-ref-
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C6ASrgVA.mjs";
|
|
4
|
+
import { Collection, collectionView } from "./collection-C52Ndi_O.mjs";
|
|
5
|
+
import { parseCollectionRef } from "./parse-ref-j4lxaQmd.mjs";
|
|
6
6
|
|
|
7
7
|
//#region src/commands/collection/get.ts
|
|
8
8
|
var get_default = defineMetabaseCommand({
|