@metabase/cli 0.1.6 → 0.1.8-alpha.drop-workspaces.a42f32e
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/.claude-plugin/marketplace.json +1 -1
- package/README.md +16 -238
- package/dist/{add-collection-BU8r3r2M.mjs → add-collection-CuLyFlrE.mjs} +8 -6
- package/dist/add-collection-DkucDB2N.mjs +10 -0
- package/dist/{archive-DMPS8Kih.mjs → archive-C1lk1rR7.mjs} +5 -6
- package/dist/{archive-C1enZgKV.mjs → archive-C2AfP9G_.mjs} +6 -7
- package/dist/{archive-lWgqiFAt.mjs → archive-COAWrOVp.mjs} +5 -6
- package/dist/{archive-BNinrUak.mjs → archive-DNVqPMhp.mjs} +7 -8
- package/dist/{archive-CRhiBpPJ.mjs → archive-Dt1qDaIF.mjs} +5 -6
- package/dist/{archive-CDA0KxL8.mjs → archive-mdSqCzVw.mjs} +5 -6
- package/dist/auth-WILFa6Xf.mjs +19 -0
- package/dist/{body-DjdFxjpg.mjs → body-b76dLVpL.mjs} +2 -2
- package/dist/{branches-B1WRfG7-.mjs → branches-DwV1q-4h.mjs} +5 -6
- package/dist/{cancel-Dl_Ho056.mjs → cancel-DDKstWQM.mjs} +6 -7
- package/dist/{cancel-task-CdigdCaO.mjs → cancel-task-DX_OdGan.mjs} +6 -7
- package/dist/{render-CfznwleY.mjs → capabilities-Dj3NgPHg.mjs} +66 -10
- package/dist/card-Bd8jLmZW.mjs +20 -0
- package/dist/{card-DlCAaAPq.mjs → card-BtPiKjbB.mjs} +1 -1
- package/dist/{cards-BGiJS675.mjs → cards-CYKPNOp3.mjs} +4 -5
- package/dist/cli.mjs +23 -24
- package/dist/collection-gz4k8jWl.mjs +20 -0
- package/dist/{create-Be_0Vier.mjs → create-B4aKAWaQ.mjs} +8 -9
- package/dist/{create-dhxPxfF3.mjs → create-BfRIHlHk.mjs} +12 -13
- package/dist/{create-CzzrbL0u.mjs → create-BfseKO3F.mjs} +8 -9
- package/dist/{create-BTcpaop_.mjs → create-BqiR1kvi.mjs} +7 -8
- package/dist/{create-BYlIju0b.mjs → create-BscN4jFB.mjs} +10 -11
- package/dist/{create-CwGtmwqm.mjs → create-CE1WZ4du.mjs} +9 -10
- package/dist/{create-DGth_uOp.mjs → create-CQxJpVXk.mjs} +9 -10
- package/dist/{create-BNiva__H.mjs → create-DRhRPfD-.mjs} +11 -12
- package/dist/{create-branch-DKZkoQ64.mjs → create-branch-2yEa7-9x.mjs} +6 -7
- package/dist/{current-task-CCRzm0_7.mjs → current-task-5buIatuG.mjs} +7 -8
- package/dist/dashboard-BL8_Ysst.mjs +21 -0
- package/dist/{database-lH-B3G1I.mjs → database-_Td7rG4o.mjs} +1 -1
- package/dist/db-Bw8m4M2J.mjs +22 -0
- package/dist/{delete-Dimc-2y8.mjs → delete-C3i5dE4s.mjs} +8 -7
- package/dist/{delete-ZjnV35OJ.mjs → delete-CF8in6gw.mjs} +8 -7
- package/dist/{delete-runtime-B6RQo_pw.mjs → delete-runtime-Bo7v-0au.mjs} +6 -6
- package/dist/{delete-table-agZJpivt.mjs → delete-table-m-6cOPnX.mjs} +8 -7
- package/dist/{dirty-D4d0yHqj.mjs → dirty-hGWiemB-.mjs} +5 -6
- package/dist/{eid-BXzaQh0o.mjs → eid-BP0H-LTl.mjs} +12 -8
- package/dist/{error-C9S6PN3-.mjs → error-BLukG0Vf.mjs} +3 -2
- package/dist/{export-DTygoXBP.mjs → export-wh9l0s7F.mjs} +10 -10
- package/dist/field-GgVH-HUD.mjs +18 -0
- package/dist/{field-yomXlkvl.mjs → field-MGxpNQUH.mjs} +12 -3
- package/dist/{fields-CoQi99gv.mjs → fields-BD52yx5k.mjs} +6 -7
- package/dist/{get-C2p383Qc.mjs → get-436DayeX.mjs} +5 -6
- package/dist/{get-D3SbEQSE.mjs → get-B1jyFBkg.mjs} +4 -5
- package/dist/{get-C3HdQ91a.mjs → get-BLUldOxi.mjs} +5 -6
- package/dist/{get-CP3Z3NiH.mjs → get-BVMyLnhh.mjs} +6 -7
- package/dist/{get-Bzys7vgp.mjs → get-BhFiIyyH.mjs} +4 -5
- package/dist/{get-lb7q3JYs.mjs → get-C5PKCCzj.mjs} +3 -4
- package/dist/{get-DQTZG_NP.mjs → get-C_LAPJ7J.mjs} +4 -5
- package/dist/{get-CzuzeKSe.mjs → get-CgdzDOTX.mjs} +7 -8
- package/dist/{get-C_w1kvN3.mjs → get-Cu7Om0g2.mjs} +6 -7
- package/dist/{get-Ddr0XLh7.mjs → get-DETcYP1F.mjs} +5 -6
- package/dist/{get-DFxZXaKz.mjs → get-DSmnRBrw.mjs} +5 -7
- package/dist/{get-Hc93A0Yz.mjs → get-EJOWmpkC.mjs} +5 -6
- package/dist/{get-run-B7sKdaDU.mjs → get-run-BEvwTmr7.mjs} +5 -6
- package/dist/{get-DSWFjy7O.mjs → get-z9XIWbVG.mjs} +4 -5
- package/dist/git-sync-oYYp_Z6v.mjs +28 -0
- package/dist/{has-remote-changes-BY10-nnE.mjs → has-remote-changes-BNjTil7k.mjs} +7 -7
- package/dist/{import-CiMz4Wz-.mjs → import-C0iBM0UR.mjs} +11 -10
- package/dist/is-dirty-C_RyVkc1.mjs +9 -0
- package/dist/{is-dirty-BZOaryxT.mjs → is-dirty-D_e5Xoke.mjs} +5 -5
- package/dist/{items-BWfvkY-J.mjs → items-D6h0ejme.mjs} +4 -5
- package/dist/{list-BI4zr8LW.mjs → list-B3CgwSU4.mjs} +6 -7
- package/dist/{list-DZ8fNUoQ.mjs → list-BJxm0-6m.mjs} +6 -7
- package/dist/{list-sD5N3fGk.mjs → list-BZkOPBmK.mjs} +6 -7
- package/dist/{list-2j7GsXsl.mjs → list-CSX_xieo.mjs} +3 -4
- package/dist/{list-D4sFiqX8.mjs → list-CWItVq2v.mjs} +5 -6
- package/dist/{list-Brgh-Z2v.mjs → list-CkCgkJFh.mjs} +4 -5
- package/dist/{list-d58BprgJ.mjs → list-CmVbbX3f.mjs} +4 -5
- package/dist/{list--OYdUTtu.mjs → list-D0ZVA1e1.mjs} +4 -5
- package/dist/{list-CL7eCOQE.mjs → list-DLC82gFo.mjs} +3 -4
- package/dist/{list-SOG0whQ-.mjs → list-DcV2bfg8.mjs} +3 -4
- package/dist/{list-Clz5igWg.mjs → list-ZX3ooQ9h.mjs} +4 -6
- package/dist/{list-C3hfovHv.mjs → list-pXgd_HTy.mjs} +4 -5
- package/dist/{list-DXH7TlkU.mjs → list-r3gm10tz.mjs} +4 -5
- package/dist/{login-Bm2AnCez.mjs → login-DSS8QywX.mjs} +17 -14
- package/dist/{logout-BlyRJODO.mjs → logout-B6acbVng.mjs} +9 -9
- package/dist/{manifest-BBR46KFM.mjs → manifest-B_OfG-Ss.mjs} +1 -2
- package/dist/measure-DDn0jAB8.mjs +19 -0
- package/dist/{metadata-DqiI2q9q.mjs → metadata-C-bcafH-.mjs} +6 -7
- package/dist/{metadata-B8ZSF9LA.mjs → metadata-D_wFDaCb.mjs} +7 -8
- package/dist/{parse-id-lk_K-CEF.mjs → parse-id-BapRoz4R.mjs} +1 -1
- package/dist/{path-AEtZ3mBq.mjs → path-DmYXSF59.mjs} +4 -6
- package/dist/{poll-DHKDpCiq.mjs → poll-CYFFYOiB.mjs} +1 -1
- package/dist/{poll-task-Cooi0lQV.mjs → poll-task-Dalt24ov.mjs} +19 -3
- package/dist/{preflight-aXV5LyDs.mjs → preflight-G7NUAKod.mjs} +3 -3
- package/dist/{query-BlsVNZpD.mjs → query-COWTai5j.mjs} +12 -12
- package/dist/{query-AaKzYnTY.mjs → query-DRosi9Ha.mjs} +9 -8
- package/dist/query-result-PoQE05Pe.mjs +19 -0
- package/dist/{remove-collection-CoCmrrQs.mjs → remove-collection-CLWw-48s.mjs} +10 -9
- package/dist/{render-OQn3iRsI.mjs → render-BQHJhSP1.mjs} +1 -1
- package/dist/{rescan-values-C0FDsjT7.mjs → rescan-values-C3L03Crf.mjs} +9 -10
- package/dist/{run-B4Wn43zm.mjs → run-PL8TRDGx.mjs} +14 -14
- package/dist/{runs-Bbaszr18.mjs → runs-B86YP36a.mjs} +5 -6
- package/dist/{runtime-Dmv5VtUK.mjs → runtime-C2EDX9E7.mjs} +16 -87
- package/dist/{schema-tables-CaWinbuK.mjs → schema-tables-CZr0QT1g.mjs} +6 -7
- package/dist/{schemas-DUgGpAyB.mjs → schemas-DnGJlmQl.mjs} +4 -5
- package/dist/{search-BLrBXLUk.mjs → search-thFe-n3F.mjs} +4 -5
- package/dist/segment-ydERbF0L.mjs +19 -0
- package/dist/{set-DfGsta5O.mjs → set-CDQE4s8H.mjs} +7 -7
- package/dist/setting-BTMmbmKB.mjs +17 -0
- package/dist/{setup-C9ikBRw_.mjs → setup-mOHveOFI.mjs} +7 -8
- package/dist/{skills-CiN1OQ8W.mjs → skills-BDPVoBWU.mjs} +33 -2
- package/dist/{skills-CUHIcQS6.mjs → skills-d2iLclsk.mjs} +3 -3
- package/dist/snippet-i1Z8-yJQ.mjs +19 -0
- package/dist/{stash-EIDcSvpF.mjs → stash-B4RTStPo.mjs} +11 -10
- package/dist/{status-95ElRAu9.mjs → status-B7H0JH52.mjs} +10 -8
- package/dist/{status-B0_MiZEf.mjs → status-DoVvjifV.mjs} +4 -5
- package/dist/{summary-C12LiEuJ.mjs → summary-BsdiF7LZ.mjs} +5 -6
- package/dist/{sync-schema-Ba8M3DiX.mjs → sync-schema-CvXkT9Rg.mjs} +9 -10
- package/dist/{table-C7a5V6Zn.mjs → table-CkWja2UH.mjs} +1 -1
- package/dist/table-DoAu2iwB.mjs +19 -0
- package/dist/transform-JzFSQdFi.mjs +24 -0
- package/dist/transform-job-C8q3Fcf7.mjs +19 -0
- package/dist/{tree-Des2ZG9d.mjs → tree-CGBtDXfk.mjs} +3 -4
- package/dist/{update-DzAN4SPj.mjs → update-B89kI8l9.mjs} +10 -11
- package/dist/{update-_QfgNa53.mjs → update-BA48uHRd.mjs} +10 -11
- package/dist/{update-DBi5U8zb.mjs → update-BHit5RyS.mjs} +12 -13
- package/dist/{update-mYVnoYNV.mjs → update-BJhk_A4R.mjs} +11 -12
- package/dist/{update-Bx54nWEI.mjs → update-BJn9ZitD.mjs} +12 -13
- package/dist/{update-F6DmZncY.mjs → update-C44bumhM.mjs} +9 -10
- package/dist/{update-CyIZdbIQ.mjs → update-DqAKFmkw.mjs} +9 -10
- package/dist/{update-njHe3j-s.mjs → update-JpO3b8g3.mjs} +10 -11
- package/dist/{update-DSgceARZ.mjs → update-WMzbyUw2.mjs} +9 -10
- package/dist/{update-dashcard-wpSjv4M7.mjs → update-dashcard-C8BGZtY7.mjs} +8 -9
- package/dist/{upgrade-iAuvhX-W.mjs → upgrade-DeiR3fjf.mjs} +41 -28
- package/dist/{uuid-CMKnS8-z.mjs → uuid-BWvbC2Z8.mjs} +3 -4
- package/dist/{validate-dPEOnOf8.mjs → validate-CqVB_3_p.mjs} +1 -1
- package/dist/{validate-query-Cw6WE5Y8.mjs → validate-query-BUTNK00f.mjs} +2 -2
- package/dist/values-07BZxAK5.mjs +44 -0
- package/dist/{verify-D5YtTqqp.mjs → verify-D2q5RI4i.mjs} +1 -1
- package/dist/{wait-Bv3Tsnv4.mjs → wait-DWyuBO_X.mjs} +8 -9
- package/dist/{wait-flags-Dzq9BGQY.mjs → wait-flags-Crs-j7Z8.mjs} +2 -2
- package/package.json +1 -1
- package/skill-data/core/SKILL.md +13 -26
- package/skill-data/git-sync/SKILL.md +8 -63
- package/skill-data/transform/SKILL.md +3 -4
- package/skill-data/visualization/SKILL.md +158 -0
- package/skill-data/visualization/references/settings.md +414 -0
- package/skills/metabase-cli/SKILL.md +1 -1
- package/dist/add-collection-C0w6ACQF.mjs +0 -11
- package/dist/auth-CzXb_zB2.mjs +0 -19
- package/dist/capabilities-7e9MgquN.mjs +0 -29
- package/dist/card-DP4rfoOi.mjs +0 -21
- package/dist/collection-tY18ezvn.mjs +0 -21
- package/dist/create-CHF313Qg.mjs +0 -52
- package/dist/credentials-dzeq7ckm.mjs +0 -88
- package/dist/dashboard-ChM_Tu0l.mjs +0 -22
- package/dist/database-CIXwHKjK.mjs +0 -17
- package/dist/db-DrQn_i3W.mjs +0 -22
- package/dist/delete-CM3jnAeQ.mjs +0 -100
- package/dist/deprovision-CwxcIT3k.mjs +0 -65
- package/dist/docker-Oq80q3tu.mjs +0 -515
- 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/license-Dxarh-gG.mjs +0 -17
- package/dist/list-zSO0DMw-.mjs +0 -36
- package/dist/logs-CywPikkL.mjs +0 -60
- package/dist/measure-C44EK_xt.mjs +0 -20
- package/dist/parse-schemas-BqUdWUwq.mjs +0 -12
- package/dist/process-C7V8LJ-j.mjs +0 -105
- package/dist/provision-UWcNDoDe.mjs +0 -82
- package/dist/ps-CJU0EbrC.mjs +0 -80
- package/dist/ps-DEroLgbI.mjs +0 -11
- package/dist/remove-BFWun0e8.mjs +0 -63
- package/dist/segment-B3Uwwcsm.mjs +0 -20
- package/dist/set-B8cUbRLD.mjs +0 -68
- package/dist/setting-D2p2MA7f.mjs +0 -18
- package/dist/snippet-B7D0uWlz.mjs +0 -20
- package/dist/start-3PX3ahjT.mjs +0 -413
- package/dist/status-CEplmC44.mjs +0 -34
- package/dist/stop-CQ0XGrN8.mjs +0 -83
- package/dist/table-e6h8SLVX.mjs +0 -20
- package/dist/transform-BMYh1lsC.mjs +0 -25
- package/dist/transform-job-Cm7z5TfH.mjs +0 -20
- package/dist/update-DHZubok3.mjs +0 -77
- package/dist/url-DWaT6WIZ.mjs +0 -56
- package/dist/values-BfSTAbzc.mjs +0 -37
- package/dist/wait-8yV9_WIo.mjs +0 -19
- package/dist/workspace-BBXJczJK.mjs +0 -72
- package/dist/workspace-CKLZrR7l.mjs +0 -26
- package/dist/workspace-credentials-BXpABsNZ.mjs +0 -100
- package/dist/yaml-YTQiYJ9s.mjs +0 -43
- package/skill-data/viz/SKILL.md +0 -137
- package/skill-data/viz/references/settings.md +0 -312
- package/skill-data/workspace/SKILL.md +0 -390
- /package/dist/{body-flags-D7q87Btw.mjs → body-flags-D78h_-Ua.mjs} +0 -0
- /package/dist/{input-cMSEqISy.mjs → input-xewHccej.mjs} +0 -0
- /package/dist/{parse-enum-CrEWOhuY.mjs → parse-enum-Dr7ACrTR.mjs} +0 -0
- /package/dist/{prompt-CFKoys7k.mjs → prompt-u4WhE4T5.mjs} +0 -0
- /package/dist/{snippet-COggaWxx.mjs → snippet-xh42tYly.mjs} +0 -0
- /package/dist/{transform-GTW3G-01.mjs → transform-DyJb0bV0.mjs} +0 -0
- /package/dist/{transform-job-DeTDPMxt.mjs → transform-job-DpDGoqQt.mjs} +0 -0
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./capabilities-
|
|
5
|
-
import "./
|
|
6
|
-
import "./
|
|
7
|
-
import {
|
|
8
|
-
import { DeleteResult, confirmAndDelete } from "./delete-runtime-B6RQo_pw.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-BLukG0Vf.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C2EDX9E7.mjs";
|
|
4
|
+
import "./capabilities-Dj3NgPHg.mjs";
|
|
5
|
+
import "./prompt-u4WhE4T5.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-BapRoz4R.mjs";
|
|
7
|
+
import { DeleteResult, confirmAndDelete } from "./delete-runtime-Bo7v-0au.mjs";
|
|
9
8
|
|
|
10
9
|
//#region src/commands/transform-job/delete.ts
|
|
11
10
|
var delete_default = defineMetabaseCommand({
|
|
@@ -39,6 +38,8 @@ var delete_default = defineMetabaseCommand({
|
|
|
39
38
|
path: `/api/transform-job/${id}`,
|
|
40
39
|
yes: args.yes,
|
|
41
40
|
promptMessage: `Delete transform job ${id}?`,
|
|
41
|
+
successMessage: `Deleted transform job ${id}.`,
|
|
42
|
+
abortMessage: `Aborted; transform job ${id} was not deleted.`,
|
|
42
43
|
client,
|
|
43
44
|
ctx
|
|
44
45
|
});
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./capabilities-
|
|
5
|
-
import "./
|
|
6
|
-
import "./
|
|
7
|
-
import {
|
|
8
|
-
import { DeleteResult, confirmAndDelete } from "./delete-runtime-B6RQo_pw.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-BLukG0Vf.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C2EDX9E7.mjs";
|
|
4
|
+
import "./capabilities-Dj3NgPHg.mjs";
|
|
5
|
+
import "./prompt-u4WhE4T5.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-BapRoz4R.mjs";
|
|
7
|
+
import { DeleteResult, confirmAndDelete } from "./delete-runtime-Bo7v-0au.mjs";
|
|
9
8
|
|
|
10
9
|
//#region src/commands/transform/delete.ts
|
|
11
10
|
var delete_default = defineMetabaseCommand({
|
|
@@ -39,6 +38,8 @@ var delete_default = defineMetabaseCommand({
|
|
|
39
38
|
path: `/api/transform/${id}`,
|
|
40
39
|
yes: args.yes,
|
|
41
40
|
promptMessage: `Delete transform ${id}?`,
|
|
41
|
+
successMessage: `Deleted transform ${id}.`,
|
|
42
|
+
abortMessage: `Aborted; transform ${id} was not deleted.`,
|
|
42
43
|
client,
|
|
43
44
|
ctx
|
|
44
45
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ConfigError } from "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import { promptConfirm } from "./prompt-
|
|
2
|
+
import { renderSummary } from "./capabilities-Dj3NgPHg.mjs";
|
|
3
|
+
import { promptConfirm } from "./prompt-u4WhE4T5.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
|
|
6
6
|
//#region src/commands/delete-runtime.ts
|
|
@@ -34,11 +34,11 @@ async function confirmAndDelete(args) {
|
|
|
34
34
|
initialValue: false
|
|
35
35
|
});
|
|
36
36
|
if (!ok) {
|
|
37
|
-
|
|
37
|
+
renderSummary({
|
|
38
38
|
deleted: false,
|
|
39
39
|
aborted: true,
|
|
40
40
|
id: args.id
|
|
41
|
-
}, deleteResultView, args.ctx);
|
|
41
|
+
}, deleteResultView, args.abortMessage, args.ctx);
|
|
42
42
|
return;
|
|
43
43
|
}
|
|
44
44
|
}
|
|
@@ -47,11 +47,11 @@ async function confirmAndDelete(args) {
|
|
|
47
47
|
expectContentType: "binary"
|
|
48
48
|
});
|
|
49
49
|
if (args.afterDelete) await args.afterDelete();
|
|
50
|
-
|
|
50
|
+
renderSummary({
|
|
51
51
|
deleted: true,
|
|
52
52
|
aborted: false,
|
|
53
53
|
id: args.id
|
|
54
|
-
}, deleteResultView, args.ctx);
|
|
54
|
+
}, deleteResultView, args.successMessage, args.ctx);
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
//#endregion
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./capabilities-
|
|
5
|
-
import "./
|
|
6
|
-
import "./
|
|
7
|
-
import {
|
|
8
|
-
import { DeleteResult, confirmAndDelete } from "./delete-runtime-B6RQo_pw.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-BLukG0Vf.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C2EDX9E7.mjs";
|
|
4
|
+
import "./capabilities-Dj3NgPHg.mjs";
|
|
5
|
+
import "./prompt-u4WhE4T5.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-BapRoz4R.mjs";
|
|
7
|
+
import { DeleteResult, confirmAndDelete } from "./delete-runtime-Bo7v-0au.mjs";
|
|
9
8
|
|
|
10
9
|
//#region src/commands/transform/delete-table.ts
|
|
11
10
|
var delete_table_default = defineMetabaseCommand({
|
|
@@ -39,6 +38,8 @@ var delete_table_default = defineMetabaseCommand({
|
|
|
39
38
|
path: `/api/transform/${id}/table`,
|
|
40
39
|
yes: args.yes,
|
|
41
40
|
promptMessage: `Drop transform ${id}'s output table?`,
|
|
41
|
+
successMessage: `Dropped transform ${id}'s output table.`,
|
|
42
|
+
abortMessage: `Aborted; transform ${id}'s output table was not dropped.`,
|
|
42
43
|
client,
|
|
43
44
|
ctx
|
|
44
45
|
});
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./capabilities-
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import "./poll-DHKDpCiq.mjs";
|
|
2
|
+
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-BLukG0Vf.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C2EDX9E7.mjs";
|
|
4
|
+
import { renderList } from "./capabilities-Dj3NgPHg.mjs";
|
|
5
|
+
import { REMOTE_SYNC_PATHS, SyncDirtyItem, SyncDirtyItemCompact, syncDirtyItemView } from "./poll-task-Dalt24ov.mjs";
|
|
6
|
+
import "./poll-CYFFYOiB.mjs";
|
|
8
7
|
import { z } from "zod";
|
|
9
8
|
|
|
10
9
|
//#region src/commands/git-sync/dirty.ts
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { ConfigError } from "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand, parseCsv } from "./runtime-
|
|
4
|
-
import "./capabilities-
|
|
5
|
-
import
|
|
6
|
-
import "./
|
|
7
|
-
import {
|
|
8
|
-
import { bodyInputFlags } from "./body-flags-D7q87Btw.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-BLukG0Vf.mjs";
|
|
3
|
+
import { defineMetabaseCommand, parseCsv } from "./runtime-C2EDX9E7.mjs";
|
|
4
|
+
import { renderSummary } from "./capabilities-Dj3NgPHg.mjs";
|
|
5
|
+
import "./input-xewHccej.mjs";
|
|
6
|
+
import { readBody } from "./body-b76dLVpL.mjs";
|
|
7
|
+
import { bodyInputFlags } from "./body-flags-D78h_-Ua.mjs";
|
|
9
8
|
import { z } from "zod";
|
|
10
9
|
|
|
11
10
|
//#region src/domain/eid-translation.ts
|
|
@@ -108,7 +107,12 @@ var eid_default = defineMetabaseCommand({
|
|
|
108
107
|
method: "POST",
|
|
109
108
|
body
|
|
110
109
|
});
|
|
111
|
-
|
|
110
|
+
const lines = Object.entries(result.entity_ids).map(([eid, entry]) => {
|
|
111
|
+
const resolved = entry.status === "ok" && entry.id !== void 0;
|
|
112
|
+
const target = resolved ? String(entry.id) : "not found";
|
|
113
|
+
return `${entry.type} ${eid} → ${target}`;
|
|
114
|
+
});
|
|
115
|
+
renderSummary(result, eidTranslateView, lines.join("\n"), ctx);
|
|
112
116
|
}
|
|
113
117
|
});
|
|
114
118
|
function parseModel(raw) {
|
|
@@ -52,7 +52,8 @@ const outputFlags = {
|
|
|
52
52
|
};
|
|
53
53
|
const profileFlag = { profile: {
|
|
54
54
|
type: "string",
|
|
55
|
-
description: "Named profile (default: 'default')"
|
|
55
|
+
description: "Named profile (default: 'default')",
|
|
56
|
+
alias: "p"
|
|
56
57
|
} };
|
|
57
58
|
const connectionFlags = {
|
|
58
59
|
url: {
|
|
@@ -74,7 +75,7 @@ const connectionFlags = {
|
|
|
74
75
|
//#endregion
|
|
75
76
|
//#region package.json
|
|
76
77
|
var name = "@metabase/cli";
|
|
77
|
-
var version = "0.1.
|
|
78
|
+
var version = "0.1.8-alpha.drop-workspaces.a42f32e";
|
|
78
79
|
var description = "Metabase CLI";
|
|
79
80
|
var license = "AGPL-3.0";
|
|
80
81
|
var repository = {
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import { warn } from "./capabilities-
|
|
5
|
-
import
|
|
6
|
-
import "./
|
|
7
|
-
import
|
|
8
|
-
import "./
|
|
9
|
-
import { gitSyncWaitFlags, parseWaitFlags } from "./wait-flags-Dzq9BGQY.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-BLukG0Vf.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C2EDX9E7.mjs";
|
|
4
|
+
import { renderSummary, warn } from "./capabilities-Dj3NgPHg.mjs";
|
|
5
|
+
import "./parse-id-BapRoz4R.mjs";
|
|
6
|
+
import { REMOTE_SYNC_PATHS, SyncTask, formatSyncTask, pollSyncTask, throwIfFailedTask } from "./poll-task-Dalt24ov.mjs";
|
|
7
|
+
import "./poll-CYFFYOiB.mjs";
|
|
8
|
+
import { gitSyncWaitFlags, parseWaitFlags } from "./wait-flags-Crs-j7Z8.mjs";
|
|
10
9
|
import { z } from "zod";
|
|
11
10
|
|
|
12
11
|
//#region src/commands/git-sync/export.ts
|
|
@@ -81,7 +80,7 @@ var export_default = defineMetabaseCommand({
|
|
|
81
80
|
message: kickoff.message,
|
|
82
81
|
task_id: kickoff.task_id
|
|
83
82
|
};
|
|
84
|
-
|
|
83
|
+
renderSummary(result, syncExportView, `Started export task #${kickoff.task_id}.`, ctx);
|
|
85
84
|
} else {
|
|
86
85
|
const final = await pollSyncTask(client, wait.schedule);
|
|
87
86
|
const result = {
|
|
@@ -89,7 +88,8 @@ var export_default = defineMetabaseCommand({
|
|
|
89
88
|
task_id: kickoff.task_id,
|
|
90
89
|
final
|
|
91
90
|
};
|
|
92
|
-
|
|
91
|
+
const text = final === null ? `Export task #${kickoff.task_id} finished.` : formatSyncTask(final);
|
|
92
|
+
renderSummary(result, syncExportView, text, ctx);
|
|
93
93
|
throwIfFailedTask(final, "export");
|
|
94
94
|
}
|
|
95
95
|
emitRealignHint(ctx);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { defineCommand } from "citty";
|
|
2
|
+
|
|
3
|
+
//#region src/commands/field/index.ts
|
|
4
|
+
var field_default = defineCommand({
|
|
5
|
+
meta: {
|
|
6
|
+
name: "field",
|
|
7
|
+
description: "Manage Metabase fields"
|
|
8
|
+
},
|
|
9
|
+
subCommands: {
|
|
10
|
+
get: () => import("./get-BLUldOxi.mjs").then((m) => m.default),
|
|
11
|
+
values: () => import("./values-07BZxAK5.mjs").then((m) => m.default),
|
|
12
|
+
summary: () => import("./summary-BsdiF7LZ.mjs").then((m) => m.default),
|
|
13
|
+
update: () => import("./update-DqAKFmkw.mjs").then((m) => m.default)
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
//#endregion
|
|
18
|
+
export { field_default as default };
|
|
@@ -174,6 +174,12 @@ const FieldCompact = Field.pick({
|
|
|
174
174
|
semantic_type: true,
|
|
175
175
|
fk_target_field_id: true
|
|
176
176
|
}).strip();
|
|
177
|
+
function formatTypeTag(value) {
|
|
178
|
+
return typeof value === "string" ? value.replace(/^type\//, "") : "";
|
|
179
|
+
}
|
|
180
|
+
function formatFkTarget(value) {
|
|
181
|
+
return typeof value === "number" ? `field ${value}` : "";
|
|
182
|
+
}
|
|
177
183
|
const fieldView = {
|
|
178
184
|
compactPick: FieldCompact,
|
|
179
185
|
tableColumns: [
|
|
@@ -191,15 +197,18 @@ const fieldView = {
|
|
|
191
197
|
},
|
|
192
198
|
{
|
|
193
199
|
key: "base_type",
|
|
194
|
-
label: "Base Type"
|
|
200
|
+
label: "Base Type",
|
|
201
|
+
format: formatTypeTag
|
|
195
202
|
},
|
|
196
203
|
{
|
|
197
204
|
key: "semantic_type",
|
|
198
|
-
label: "Semantic Type"
|
|
205
|
+
label: "Semantic Type",
|
|
206
|
+
format: formatTypeTag
|
|
199
207
|
},
|
|
200
208
|
{
|
|
201
209
|
key: "fk_target_field_id",
|
|
202
|
-
label: "FK Target"
|
|
210
|
+
label: "FK Target",
|
|
211
|
+
format: formatFkTarget
|
|
203
212
|
},
|
|
204
213
|
{
|
|
205
214
|
key: "description",
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./capabilities-
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { TableQueryMetadata } from "./table-C7a5V6Zn.mjs";
|
|
2
|
+
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-BLukG0Vf.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C2EDX9E7.mjs";
|
|
4
|
+
import { renderList } from "./capabilities-Dj3NgPHg.mjs";
|
|
5
|
+
import { FieldCompact, fieldView } from "./field-MGxpNQUH.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-BapRoz4R.mjs";
|
|
7
|
+
import { TableQueryMetadata } from "./table-CkWja2UH.mjs";
|
|
9
8
|
|
|
10
9
|
//#region src/commands/table/fields.ts
|
|
11
10
|
const FieldListEnvelope = listEnvelopeSchema(FieldCompact);
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./capabilities-
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { Transform, transformView } from "./transform-GTW3G-01.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-BLukG0Vf.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C2EDX9E7.mjs";
|
|
4
|
+
import { renderItem } from "./capabilities-Dj3NgPHg.mjs";
|
|
5
|
+
import { parseId } from "./parse-id-BapRoz4R.mjs";
|
|
6
|
+
import { Transform, transformView } from "./transform-DyJb0bV0.mjs";
|
|
8
7
|
|
|
9
8
|
//#region src/commands/transform/get.ts
|
|
10
9
|
var get_default = defineMetabaseCommand({
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand, parseJsonOrPlain } from "./runtime-
|
|
4
|
-
import "./capabilities-
|
|
5
|
-
import { formatScalar, renderScalar } from "./render-CfznwleY.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-BLukG0Vf.mjs";
|
|
3
|
+
import { defineMetabaseCommand, parseJsonOrPlain } from "./runtime-C2EDX9E7.mjs";
|
|
4
|
+
import { formatScalar, renderSummary } from "./capabilities-Dj3NgPHg.mjs";
|
|
6
5
|
import { SettingValue, settingValueView } from "./setting-oL97SNeO.mjs";
|
|
7
6
|
import { parseSettingKey, rethrowSettingError } from "./key-C2XG394c.mjs";
|
|
8
7
|
import { z } from "zod";
|
|
@@ -34,7 +33,7 @@ var get_default = defineMetabaseCommand({
|
|
|
34
33
|
key,
|
|
35
34
|
value
|
|
36
35
|
};
|
|
37
|
-
|
|
36
|
+
renderSummary(item, settingValueView, formatScalar(value), ctx);
|
|
38
37
|
}
|
|
39
38
|
});
|
|
40
39
|
async function fetchSettingValue(client, key) {
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./capabilities-
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { parseId } from "./parse-id-lk_K-CEF.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-BLukG0Vf.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C2EDX9E7.mjs";
|
|
4
|
+
import { renderItem } from "./capabilities-Dj3NgPHg.mjs";
|
|
5
|
+
import { Field, fieldView } from "./field-MGxpNQUH.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-BapRoz4R.mjs";
|
|
8
7
|
|
|
9
8
|
//#region src/commands/field/get.ts
|
|
10
9
|
var get_default = defineMetabaseCommand({
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./capabilities-
|
|
5
|
-
import
|
|
6
|
-
import "./
|
|
7
|
-
import {
|
|
8
|
-
import { parseId } from "./parse-id-lk_K-CEF.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-BLukG0Vf.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C2EDX9E7.mjs";
|
|
4
|
+
import { renderItem } from "./capabilities-Dj3NgPHg.mjs";
|
|
5
|
+
import "./field-MGxpNQUH.mjs";
|
|
6
|
+
import { Card, cardView } from "./card-BtPiKjbB.mjs";
|
|
7
|
+
import { parseId } from "./parse-id-BapRoz4R.mjs";
|
|
9
8
|
|
|
10
9
|
//#region src/commands/card/get.ts
|
|
11
10
|
var get_default = defineMetabaseCommand({
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./capabilities-
|
|
5
|
-
import {
|
|
6
|
-
import { parseId } from "./parse-id-lk_K-CEF.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-BLukG0Vf.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C2EDX9E7.mjs";
|
|
4
|
+
import { renderItem } from "./capabilities-Dj3NgPHg.mjs";
|
|
5
|
+
import { parseId } from "./parse-id-BapRoz4R.mjs";
|
|
7
6
|
import { Segment, segmentView } from "./segment-Be2v4ilr.mjs";
|
|
8
7
|
|
|
9
8
|
//#region src/commands/segment/get.ts
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./capabilities-
|
|
5
|
-
import { renderItem } from "./render-CfznwleY.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-BLukG0Vf.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C2EDX9E7.mjs";
|
|
4
|
+
import { renderItem } from "./capabilities-Dj3NgPHg.mjs";
|
|
6
5
|
import { Collection, collectionView } from "./collection-B3sPXRLs.mjs";
|
|
7
6
|
import { parseCollectionRef } from "./parse-ref-BiETXmvm.mjs";
|
|
8
7
|
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./capabilities-
|
|
5
|
-
import {
|
|
6
|
-
import { parseId } from "./parse-id-lk_K-CEF.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-BLukG0Vf.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C2EDX9E7.mjs";
|
|
4
|
+
import { renderItem } from "./capabilities-Dj3NgPHg.mjs";
|
|
5
|
+
import { parseId } from "./parse-id-BapRoz4R.mjs";
|
|
7
6
|
import { Measure, measureView } from "./measure-ClESGxIb.mjs";
|
|
8
7
|
|
|
9
8
|
//#region src/commands/measure/get.ts
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand, parseEnum } from "./runtime-
|
|
4
|
-
import "./capabilities-
|
|
5
|
-
import
|
|
6
|
-
import "./
|
|
7
|
-
import
|
|
8
|
-
import "./
|
|
9
|
-
import { Database, databaseView } from "./database-lH-B3G1I.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-BLukG0Vf.mjs";
|
|
3
|
+
import { defineMetabaseCommand, parseEnum } from "./runtime-C2EDX9E7.mjs";
|
|
4
|
+
import { renderItem } from "./capabilities-Dj3NgPHg.mjs";
|
|
5
|
+
import "./field-MGxpNQUH.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-BapRoz4R.mjs";
|
|
7
|
+
import "./table-CkWja2UH.mjs";
|
|
8
|
+
import { Database, databaseView } from "./database-_Td7rG4o.mjs";
|
|
10
9
|
import { z } from "zod";
|
|
11
10
|
|
|
12
11
|
//#region src/commands/db/get.ts
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand, parseEnum } from "./runtime-
|
|
4
|
-
import "./capabilities-
|
|
5
|
-
import
|
|
6
|
-
import "./
|
|
7
|
-
import {
|
|
8
|
-
import { Table, TableQueryMetadata, tableView } from "./table-C7a5V6Zn.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-BLukG0Vf.mjs";
|
|
3
|
+
import { defineMetabaseCommand, parseEnum } from "./runtime-C2EDX9E7.mjs";
|
|
4
|
+
import { renderItem } from "./capabilities-Dj3NgPHg.mjs";
|
|
5
|
+
import "./field-MGxpNQUH.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-BapRoz4R.mjs";
|
|
7
|
+
import { Table, TableQueryMetadata, tableView } from "./table-CkWja2UH.mjs";
|
|
9
8
|
import { z } from "zod";
|
|
10
9
|
|
|
11
10
|
//#region src/commands/table/get.ts
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./capabilities-
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { Snippet, snippetView } from "./snippet-COggaWxx.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-BLukG0Vf.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C2EDX9E7.mjs";
|
|
4
|
+
import { renderItem } from "./capabilities-Dj3NgPHg.mjs";
|
|
5
|
+
import { parseId } from "./parse-id-BapRoz4R.mjs";
|
|
6
|
+
import { Snippet, snippetView } from "./snippet-xh42tYly.mjs";
|
|
8
7
|
|
|
9
8
|
//#region src/commands/snippet/get.ts
|
|
10
9
|
var get_default = defineMetabaseCommand({
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { ConfigError } from "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { listEnvelopeSchema, outputFlags, wrapList } from "./error-
|
|
3
|
-
import { defineMetabaseCommand, parseCsv } from "./runtime-
|
|
4
|
-
import "./capabilities-
|
|
5
|
-
import {
|
|
6
|
-
import "./yaml-YTQiYJ9s.mjs";
|
|
7
|
-
import { SkillContent, loadAllSkills, loadVisibleSkills, readSkillContent, selectSkillsByNames } from "./skills-CiN1OQ8W.mjs";
|
|
2
|
+
import { listEnvelopeSchema, outputFlags, wrapList } from "./error-BLukG0Vf.mjs";
|
|
3
|
+
import { defineMetabaseCommand, parseCsv } from "./runtime-C2EDX9E7.mjs";
|
|
4
|
+
import { renderList, writeText } from "./capabilities-Dj3NgPHg.mjs";
|
|
5
|
+
import { SkillContent, loadAllSkills, loadVisibleSkills, readSkillContent, selectSkillsByNames } from "./skills-BDPVoBWU.mjs";
|
|
8
6
|
|
|
9
7
|
//#region src/commands/skills/get.ts
|
|
10
8
|
const SkillGetEnvelope = listEnvelopeSchema(SkillContent);
|
|
@@ -39,7 +37,7 @@ var get_default = defineMetabaseCommand({
|
|
|
39
37
|
examples: [
|
|
40
38
|
"mb skills get core",
|
|
41
39
|
"mb skills get core --full",
|
|
42
|
-
"mb skills get
|
|
40
|
+
"mb skills get git-sync,transform --json",
|
|
43
41
|
"mb skills get --all --json"
|
|
44
42
|
],
|
|
45
43
|
run({ args, ctx }) {
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./capabilities-
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { TransformJob, transformJobView } from "./transform-job-DeTDPMxt.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-BLukG0Vf.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C2EDX9E7.mjs";
|
|
4
|
+
import { renderItem } from "./capabilities-Dj3NgPHg.mjs";
|
|
5
|
+
import { parseId } from "./parse-id-BapRoz4R.mjs";
|
|
6
|
+
import { TransformJob, transformJobView } from "./transform-job-DpDGoqQt.mjs";
|
|
8
7
|
|
|
9
8
|
//#region src/commands/transform-job/get.ts
|
|
10
9
|
var get_default = defineMetabaseCommand({
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./capabilities-
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { TransformRun, transformRunView } from "./transform-GTW3G-01.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-BLukG0Vf.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C2EDX9E7.mjs";
|
|
4
|
+
import { renderItem } from "./capabilities-Dj3NgPHg.mjs";
|
|
5
|
+
import { parseId } from "./parse-id-BapRoz4R.mjs";
|
|
6
|
+
import { TransformRun, transformRunView } from "./transform-DyJb0bV0.mjs";
|
|
8
7
|
|
|
9
8
|
//#region src/commands/transform/get-run.ts
|
|
10
9
|
var get_run_default = defineMetabaseCommand({
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./capabilities-
|
|
5
|
-
import {
|
|
6
|
-
import { parseId } from "./parse-id-lk_K-CEF.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-BLukG0Vf.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C2EDX9E7.mjs";
|
|
4
|
+
import { renderItem } from "./capabilities-Dj3NgPHg.mjs";
|
|
5
|
+
import { parseId } from "./parse-id-BapRoz4R.mjs";
|
|
7
6
|
import { DashboardDetail, dashboardView } from "./dashboard-FY5UzJ_Z.mjs";
|
|
8
7
|
|
|
9
8
|
//#region src/commands/dashboard/get.ts
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { defineCommand } from "citty";
|
|
2
|
+
|
|
3
|
+
//#region src/commands/git-sync/index.ts
|
|
4
|
+
var git_sync_default = defineCommand({
|
|
5
|
+
meta: {
|
|
6
|
+
name: "git-sync",
|
|
7
|
+
description: "Sync Metabase content with a git remote"
|
|
8
|
+
},
|
|
9
|
+
subCommands: {
|
|
10
|
+
status: () => import("./status-B7H0JH52.mjs").then((mod) => mod.default),
|
|
11
|
+
"is-dirty": () => import("./is-dirty-C_RyVkc1.mjs").then((mod) => mod.default),
|
|
12
|
+
"has-remote-changes": () => import("./has-remote-changes-BNjTil7k.mjs").then((mod) => mod.default),
|
|
13
|
+
dirty: () => import("./dirty-hGWiemB-.mjs").then((mod) => mod.default),
|
|
14
|
+
"current-task": () => import("./current-task-5buIatuG.mjs").then((mod) => mod.default),
|
|
15
|
+
"cancel-task": () => import("./cancel-task-DX_OdGan.mjs").then((mod) => mod.default),
|
|
16
|
+
wait: () => import("./wait-DWyuBO_X.mjs").then((mod) => mod.default),
|
|
17
|
+
import: () => import("./import-C0iBM0UR.mjs").then((mod) => mod.default),
|
|
18
|
+
export: () => import("./export-wh9l0s7F.mjs").then((mod) => mod.default),
|
|
19
|
+
stash: () => import("./stash-B4RTStPo.mjs").then((mod) => mod.default),
|
|
20
|
+
branches: () => import("./branches-DwV1q-4h.mjs").then((mod) => mod.default),
|
|
21
|
+
"create-branch": () => import("./create-branch-2yEa7-9x.mjs").then((mod) => mod.default),
|
|
22
|
+
"add-collection": () => import("./add-collection-DkucDB2N.mjs").then((mod) => mod.default),
|
|
23
|
+
"remove-collection": () => import("./remove-collection-CLWw-48s.mjs").then((mod) => mod.default)
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
//#endregion
|
|
28
|
+
export { git_sync_default as default };
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./capabilities-
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import "./poll-DHKDpCiq.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-BLukG0Vf.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C2EDX9E7.mjs";
|
|
4
|
+
import { renderSummary } from "./capabilities-Dj3NgPHg.mjs";
|
|
5
|
+
import { REMOTE_SYNC_PATHS } from "./poll-task-Dalt24ov.mjs";
|
|
6
|
+
import "./poll-CYFFYOiB.mjs";
|
|
8
7
|
import { z } from "zod";
|
|
9
8
|
|
|
10
9
|
//#region src/commands/git-sync/has-remote-changes.ts
|
|
@@ -60,7 +59,8 @@ var has_remote_changes_default = defineMetabaseCommand({
|
|
|
60
59
|
async run({ args, ctx, getClient }) {
|
|
61
60
|
const client = await getClient();
|
|
62
61
|
const result = await client.requestParsed(HasRemoteChangesResult, REMOTE_SYNC_PATHS.hasRemoteChanges, { query: { "force-refresh": args.forceRefresh } });
|
|
63
|
-
|
|
62
|
+
const base = result.has_changes ? `The remote branch has changes not yet imported (remote ${result.remote_version ?? "?"}, local ${result.local_version ?? "?"}).` : "Up to date with the remote branch.";
|
|
63
|
+
renderSummary(result, hasRemoteChangesView, result.cached ? `${base} (cached)` : base, ctx);
|
|
64
64
|
}
|
|
65
65
|
});
|
|
66
66
|
|