@metabase/cli 0.1.13 → 0.1.15
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 +108 -0
- package/dist/add-collection-Bnuh0d4j.mjs +10 -0
- package/dist/{add-collection-BQsx2Q-S.mjs → add-collection-CXhrMjXU.mjs} +4 -4
- package/dist/{archive-FLrOqODN.mjs → archive-BUwiCFnd.mjs} +3 -3
- package/dist/{archive-BS4U2_gi.mjs → archive-Blc1dz8Z.mjs} +3 -3
- package/dist/{archive-D7qtYihp.mjs → archive-BxGSR7El.mjs} +3 -3
- package/dist/{archive-BP53zrzs.mjs → archive-CQiaCBSj.mjs} +3 -3
- package/dist/{archive-BrYMa87Z.mjs → archive-D-Ovk0-E.mjs} +3 -3
- package/dist/{archive-H8wBIt8q.mjs → archive-Drt-rWvU.mjs} +3 -3
- package/dist/{archive-Dt5zuiwu.mjs → archive-yTvDRQUZ.mjs} +3 -3
- package/dist/auth-Bkue4Psy.mjs +19 -0
- package/dist/{body-3vzTm8Jj.mjs → body-B9XTTDEu.mjs} +1 -1
- package/dist/{branches-Lr1cCUdg.mjs → branches-Ct3PK5U3.mjs} +4 -4
- package/dist/{cancel-Br3FHyDR.mjs → cancel-tST8Bh0w.mjs} +3 -3
- package/dist/{cancel-task-BXgeq3MH.mjs → cancel-task-BHnzRQKL.mjs} +4 -4
- package/dist/card-faWo9ZWU.mjs +20 -0
- package/dist/{cards-D-AkjCxr.mjs → cards-BySIFsLG.mjs} +3 -3
- package/dist/cli.mjs +24 -23
- package/dist/collection-DcRz7fmf.mjs +20 -0
- package/dist/{collection-namespace-BQ_ebqOP.mjs → collection-namespace-D8ohM5gD.mjs} +1 -1
- package/dist/{create-DHUhRzcV.mjs → create-4mAGsBd0.mjs} +3 -3
- package/dist/{create-Dx1SDXyQ.mjs → create-BDWthCYq.mjs} +3 -3
- package/dist/{create-DUdkitlQ.mjs → create-C43RQYgj.mjs} +4 -4
- package/dist/{create-BpAak62U.mjs → create-C7FPeJqF.mjs} +3 -3
- package/dist/{create-CDL9WHiR.mjs → create-D3cVDtxM.mjs} +3 -3
- package/dist/{create-C1xYECl-.mjs → create-DGxZmbxh.mjs} +4 -4
- package/dist/{create-CcZEV9xx.mjs → create-DnT1Sayk.mjs} +3 -3
- package/dist/{create-y4j2I1aH.mjs → create-DxDD6n1d.mjs} +5 -5
- package/dist/create-HZ-9GMLx.mjs +44 -0
- package/dist/{create-branch-BvZKizC4.mjs → create-branch-jPE7nW-E.mjs} +4 -4
- package/dist/{create-ux0yPpq1.mjs → create-fIDFkdox.mjs} +3 -3
- package/dist/{current-task-DaWn0DYt.mjs → current-task-rW54KJax.mjs} +4 -4
- package/dist/dashboard-pXAxJTTx.mjs +21 -0
- package/dist/db-CmHHj5eI.mjs +22 -0
- package/dist/{delete-CW3cEHlr.mjs → delete-BWO6uB4P.mjs} +4 -4
- package/dist/delete-CBwztF6P.mjs +50 -0
- package/dist/{delete-DFWjBpzl.mjs → delete-CeigtfRI.mjs} +4 -4
- package/dist/{delete-table-Wa0yRsnM.mjs → delete-table-BXzvDEPG.mjs} +4 -4
- package/dist/dependencies-D2N9eqm1.mjs +40 -0
- package/dist/{dirty-CKcGYIpv.mjs → dirty-DoEZRSGB.mjs} +4 -4
- package/dist/document-DQIhL75C.mjs +19 -0
- package/dist/{eid-m44hs7Ul.mjs → eid-1mROiwJr.mjs} +3 -3
- package/dist/{error-DR_i1hxJ.mjs → error-D5bZ5BUX.mjs} +1 -1
- package/dist/{export-8C4F9pYn.mjs → export-Bgv5B4_F.mjs} +6 -6
- package/dist/field-B-UcqFzm.mjs +18 -0
- package/dist/{fields-hXrRjf7e.mjs → fields-VA7tXHJz.mjs} +3 -3
- package/dist/{get-8r-_QuSr.mjs → get-B8etVxWD.mjs} +3 -3
- package/dist/{get-cjqlMKF5.mjs → get-BgIE_YEg.mjs} +4 -4
- package/dist/{get-xVPjvf7O.mjs → get-BtAD26gc.mjs} +3 -3
- package/dist/{get-CqU4xVSg.mjs → get-C-UeGtgW.mjs} +2 -2
- package/dist/{get-9MCrsgTf.mjs → get-CGkhSY5L.mjs} +3 -3
- package/dist/{get-BxgSKzca.mjs → get-CqnCaosn.mjs} +3 -3
- package/dist/{get-DWg3riaY.mjs → get-D9o38nK5.mjs} +2 -2
- package/dist/{get-BlNLGR-F.mjs → get-DAsaor0n.mjs} +2 -2
- package/dist/{get-D7WUNQYY.mjs → get-DLRBq8kR.mjs} +3 -3
- package/dist/{get-C7EKJGTP.mjs → get-DvQoDU2m.mjs} +4 -4
- package/dist/{get-BjCQctuS.mjs → get-RQFSmnpY.mjs} +3 -3
- package/dist/{get-3zFOkcl_.mjs → get-Wj88mnhn.mjs} +3 -3
- package/dist/{get-Cit5liJv.mjs → get-eUYDNALt.mjs} +3 -3
- package/dist/{get-CvLECgtm.mjs → get-qnGGGRTa.mjs} +3 -3
- package/dist/{get-run-CTDPEDcU.mjs → get-run-CATz-XMS.mjs} +4 -4
- package/dist/git-sync-CwOvcUI2.mjs +28 -0
- package/dist/{has-remote-changes-DYo4PQfC.mjs → has-remote-changes-B6YEMC90.mjs} +4 -4
- package/dist/{import-Cwd-_wYv.mjs → import-Bl2Wj9Xf.mjs} +6 -6
- package/dist/{is-dirty-HynZex-f.mjs → is-dirty-D9MoFj0T.mjs} +3 -3
- package/dist/is-dirty-MT0BT4CS.mjs +9 -0
- package/dist/{items-D4pSBGxR.mjs → items-LjtICjvX.mjs} +3 -3
- package/dist/{list-Ctze3nfU.mjs → list-B5Q7E2Km.mjs} +3 -3
- package/dist/{list-ET066OdN.mjs → list-Bjp9nd0o.mjs} +2 -2
- package/dist/{list-CI1WQ8U3.mjs → list-C410Ptw_.mjs} +2 -2
- package/dist/{list-F0BQNbaZ.mjs → list-C6U3Ftg8.mjs} +3 -3
- package/dist/{list-DBjOFesD.mjs → list-CfWblVHJ.mjs} +2 -2
- package/dist/{list-XgdM17ix.mjs → list-ChK06rJh.mjs} +2 -2
- package/dist/{list-DMZumpNv.mjs → list-CoRX8Ruc.mjs} +2 -2
- package/dist/{list-D3BBrpoQ.mjs → list-Cx8JxS2C.mjs} +2 -2
- package/dist/{list-_xdr1WKh.mjs → list-DMik04Dh.mjs} +3 -3
- package/dist/list-DaJk60dd.mjs +32 -0
- package/dist/{list-D7o0DOZe.mjs → list-DcjenlTM.mjs} +2 -2
- package/dist/{list-Bqy3rN6k.mjs → list-DfoNv0gb.mjs} +2 -2
- package/dist/{list-D-Ms9fhd.mjs → list-Dq86BAMG.mjs} +2 -2
- package/dist/{list-De2qX1w8.mjs → list-DtrfE0sF.mjs} +3 -3
- package/dist/{list-B2QX8BZ3.mjs → list-cnqPlJgC.mjs} +2 -2
- package/dist/{login-BHDdLJzw.mjs → login-Cn2UtFUt.mjs} +3 -3
- package/dist/{logout-ClizU0OL.mjs → logout-_HXgEmqA.mjs} +2 -2
- package/dist/measure-BIAoqgcS.mjs +19 -0
- package/dist/{metadata-D23RdbEZ.mjs → metadata-8yqT8OZI.mjs} +3 -3
- package/dist/{metadata-a_N6Sx30.mjs → metadata-DHODjg1d.mjs} +3 -3
- package/dist/{parse-id-B1BlAunl.mjs → parse-id-DNPeV0Iu.mjs} +1 -1
- package/dist/{path-FSfPscAQ.mjs → path-BflajM08.mjs} +2 -2
- package/dist/{poll-Dl5Zv4Ed.mjs → poll-CYkX02Bm.mjs} +1 -1
- package/dist/{poll-task-BoRK94WQ.mjs → poll-task-oXpl3wzp.mjs} +2 -2
- package/dist/{preflight-CVlo39xa.mjs → preflight-BdJr2amA.mjs} +1 -1
- package/dist/publish-CGUkIqSm.mjs +70 -0
- package/dist/{query-yZ9HeaGp.mjs → query-CxTjguwp.mjs} +3 -3
- package/dist/{query-CSvpJssD.mjs → query-DWQaN7hO.mjs} +3 -3
- package/dist/{remove-collection-CV7ssevw.mjs → remove-collection-BwcFi8Fs.mjs} +6 -6
- package/dist/{rescan-values-CMeOv6yx.mjs → rescan-values-B9Qtsd32.mjs} +3 -3
- package/dist/{run-CIJOYXor.mjs → run-3eFtdI2Z.mjs} +6 -6
- package/dist/run-C-vftXCu.mjs +59 -0
- package/dist/{runs--CzbmfPg.mjs → runs-CpRTkn1W.mjs} +4 -4
- package/dist/{runtime-DJTGfiKO.mjs → runtime-C1QgWHM7.mjs} +1 -1
- package/dist/{schema-tables-BII9pHR8.mjs → schema-tables-rdeupgsu.mjs} +3 -3
- package/dist/{schemas-BzxVz71I.mjs → schemas-Cr7RjYqV.mjs} +3 -3
- package/dist/{search-CjJZdaM0.mjs → search-D7Yq2MDu.mjs} +3 -3
- package/dist/segment-BN8sFunv.mjs +19 -0
- package/dist/selectors-DPc2ZDdd.mjs +37 -0
- package/dist/{set-Ds_brNWu.mjs → set-X2N6x7pe.mjs} +3 -3
- package/dist/set-active-BoBa3pOw.mjs +56 -0
- package/dist/{setting-YDJRWd1m.mjs → setting-zZjcOPyE.mjs} +3 -3
- package/dist/{setup-DJb-NgSM.mjs → setup-C47WUieB.mjs} +3 -3
- package/dist/{skills-Dn-kn8Wj.mjs → skills-Po0YPVU5.mjs} +3 -3
- package/dist/snippet-DK0ZA8m5.mjs +19 -0
- package/dist/{stash-DGujowmx.mjs → stash-BV4sEp73.mjs} +6 -6
- package/dist/{status-Cx0TIn1I.mjs → status-BKF9rRnk.mjs} +5 -5
- package/dist/{status-3-Tl07gu.mjs → status-Cf8c0NON.mjs} +2 -2
- package/dist/{summary-CT-xFvnX.mjs → summary-RgLcBcEh.mjs} +3 -3
- package/dist/{sync-schema-BTF7O3FM.mjs → sync-schema-DKEel2Sv.mjs} +5 -5
- package/dist/table-COAKXNuj.mjs +21 -0
- package/dist/transform-Bto4U82j.mjs +25 -0
- package/dist/transform-job-_fW1y2tg.mjs +22 -0
- package/dist/transform-tag-C8n1oTr1.mjs +18 -0
- package/dist/transform-tag-DB46AhAj.mjs +36 -0
- package/dist/transforms-BOQ9CG0l.mjs +40 -0
- package/dist/{tree-CLUxXw-Z.mjs → tree-CF8mscd9.mjs} +2 -2
- package/dist/unpublish-CmaRNjK3.mjs +76 -0
- package/dist/{update-DD5Q37bz.mjs → update-B59h7KmS.mjs} +5 -5
- package/dist/{update-Z_LMzsiz.mjs → update-BXZBEeUp.mjs} +4 -4
- package/dist/{update-I0t_6Mni.mjs → update-BuypOaXq.mjs} +4 -4
- package/dist/{update-BeH_S7h9.mjs → update-CgQOSuZt.mjs} +4 -4
- package/dist/{update-BfNmqvuN.mjs → update-DERsb0eO.mjs} +5 -5
- package/dist/{update-tQvEYuzD.mjs → update-DQPg0_-d.mjs} +4 -4
- package/dist/{update-6IuvkFCk.mjs → update-DR4WkAET.mjs} +4 -4
- package/dist/{update-DpCv5Mdo.mjs → update-DoQpy9SA.mjs} +4 -4
- package/dist/update-Kz4kyqY_.mjs +51 -0
- package/dist/{update-dashcard-Bl3wbB8-.mjs → update-dashcard-BJVeSGvO.mjs} +4 -4
- package/dist/{update-C_Ui5qPU.mjs → update-nwXgVNQa.mjs} +6 -6
- package/dist/{update-DdqzxPIr.mjs → update-rhfPHALN.mjs} +4 -4
- package/dist/{upgrade-r2ZlfstE.mjs → upgrade-CNrkJF6s.mjs} +2 -2
- package/dist/{uuid-BduDonqb.mjs → uuid-Dpl3ALKq.mjs} +2 -2
- package/dist/{values-DuNE6Jxc.mjs → values-DMYpkoEH.mjs} +3 -3
- package/dist/{verify-D_yq68-R.mjs → verify-By9ZYzx4.mjs} +1 -1
- package/dist/{wait-CoDzO37B.mjs → wait-BzIAj8lJ.mjs} +5 -5
- package/dist/{wait-flags-BxUfF5zy.mjs → wait-flags-DQrxnlwv.mjs} +2 -2
- package/package.json +1 -1
- package/skill-data/core/SKILL.md +2 -1
- package/skill-data/transform/SKILL.md +17 -3
- package/dist/add-collection-BiBKEHwz.mjs +0 -10
- package/dist/auth-DWA7DSo9.mjs +0 -19
- package/dist/card-DQV8WOIa.mjs +0 -20
- package/dist/collection-DIUWkVFY.mjs +0 -20
- package/dist/dashboard-CohHWhkV.mjs +0 -21
- package/dist/db-BD8JZUDw.mjs +0 -22
- package/dist/document-CRuag6F5.mjs +0 -19
- package/dist/field-CuabjsR7.mjs +0 -18
- package/dist/git-sync-CKsGGVOm.mjs +0 -28
- package/dist/is-dirty-Mkgi21bq.mjs +0 -9
- package/dist/measure-SmyQt9Lg.mjs +0 -19
- package/dist/segment-dkO4Ualw.mjs +0 -19
- package/dist/snippet-DqTiC73e.mjs +0 -19
- package/dist/table-DNGPtV4P.mjs +0 -19
- package/dist/transform-DEbvouxo.mjs +0 -24
- package/dist/transform-job-Du8npb7F.mjs +0 -19
- /package/dist/{delete-runtime-BhZAAvjc.mjs → delete-runtime-PzLFavb0.mjs} +0 -0
- /package/dist/{transform-job-B9pXBOwr.mjs → transform-job-C8lIS-7Q.mjs} +0 -0
- /package/dist/{transform-qczxOAzn.mjs → transform-n376akp8.mjs} +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-D5bZ5BUX.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C1QgWHM7.mjs";
|
|
4
4
|
import { renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
5
5
|
import "./input-BXWgdKiS.mjs";
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
7
|
-
import { readBody } from "./body-
|
|
6
|
+
import { parseId } from "./parse-id-DNPeV0Iu.mjs";
|
|
7
|
+
import { readBody } from "./body-B9XTTDEu.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-D7q87Btw.mjs";
|
|
9
9
|
import "./validate-VawhJ5Sc.mjs";
|
|
10
10
|
import { SEGMENT_DEFINITION_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-CSV-TTnd.mjs";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-D5bZ5BUX.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C1QgWHM7.mjs";
|
|
4
4
|
import { renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
5
5
|
import "./input-BXWgdKiS.mjs";
|
|
6
6
|
import { Field, FieldUpdateInput, fieldView } from "./field-E0IBy4Uw.mjs";
|
|
7
|
-
import { parseId } from "./parse-id-
|
|
8
|
-
import { readBody } from "./body-
|
|
7
|
+
import { parseId } from "./parse-id-DNPeV0Iu.mjs";
|
|
8
|
+
import { readBody } from "./body-B9XTTDEu.mjs";
|
|
9
9
|
import { bodyInputFlags } from "./body-flags-D7q87Btw.mjs";
|
|
10
10
|
|
|
11
11
|
//#region src/commands/field/update.ts
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-D5bZ5BUX.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C1QgWHM7.mjs";
|
|
4
|
+
import { renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
5
|
+
import "./input-BXWgdKiS.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-DNPeV0Iu.mjs";
|
|
7
|
+
import { readBody } from "./body-B9XTTDEu.mjs";
|
|
8
|
+
import { bodyInputFlags } from "./body-flags-D7q87Btw.mjs";
|
|
9
|
+
import { TransformTag, TransformTagUpdateInput, transformTagView } from "./transform-tag-DB46AhAj.mjs";
|
|
10
|
+
|
|
11
|
+
//#region src/commands/transform-tag/update.ts
|
|
12
|
+
var update_default = defineMetabaseCommand({
|
|
13
|
+
meta: {
|
|
14
|
+
name: "update",
|
|
15
|
+
description: "Update a transform tag by id"
|
|
16
|
+
},
|
|
17
|
+
capabilities: { minVersion: 59 },
|
|
18
|
+
args: {
|
|
19
|
+
...outputFlags,
|
|
20
|
+
...profileFlag,
|
|
21
|
+
...connectionFlags,
|
|
22
|
+
...bodyInputFlags,
|
|
23
|
+
id: {
|
|
24
|
+
type: "positional",
|
|
25
|
+
description: "Transform tag id",
|
|
26
|
+
required: true
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
outputSchema: TransformTag,
|
|
30
|
+
examples: [
|
|
31
|
+
"mb transform-tag update 5 --body '{\"name\":\"renamed\"}'",
|
|
32
|
+
"mb transform-tag update 5 --file tag.json",
|
|
33
|
+
"echo '{\"name\":\"renamed\"}' | mb transform-tag update 5"
|
|
34
|
+
],
|
|
35
|
+
async run({ args, ctx, getClient }) {
|
|
36
|
+
const id = parseId(args.id);
|
|
37
|
+
const body = await readBody({
|
|
38
|
+
flag: args.body,
|
|
39
|
+
file: args.file
|
|
40
|
+
}, TransformTagUpdateInput);
|
|
41
|
+
const client = await getClient();
|
|
42
|
+
const updated = await client.requestParsed(TransformTag, `/api/transform-tag/${id}`, {
|
|
43
|
+
method: "PUT",
|
|
44
|
+
body
|
|
45
|
+
});
|
|
46
|
+
renderSummary(updated, transformTagView, `Updated transform tag ${updated.id} "${updated.name}".`, ctx);
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
//#endregion
|
|
51
|
+
export { update_default as default };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ConfigError } from "./command-augment-CAur0XOQ.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-D5bZ5BUX.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C1QgWHM7.mjs";
|
|
4
4
|
import { renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
5
5
|
import "./input-BXWgdKiS.mjs";
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
7
|
-
import { readBody } from "./body-
|
|
6
|
+
import { parseId } from "./parse-id-DNPeV0Iu.mjs";
|
|
7
|
+
import { readBody } from "./body-B9XTTDEu.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-D7q87Btw.mjs";
|
|
9
9
|
import { DashboardDetail, Dashcard, DashcardPatchInput, dashcardView } from "./dashboard-B4bn3z6t.mjs";
|
|
10
10
|
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-D5bZ5BUX.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C1QgWHM7.mjs";
|
|
4
4
|
import { renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
5
5
|
import "./input-BXWgdKiS.mjs";
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
7
|
-
import { readBody } from "./body-
|
|
6
|
+
import { parseId } from "./parse-id-DNPeV0Iu.mjs";
|
|
7
|
+
import { readBody } from "./body-B9XTTDEu.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-D7q87Btw.mjs";
|
|
9
9
|
import "./validate-VawhJ5Sc.mjs";
|
|
10
10
|
import { TRANSFORM_SOURCE_QUERY_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-CSV-TTnd.mjs";
|
|
11
|
-
import { Transform, TransformUpdateInput, transformView } from "./transform-
|
|
12
|
-
import { enrichTransformCollectionError } from "./collection-namespace-
|
|
11
|
+
import { Transform, TransformUpdateInput, transformView } from "./transform-n376akp8.mjs";
|
|
12
|
+
import { enrichTransformCollectionError } from "./collection-namespace-D8ohM5gD.mjs";
|
|
13
13
|
|
|
14
14
|
//#region src/commands/transform/update.ts
|
|
15
15
|
var update_default = defineMetabaseCommand({
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-D5bZ5BUX.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C1QgWHM7.mjs";
|
|
4
4
|
import { renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
5
5
|
import "./input-BXWgdKiS.mjs";
|
|
6
6
|
import "./field-E0IBy4Uw.mjs";
|
|
7
7
|
import { Card, CardUpdateInput, cardView } from "./card-wCPcuKSi.mjs";
|
|
8
|
-
import { parseId } from "./parse-id-
|
|
9
|
-
import { readBody } from "./body-
|
|
8
|
+
import { parseId } from "./parse-id-DNPeV0Iu.mjs";
|
|
9
|
+
import { readBody } from "./body-B9XTTDEu.mjs";
|
|
10
10
|
import { bodyInputFlags } from "./body-flags-D7q87Btw.mjs";
|
|
11
11
|
import "./validate-VawhJ5Sc.mjs";
|
|
12
12
|
import { CARD_DATASET_QUERY_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-CSV-TTnd.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AbortError, NetworkError, TimeoutError, UnknownError, errorMessage } from "./command-augment-CAur0XOQ.mjs";
|
|
2
|
-
import { outputFlags, package_default } from "./error-
|
|
3
|
-
import { HttpError, USER_AGENT, combineAborts, defineMetabaseCommand, parseJson, throwIfAborted } from "./runtime-
|
|
2
|
+
import { outputFlags, package_default } from "./error-D5bZ5BUX.mjs";
|
|
3
|
+
import { HttpError, USER_AGENT, combineAborts, defineMetabaseCommand, parseJson, throwIfAborted } from "./runtime-C1QgWHM7.mjs";
|
|
4
4
|
import { renderItem, writeText } from "./capabilities-BX1rnVuH.mjs";
|
|
5
5
|
import { promptConfirm } from "./prompt-Bc_bHSD0.mjs";
|
|
6
6
|
import { streamProcess } from "./process-DsGf7Mg5.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ConfigError } from "./command-augment-CAur0XOQ.mjs";
|
|
2
|
-
import { outputFlags } from "./error-
|
|
3
|
-
import { defineMetabaseCommand, parseInteger } from "./runtime-
|
|
2
|
+
import { outputFlags } from "./error-D5bZ5BUX.mjs";
|
|
3
|
+
import { defineMetabaseCommand, parseInteger } from "./runtime-C1QgWHM7.mjs";
|
|
4
4
|
import { writeJson, writeText } from "./capabilities-BX1rnVuH.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
import { randomUUID } from "node:crypto";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-D5bZ5BUX.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C1QgWHM7.mjs";
|
|
4
4
|
import { formatScalar, renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
5
5
|
import { FieldValues, fieldValuesView } from "./field-E0IBy4Uw.mjs";
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
6
|
+
import { parseId } from "./parse-id-DNPeV0Iu.mjs";
|
|
7
7
|
|
|
8
8
|
//#region src/commands/field/values.ts
|
|
9
9
|
var values_default = defineMetabaseCommand({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MetabaseError, NetworkError, TimeoutError, errorMessage } from "./command-augment-CAur0XOQ.mjs";
|
|
2
|
-
import { HttpError, createClient, probeServer } from "./runtime-
|
|
2
|
+
import { HttpError, createClient, probeServer } from "./runtime-C1QgWHM7.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
|
|
5
5
|
//#region src/domain/user.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-D5bZ5BUX.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C1QgWHM7.mjs";
|
|
4
4
|
import { renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
5
|
-
import { parseId } from "./parse-id-
|
|
6
|
-
import { DEFAULT_INTERVAL_MS, DEFAULT_TIMEOUT_MS } from "./poll-
|
|
7
|
-
import { SyncTaskOrIdle, formatSyncTask, pollSyncTask, syncTaskIdleView, syncTaskView, throwIfFailedTask } from "./poll-task-
|
|
5
|
+
import { parseId } from "./parse-id-DNPeV0Iu.mjs";
|
|
6
|
+
import { DEFAULT_INTERVAL_MS, DEFAULT_TIMEOUT_MS } from "./poll-CYkX02Bm.mjs";
|
|
7
|
+
import { SyncTaskOrIdle, formatSyncTask, pollSyncTask, syncTaskIdleView, syncTaskView, throwIfFailedTask } from "./poll-task-oXpl3wzp.mjs";
|
|
8
8
|
|
|
9
9
|
//#region src/commands/git-sync/wait.ts
|
|
10
10
|
const WaitResult = SyncTaskOrIdle;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { parseId } from "./parse-id-
|
|
2
|
-
import { DEFAULT_INTERVAL_MS, DEFAULT_TIMEOUT_MS } from "./poll-
|
|
1
|
+
import { parseId } from "./parse-id-DNPeV0Iu.mjs";
|
|
2
|
+
import { DEFAULT_INTERVAL_MS, DEFAULT_TIMEOUT_MS } from "./poll-CYkX02Bm.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/commands/wait-flags.ts
|
|
5
5
|
const waitScheduleFlags = {
|
package/package.json
CHANGED
package/skill-data/core/SKILL.md
CHANGED
|
@@ -12,7 +12,7 @@ Top-level command groups (run `mb <group> --help` to discover verbs):
|
|
|
12
12
|
|
|
13
13
|
```
|
|
14
14
|
auth | db | table | field | query | card | dashboard | snippet | segment | measure | collection
|
|
15
|
-
document | transform | transform-job | setting | search | git-sync | setup | eid | uuid | upgrade | skills
|
|
15
|
+
document | transform | transform-job | transform-tag | setting | search | git-sync | setup | eid | uuid | upgrade | skills
|
|
16
16
|
```
|
|
17
17
|
|
|
18
18
|
The patterns below — auth, flag conventions, output flags, body input — apply across **every** group. Per-command flags, examples, and output schemas live in `mb __manifest` (see below). A few flows have their own specialized skills (see "Specialized skills"). When a card needs a query, prefer MBQL over native SQL (portable, pre-flight-validated) — load `mbql`; fall back to native SQL when MBQL can't express it.
|
|
@@ -128,6 +128,7 @@ Routine verb shapes (list / get / create / update), every flag, and output JSON
|
|
|
128
128
|
|
|
129
129
|
- **db traversal vs. rollup.** Default to granular: `database list` → `database schemas <db-id>` → `database schema-tables <db-id> <schema>` → `table get <table-id> --include fields`. The rollup endpoints (`database get --include tables.fields`, `database metadata <db-id>`) pull megabytes and blow the context window on any real warehouse — use them only on a small/dev db. `sync-schema` / `rescan-values` queue async work and return `{status:"ok"}` immediately; `sync-schema --wait` blocks until `initial_sync_status: complete`.
|
|
130
130
|
- **table fields.** `table get` never returns fields on its own — pass `--include fields` (compact) or use `table fields <id>` (list envelope). `table metadata <id>` adds FKs + dimensions (heavier). `table update` patches table-level metadata only; physical columns aren't editable here.
|
|
131
|
+
- **table publish / unpublish.** EE-only (`library` premium feature, v59+) bulk Library curation. Pick targets with `--table-ids` / `--db-ids` / `--schemas` (combined as OR), where each `--schemas` entry is `<db-id>:<schema>` (e.g. `1:public`), **not** a bare schema name. `publish --collection-id` must point at a `library-data` collection (a regular collection is rejected with a 400). `publish` cascades to upstream FK dependencies, `unpublish` to downstream dependents; both exit **403** unless you have write **and** query permission on every affected table.
|
|
131
132
|
- **field has no `list`.** Fields are per-table — get them via `table get <id> --include fields`. Never enumerate fields across a whole db (context blow-up). `field summary` is live cardinality `{field_id, count, distincts}`; `field values` is the cached distinct set (`has_more_values: true` ⇒ truncated cache). `field update` patches metadata only; `base_type` isn't editable.
|
|
132
133
|
- **card.** `dataset_query` is the **flat** `mbql/query` value, not a legacy `{type:"query",query:…}` envelope (→ `mbql` skill). `--export-format csv|xlsx` streams the raw export (pipe to a file), bypassing the JSON envelope. `archive` is the only delete; unarchive with `update --body '{"archived":false}'`. `visualization_settings` keys are scoped by `display` and aren't pre-flighted — see the `viz` skill.
|
|
133
134
|
- **dashboard.** Dashcards round-trip through `PUT /api/dashboard/:id` (no per-dashcard endpoint): `update-dashcard <dash-id> <dashcard-id>` patches one safely; `update --body '{"dashcards":[…]}'` replaces the whole set (omitted ids are deleted server-side; negative ids for new cards). `create` accepts the **same** `dashcards` array in its initial body — lay out the whole dashboard in one call: negative ids for new cards, and `card_id:null` plus a `visualization_settings.virtual_card` block (`{display:"text"|"heading"|"link"|…}`) for non-question cards. `create`/`update` pre-flight every positive `card_id` against live server state and exit **2** with `{ok:false,errors:[…]}` on a bad ref — non-bypassable (no `--skip-validate`). `dashboard get <id>` (or `--full`) hydrates dashcards/tabs; `list` omits them. **Dashcard geometry: the grid is 24 columns wide.** Each dashcard's `{col, row, size_x, size_y}` is in grid units — `col` (0-indexed, left edge) and `size_x` are columns, `row`/`size_y` are rows; **full-width is `size_x: 24`** (`size_x: 12` is half a row — the usual cause of a card filling only half the width, since it's a common per-chart default). Keep `col + size_x ≤ 24`, start each card's `col` at 0 for a full-width stack, and don't overlap cards (the server stores whatever you send — it won't auto-fix collisions).
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: transform
|
|
3
|
-
description: Author and run Metabase transforms via `mb` — body shape (native SQL + MBQL 5), create + run-with-wait, run inspection, cancel, the `update`-vs-recreate iteration rule,
|
|
3
|
+
description: Author and run Metabase transforms via `mb` — body shape (native SQL + MBQL 5), create + run-with-wait, run inspection, dependencies, cancel, the `update`-vs-recreate iteration rule, the writable-keys-only PATCH contract, plus transform tags and tag-driven transform-job schedules. Load when the user touches transforms — "create a transform", "run a transform", "fix a failing transform", "list transform runs", "cancel a running transform", "manage transform tags", "run a transform job", or anything `mb transform …` / `mb transform-job …` / `mb transform-tag …`.
|
|
4
4
|
allowed-tools: Read, Write, Edit, Bash, AskUserQuestion
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -62,7 +62,8 @@ Notes:
|
|
|
62
62
|
|
|
63
63
|
```bash
|
|
64
64
|
mb transform list --profile <name> --json
|
|
65
|
-
mb transform get <id> --profile <name> --full --json
|
|
65
|
+
mb transform get <id> --profile <name> --full --json # full transform incl. last run summary
|
|
66
|
+
mb transform dependencies <id> --profile <name> --json # upstream transforms this one must run after
|
|
66
67
|
```
|
|
67
68
|
|
|
68
69
|
After a run the table physically exists in the warehouse, but Metabase addresses tables/columns by numeric id, so **MBQL and the UI can't reference a brand-new table until the instance syncs** (native SQL — a native `card` or `mb query` against `<schema>.<name>` — reads it immediately). Run and register in one step with `--sync`.
|
|
@@ -139,6 +140,8 @@ mb transform update <id> --file ./.scratch/patch.json --profile <name> --json
|
|
|
139
140
|
mb transform update <id> --body '{"tag_ids":[1,3]}' --profile <name> --json
|
|
140
141
|
```
|
|
141
142
|
|
|
143
|
+
`tag_ids` are the integer ids of **transform tags** — discover and manage them with the `transform-tag` group: `mb transform-tag list --json` (find ids; the four built-ins `hourly`/`daily`/`weekly`/`monthly` are seeded), `mb transform-tag create --body '{"name":"nightly"}' --json`, `mb transform-tag update <id>`, `mb transform-tag delete <id>`. Tags are also how a `transform-job` selects what to run — a job executes every transform carrying one of the job's tags (see "Transform jobs" below).
|
|
144
|
+
|
|
142
145
|
If you really must round-trip, project to the writable subset:
|
|
143
146
|
|
|
144
147
|
```bash
|
|
@@ -197,7 +200,18 @@ Removes the definition. Whether the materialized table is dropped depends on the
|
|
|
197
200
|
|
|
198
201
|
## Transform jobs (schedules)
|
|
199
202
|
|
|
200
|
-
A schedule lives in a separate resource (`transform-job`)
|
|
203
|
+
A schedule lives in a separate resource (`transform-job`). A job carries **tags** (`tag_ids`), not transform ids: each run executes every transform carrying one of the job's tags. You add a transform to a job by tagging the transform (`transform update <id> --body '{"tag_ids":[…]}'`), not by listing it on the job. Create/update with the same body-input pattern (`--file body.json`).
|
|
204
|
+
|
|
205
|
+
Key verbs (`mb transform-job --help` for the full list):
|
|
206
|
+
|
|
207
|
+
```bash
|
|
208
|
+
mb transform-job transforms <id> --profile <name> --json # preview which transforms this job resolves to (by tag)
|
|
209
|
+
mb transform-job run <id> --profile <name> --json # trigger a job now; runs all its tagged transforms
|
|
210
|
+
mb transform-job run <id> --force-refresh --profile <name> --json # also re-run dependencies that are already fresh
|
|
211
|
+
mb transform-job set-active false --profile <name> --json # disable every job at once (true re-enables); admin only
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
`transform-job run` is fire-and-forget — the server returns `{message, job_run_id}` immediately, with no per-job-run polling (no `--wait`). Most ad-hoc agent work is one-off `transform run`, not job authoring.
|
|
201
215
|
|
|
202
216
|
## Don't (transform-specific)
|
|
203
217
|
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
-
import "./error-DR_i1hxJ.mjs";
|
|
3
|
-
import "./runtime-DJTGfiKO.mjs";
|
|
4
|
-
import "./capabilities-BX1rnVuH.mjs";
|
|
5
|
-
import "./parse-id-B1BlAunl.mjs";
|
|
6
|
-
import "./poll-Dl5Zv4Ed.mjs";
|
|
7
|
-
import "./poll-task-BoRK94WQ.mjs";
|
|
8
|
-
import { SyncSettingsUpdateResult, add_collection_default, setCollectionRemoteSynced, syncSettingsUpdateView } from "./add-collection-BQsx2Q-S.mjs";
|
|
9
|
-
|
|
10
|
-
export { add_collection_default as default };
|
package/dist/auth-DWA7DSo9.mjs
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { defineCommand } from "citty";
|
|
2
|
-
|
|
3
|
-
//#region src/commands/auth/index.ts
|
|
4
|
-
var auth_default = defineCommand({
|
|
5
|
-
meta: {
|
|
6
|
-
name: "auth",
|
|
7
|
-
description: "Authenticate against a Metabase instance"
|
|
8
|
-
},
|
|
9
|
-
default: "login",
|
|
10
|
-
subCommands: {
|
|
11
|
-
login: () => import("./login-BHDdLJzw.mjs").then((m) => m.default),
|
|
12
|
-
status: () => import("./status-3-Tl07gu.mjs").then((m) => m.default),
|
|
13
|
-
list: () => import("./list-F0BQNbaZ.mjs").then((m) => m.default),
|
|
14
|
-
logout: () => import("./logout-ClizU0OL.mjs").then((m) => m.default)
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
//#endregion
|
|
19
|
-
export { auth_default as default };
|
package/dist/card-DQV8WOIa.mjs
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { defineCommand } from "citty";
|
|
2
|
-
|
|
3
|
-
//#region src/commands/card/index.ts
|
|
4
|
-
var card_default = defineCommand({
|
|
5
|
-
meta: {
|
|
6
|
-
name: "card",
|
|
7
|
-
description: "Manage Metabase cards (questions, models, metrics)"
|
|
8
|
-
},
|
|
9
|
-
subCommands: {
|
|
10
|
-
list: () => import("./list-CI1WQ8U3.mjs").then((mod) => mod.default),
|
|
11
|
-
get: () => import("./get-3zFOkcl_.mjs").then((mod) => mod.default),
|
|
12
|
-
query: () => import("./query-CSvpJssD.mjs").then((mod) => mod.default),
|
|
13
|
-
create: () => import("./create-DHUhRzcV.mjs").then((mod) => mod.default),
|
|
14
|
-
update: () => import("./update-DdqzxPIr.mjs").then((mod) => mod.default),
|
|
15
|
-
archive: () => import("./archive-FLrOqODN.mjs").then((mod) => mod.default)
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
//#endregion
|
|
20
|
-
export { card_default as default };
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { defineCommand } from "citty";
|
|
2
|
-
|
|
3
|
-
//#region src/commands/collection/index.ts
|
|
4
|
-
var collection_default = defineCommand({
|
|
5
|
-
meta: {
|
|
6
|
-
name: "collection",
|
|
7
|
-
description: "Manage Metabase collections"
|
|
8
|
-
},
|
|
9
|
-
subCommands: {
|
|
10
|
-
list: () => import("./list-DBjOFesD.mjs").then((mod) => mod.default),
|
|
11
|
-
get: () => import("./get-BlNLGR-F.mjs").then((mod) => mod.default),
|
|
12
|
-
items: () => import("./items-D4pSBGxR.mjs").then((mod) => mod.default),
|
|
13
|
-
tree: () => import("./tree-CLUxXw-Z.mjs").then((mod) => mod.default),
|
|
14
|
-
create: () => import("./create-BpAak62U.mjs").then((mod) => mod.default),
|
|
15
|
-
archive: () => import("./archive-BP53zrzs.mjs").then((mod) => mod.default)
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
//#endregion
|
|
20
|
-
export { collection_default as default };
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { defineCommand } from "citty";
|
|
2
|
-
|
|
3
|
-
//#region src/commands/dashboard/index.ts
|
|
4
|
-
var dashboard_default = defineCommand({
|
|
5
|
-
meta: {
|
|
6
|
-
name: "dashboard",
|
|
7
|
-
description: "Manage Metabase dashboards"
|
|
8
|
-
},
|
|
9
|
-
subCommands: {
|
|
10
|
-
list: () => import("./list-XgdM17ix.mjs").then((mod) => mod.default),
|
|
11
|
-
get: () => import("./get-CvLECgtm.mjs").then((mod) => mod.default),
|
|
12
|
-
cards: () => import("./cards-D-AkjCxr.mjs").then((mod) => mod.default),
|
|
13
|
-
create: () => import("./create-DUdkitlQ.mjs").then((mod) => mod.default),
|
|
14
|
-
update: () => import("./update-BfNmqvuN.mjs").then((mod) => mod.default),
|
|
15
|
-
"update-dashcard": () => import("./update-dashcard-Bl3wbB8-.mjs").then((mod) => mod.default),
|
|
16
|
-
archive: () => import("./archive-D7qtYihp.mjs").then((mod) => mod.default)
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
//#endregion
|
|
21
|
-
export { dashboard_default as default };
|
package/dist/db-BD8JZUDw.mjs
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { defineCommand } from "citty";
|
|
2
|
-
|
|
3
|
-
//#region src/commands/db/index.ts
|
|
4
|
-
var db_default = defineCommand({
|
|
5
|
-
meta: {
|
|
6
|
-
name: "db",
|
|
7
|
-
description: "Inspect and sync Metabase databases",
|
|
8
|
-
alias: "database"
|
|
9
|
-
},
|
|
10
|
-
subCommands: {
|
|
11
|
-
list: () => import("./list-D-Ms9fhd.mjs").then((m) => m.default),
|
|
12
|
-
get: () => import("./get-9MCrsgTf.mjs").then((m) => m.default),
|
|
13
|
-
metadata: () => import("./metadata-D23RdbEZ.mjs").then((m) => m.default),
|
|
14
|
-
schemas: () => import("./schemas-BzxVz71I.mjs").then((m) => m.default),
|
|
15
|
-
"schema-tables": () => import("./schema-tables-BII9pHR8.mjs").then((m) => m.default),
|
|
16
|
-
"sync-schema": () => import("./sync-schema-BTF7O3FM.mjs").then((m) => m.default),
|
|
17
|
-
"rescan-values": () => import("./rescan-values-CMeOv6yx.mjs").then((m) => m.default)
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
|
|
21
|
-
//#endregion
|
|
22
|
-
export { db_default as default };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { defineCommand } from "citty";
|
|
2
|
-
|
|
3
|
-
//#region src/commands/document/index.ts
|
|
4
|
-
var document_default = defineCommand({
|
|
5
|
-
meta: {
|
|
6
|
-
name: "document",
|
|
7
|
-
description: "Manage Metabase documents"
|
|
8
|
-
},
|
|
9
|
-
subCommands: {
|
|
10
|
-
list: () => import("./list-ET066OdN.mjs").then((mod) => mod.default),
|
|
11
|
-
get: () => import("./get-xVPjvf7O.mjs").then((mod) => mod.default),
|
|
12
|
-
create: () => import("./create-CcZEV9xx.mjs").then((mod) => mod.default),
|
|
13
|
-
update: () => import("./update-BeH_S7h9.mjs").then((mod) => mod.default),
|
|
14
|
-
archive: () => import("./archive-Dt5zuiwu.mjs").then((mod) => mod.default)
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
//#endregion
|
|
19
|
-
export { document_default as default };
|
package/dist/field-CuabjsR7.mjs
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
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-BjCQctuS.mjs").then((m) => m.default),
|
|
11
|
-
values: () => import("./values-DuNE6Jxc.mjs").then((m) => m.default),
|
|
12
|
-
summary: () => import("./summary-CT-xFvnX.mjs").then((m) => m.default),
|
|
13
|
-
update: () => import("./update-DpCv5Mdo.mjs").then((m) => m.default)
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
|
-
|
|
17
|
-
//#endregion
|
|
18
|
-
export { field_default as default };
|
|
@@ -1,28 +0,0 @@
|
|
|
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-Cx0TIn1I.mjs").then((mod) => mod.default),
|
|
11
|
-
"is-dirty": () => import("./is-dirty-Mkgi21bq.mjs").then((mod) => mod.default),
|
|
12
|
-
"has-remote-changes": () => import("./has-remote-changes-DYo4PQfC.mjs").then((mod) => mod.default),
|
|
13
|
-
dirty: () => import("./dirty-CKcGYIpv.mjs").then((mod) => mod.default),
|
|
14
|
-
"current-task": () => import("./current-task-DaWn0DYt.mjs").then((mod) => mod.default),
|
|
15
|
-
"cancel-task": () => import("./cancel-task-BXgeq3MH.mjs").then((mod) => mod.default),
|
|
16
|
-
wait: () => import("./wait-CoDzO37B.mjs").then((mod) => mod.default),
|
|
17
|
-
import: () => import("./import-Cwd-_wYv.mjs").then((mod) => mod.default),
|
|
18
|
-
export: () => import("./export-8C4F9pYn.mjs").then((mod) => mod.default),
|
|
19
|
-
stash: () => import("./stash-DGujowmx.mjs").then((mod) => mod.default),
|
|
20
|
-
branches: () => import("./branches-Lr1cCUdg.mjs").then((mod) => mod.default),
|
|
21
|
-
"create-branch": () => import("./create-branch-BvZKizC4.mjs").then((mod) => mod.default),
|
|
22
|
-
"add-collection": () => import("./add-collection-BiBKEHwz.mjs").then((mod) => mod.default),
|
|
23
|
-
"remove-collection": () => import("./remove-collection-CV7ssevw.mjs").then((mod) => mod.default)
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
//#endregion
|
|
28
|
-
export { git_sync_default as default };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
-
import "./error-DR_i1hxJ.mjs";
|
|
3
|
-
import "./runtime-DJTGfiKO.mjs";
|
|
4
|
-
import "./capabilities-BX1rnVuH.mjs";
|
|
5
|
-
import "./poll-Dl5Zv4Ed.mjs";
|
|
6
|
-
import "./poll-task-BoRK94WQ.mjs";
|
|
7
|
-
import { IsDirtyResult, is_dirty_default } from "./is-dirty-HynZex-f.mjs";
|
|
8
|
-
|
|
9
|
-
export { is_dirty_default as default };
|
|
@@ -1,19 +0,0 @@
|
|
|
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-Bqy3rN6k.mjs").then((mod) => mod.default),
|
|
11
|
-
get: () => import("./get-D7WUNQYY.mjs").then((mod) => mod.default),
|
|
12
|
-
create: () => import("./create-CDL9WHiR.mjs").then((mod) => mod.default),
|
|
13
|
-
update: () => import("./update-Z_LMzsiz.mjs").then((mod) => mod.default),
|
|
14
|
-
archive: () => import("./archive-H8wBIt8q.mjs").then((mod) => mod.default)
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
//#endregion
|
|
19
|
-
export { measure_default as default };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { defineCommand } from "citty";
|
|
2
|
-
|
|
3
|
-
//#region src/commands/segment/index.ts
|
|
4
|
-
var segment_default = defineCommand({
|
|
5
|
-
meta: {
|
|
6
|
-
name: "segment",
|
|
7
|
-
description: "Manage Metabase segments"
|
|
8
|
-
},
|
|
9
|
-
subCommands: {
|
|
10
|
-
list: () => import("./list-D7o0DOZe.mjs").then((mod) => mod.default),
|
|
11
|
-
get: () => import("./get-BxgSKzca.mjs").then((mod) => mod.default),
|
|
12
|
-
create: () => import("./create-ux0yPpq1.mjs").then((mod) => mod.default),
|
|
13
|
-
update: () => import("./update-6IuvkFCk.mjs").then((mod) => mod.default),
|
|
14
|
-
archive: () => import("./archive-BS4U2_gi.mjs").then((mod) => mod.default)
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
//#endregion
|
|
19
|
-
export { segment_default as default };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { defineCommand } from "citty";
|
|
2
|
-
|
|
3
|
-
//#region src/commands/snippet/index.ts
|
|
4
|
-
var snippet_default = defineCommand({
|
|
5
|
-
meta: {
|
|
6
|
-
name: "snippet",
|
|
7
|
-
description: "Manage Metabase native query snippets"
|
|
8
|
-
},
|
|
9
|
-
subCommands: {
|
|
10
|
-
list: () => import("./list-B2QX8BZ3.mjs").then((mod) => mod.default),
|
|
11
|
-
get: () => import("./get-8r-_QuSr.mjs").then((mod) => mod.default),
|
|
12
|
-
create: () => import("./create-Dx1SDXyQ.mjs").then((mod) => mod.default),
|
|
13
|
-
update: () => import("./update-I0t_6Mni.mjs").then((mod) => mod.default),
|
|
14
|
-
archive: () => import("./archive-BrYMa87Z.mjs").then((mod) => mod.default)
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
//#endregion
|
|
19
|
-
export { snippet_default as default };
|
package/dist/table-DNGPtV4P.mjs
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { defineCommand } from "citty";
|
|
2
|
-
|
|
3
|
-
//#region src/commands/table/index.ts
|
|
4
|
-
var table_default = defineCommand({
|
|
5
|
-
meta: {
|
|
6
|
-
name: "table",
|
|
7
|
-
description: "Manage Metabase tables"
|
|
8
|
-
},
|
|
9
|
-
subCommands: {
|
|
10
|
-
list: () => import("./list-De2qX1w8.mjs").then((m) => m.default),
|
|
11
|
-
get: () => import("./get-Cit5liJv.mjs").then((m) => m.default),
|
|
12
|
-
metadata: () => import("./metadata-a_N6Sx30.mjs").then((m) => m.default),
|
|
13
|
-
fields: () => import("./fields-hXrRjf7e.mjs").then((m) => m.default),
|
|
14
|
-
update: () => import("./update-tQvEYuzD.mjs").then((m) => m.default)
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
//#endregion
|
|
19
|
-
export { table_default as default };
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { defineCommand } from "citty";
|
|
2
|
-
|
|
3
|
-
//#region src/commands/transform/index.ts
|
|
4
|
-
var transform_default = defineCommand({
|
|
5
|
-
meta: {
|
|
6
|
-
name: "transform",
|
|
7
|
-
description: "Manage Metabase transforms"
|
|
8
|
-
},
|
|
9
|
-
subCommands: {
|
|
10
|
-
list: () => import("./list-_xdr1WKh.mjs").then((mod) => mod.default),
|
|
11
|
-
get: () => import("./get-cjqlMKF5.mjs").then((mod) => mod.default),
|
|
12
|
-
create: () => import("./create-y4j2I1aH.mjs").then((mod) => mod.default),
|
|
13
|
-
update: () => import("./update-C_Ui5qPU.mjs").then((mod) => mod.default),
|
|
14
|
-
delete: () => import("./delete-CW3cEHlr.mjs").then((mod) => mod.default),
|
|
15
|
-
"delete-table": () => import("./delete-table-Wa0yRsnM.mjs").then((mod) => mod.default),
|
|
16
|
-
run: () => import("./run-CIJOYXor.mjs").then((mod) => mod.default),
|
|
17
|
-
cancel: () => import("./cancel-Br3FHyDR.mjs").then((mod) => mod.default),
|
|
18
|
-
"get-run": () => import("./get-run-CTDPEDcU.mjs").then((mod) => mod.default),
|
|
19
|
-
runs: () => import("./runs--CzbmfPg.mjs").then((mod) => mod.default)
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
//#endregion
|
|
24
|
-
export { transform_default as default };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { defineCommand } from "citty";
|
|
2
|
-
|
|
3
|
-
//#region src/commands/transform-job/index.ts
|
|
4
|
-
var transform_job_default = defineCommand({
|
|
5
|
-
meta: {
|
|
6
|
-
name: "transform-job",
|
|
7
|
-
description: "Manage Metabase transform jobs"
|
|
8
|
-
},
|
|
9
|
-
subCommands: {
|
|
10
|
-
list: () => import("./list-Ctze3nfU.mjs").then((mod) => mod.default),
|
|
11
|
-
get: () => import("./get-C7EKJGTP.mjs").then((mod) => mod.default),
|
|
12
|
-
create: () => import("./create-C1xYECl-.mjs").then((mod) => mod.default),
|
|
13
|
-
update: () => import("./update-DD5Q37bz.mjs").then((mod) => mod.default),
|
|
14
|
-
delete: () => import("./delete-DFWjBpzl.mjs").then((mod) => mod.default)
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
//#endregion
|
|
19
|
-
export { transform_job_default as default };
|
|
File without changes
|
|
File without changes
|