@metabase/cli 0.1.3 → 0.1.4-alpha.skill-packaging.1c8ec40
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 +19 -0
- package/README.md +427 -394
- package/dist/{add-collection-BOnW3n0Z.mjs → add-collection-B3NhkLRT.mjs} +6 -6
- package/dist/{add-collection-CYzLXtm5.mjs → add-collection-CEvZTea_.mjs} +4 -4
- package/dist/{api-key-PuKAaQ7V.mjs → api-key-BpmnzLLb.mjs} +1 -1
- package/dist/{archive-rMwM-zTz.mjs → archive-BPLLOdfL.mjs} +5 -5
- package/dist/{archive-mnPwvARh.mjs → archive-CazAWIrV.mjs} +4 -4
- package/dist/{archive-BO29HssD.mjs → archive-D596Cq7R.mjs} +5 -5
- package/dist/{archive-TLtE0kDm.mjs → archive-DqPqXMZm.mjs} +5 -5
- package/dist/auth-DJp4QoWI.mjs +19 -0
- package/dist/{body-DyJdyUnm.mjs → body-CVSMGqZk.mjs} +1 -1
- package/dist/{branches-DfmU7c7o.mjs → branches--TavvEK1.mjs} +5 -5
- package/dist/{cancel-CMZDt-Oq.mjs → cancel-BUitag4_.mjs} +4 -4
- package/dist/{cancel-task-CgZTaU3M.mjs → cancel-task-BHcWJUMu.mjs} +5 -5
- package/dist/card-DtUIadDM.mjs +20 -0
- package/dist/{cards-CHbQGafh.mjs → cards-Bir6wRS_.mjs} +4 -4
- package/dist/cli.mjs +30 -27
- package/dist/collection-4-gZeCWg.mjs +19 -0
- package/dist/{create-BCuXOmjv.mjs → create-4OjxTGAe.mjs} +7 -7
- package/dist/{create-DxEFGyTl.mjs → create-BISpvrml.mjs} +7 -7
- package/dist/{create-DSYimCdi.mjs → create-Bi8sqzL-.mjs} +10 -10
- package/dist/{create-CicN3zvl.mjs → create-C1cdoSw5.mjs} +9 -9
- package/dist/{create-9Eixx15H.mjs → create-C3TiMJhQ.mjs} +7 -7
- package/dist/{create-C0rMO9hM.mjs → create-CZZc1KM8.mjs} +10 -10
- package/dist/{create-DmoCeGvG.mjs → create-CxMpPsRO.mjs} +6 -6
- package/dist/{create-BBUS1QQj.mjs → create-Dj-fO-nV.mjs} +9 -9
- package/dist/{create-BwTWnEI9.mjs → create-DuyWlx-S.mjs} +7 -7
- package/dist/{create-branch-CyGWseMj.mjs → create-branch-CH1FmnxS.mjs} +5 -5
- package/dist/{create-8Hv7mPeZ.mjs → create-hYdLOyw_.mjs} +9 -9
- package/dist/{credentials-BsyxKKpn.mjs → credentials-BARfQeBr.mjs} +9 -8
- package/dist/{current-task-Cp2TOV2G.mjs → current-task-TX7rJmon.mjs} +5 -5
- package/dist/dashboard-C-azCGk-.mjs +20 -0
- package/dist/{database-u753FytI.mjs → database-BKfGtTmB.mjs} +3 -3
- package/dist/db-D--IArxI.mjs +22 -0
- package/dist/{delete-_9bnRv2O.mjs → delete-BxUaF8kW.mjs} +5 -5
- package/dist/{delete-QRsN6npe.mjs → delete-DzTd5w_y.mjs} +5 -5
- package/dist/{delete-table-DTLdSkjp.mjs → delete-table-DWfA7uVn.mjs} +5 -5
- package/dist/{deprovision-CRV8Isc3.mjs → deprovision-CadXjs_7.mjs} +9 -9
- package/dist/{dirty-CEH3GeaE.mjs → dirty-an-DQtBG.mjs} +5 -5
- package/dist/{docker-BYQ0FHrT.mjs → docker-C9WQCjkt.mjs} +4 -4
- package/dist/{eid-C4-Vk0tN.mjs → eid-Cz9r5RX5.mjs} +1 -1
- package/dist/{export-D7sASe7p.mjs → export-BHq8ztFL.mjs} +8 -8
- package/dist/field-Do1HcUfq.mjs +18 -0
- package/dist/{fields-BcqomXOj.mjs → fields-B21DeL2I.mjs} +4 -4
- package/dist/{get-Cv5O0Nzp.mjs → get-BAqeeIQ-.mjs} +4 -4
- package/dist/{get-C8mOGKNU.mjs → get-BHCgwPPT.mjs} +6 -6
- package/dist/{get-Cw74jQSg.mjs → get-BPah4iYM.mjs} +4 -4
- package/dist/{get-By8D2ZCD.mjs → get-C4_7ZrIS.mjs} +5 -5
- package/dist/{get-C9ddaeGp.mjs → get-CAYnc9sd.mjs} +4 -4
- package/dist/{get-BRwM-_QR.mjs → get-ChEFd1sT.mjs} +5 -5
- package/dist/{get-B3N93OEi.mjs → get-ChxcxY2D.mjs} +5 -5
- package/dist/{get-BrLtlgsJ.mjs → get-Cy9YIesM.mjs} +3 -3
- package/dist/{get-REcs9xfF.mjs → get-D-zU7VmK.mjs} +4 -4
- package/dist/{get-DVTJi4o0.mjs → get-DFm7pR7F.mjs} +6 -6
- package/dist/get-DWttywn_.mjs +79 -0
- package/dist/{get-DGPgyqzM.mjs → get-RPL4h0It.mjs} +6 -6
- package/dist/{get-DNdDX5ON.mjs → get-dqrzLuwA.mjs} +6 -6
- package/dist/{get-run-DY8GOsfI.mjs → get-run-CG3QFs9T.mjs} +5 -5
- package/dist/git-sync-COKsdLkS.mjs +28 -0
- package/dist/{has-remote-changes-Bw_X8TI6.mjs → has-remote-changes-ecra9BFO.mjs} +5 -5
- package/dist/{import-QVwrtIFF.mjs → import-BzOKkYnp.mjs} +8 -8
- package/dist/{is-dirty-BHucbgY2.mjs → is-dirty-7afLBOtn.mjs} +3 -3
- package/dist/is-dirty-Dnw0AHFw.mjs +10 -0
- package/dist/{items-BrLOFmIa.mjs → items-BEWSuEfe.mjs} +7 -7
- package/dist/{license-B3KaSSS3.mjs → license-D3mFdxAq.mjs} +3 -3
- package/dist/{list-CYYq46ca.mjs → list-B5E7LFDb.mjs} +6 -6
- package/dist/{list-YwqpLfkl.mjs → list-B9mEqMZ5.mjs} +3 -3
- package/dist/{list-g2xt5jvY.mjs → list-BJAC356Q.mjs} +5 -5
- package/dist/{list-W_G0Wupl.mjs → list-BOQWvb8b.mjs} +3 -3
- package/dist/{list-D35m483Y.mjs → list-BZFTuiBr.mjs} +4 -4
- package/dist/{list-Dgaxc0kI.mjs → list-By3t67Y8.mjs} +5 -5
- package/dist/{list-B1_XSq0O.mjs → list-ByPzCM2G.mjs} +3 -3
- package/dist/{list-mSYy6xIm.mjs → list-C8b-KxY6.mjs} +6 -6
- package/dist/{list-wyaVSZpU.mjs → list-CiHlWufc.mjs} +4 -4
- package/dist/{list-ThlZXdtA.mjs → list-D_exD3LP.mjs} +5 -5
- package/dist/{list-B8WxxlSA.mjs → list-DiAyv9l3.mjs} +4 -4
- package/dist/{list-HcYQlqJr.mjs → list-DtSOfMZ2.mjs} +4 -4
- package/dist/list-DwF6on6O.mjs +44 -0
- package/dist/{list-Dygi5MBO.mjs → list-nIxzXqr-.mjs} +3 -3
- package/dist/{login-DVBsPahM.mjs → login-Cka2HZWz.mjs} +5 -5
- package/dist/{logout-CPGsbP2z.mjs → logout-rA25M-oa.mjs} +3 -3
- package/dist/{logs-CDdM2nW-.mjs → logs-B5cGXoDi.mjs} +10 -10
- package/dist/measure-CwJ2o89T.mjs +19 -0
- package/dist/{metadata-Djyv6HKF.mjs → metadata-BEd6s_Qf.mjs} +4 -4
- package/dist/{metadata-CpGxasPK.mjs → metadata-DirWO0cS.mjs} +4 -4
- package/dist/{package-BeJ9DFrO.mjs → package-VV3qWWIQ.mjs} +8 -3
- package/dist/{parse-id-DcoC0Z3o.mjs → parse-id-DbSjfzoU.mjs} +1 -1
- package/dist/{parse-schemas-NgeC8-ba.mjs → parse-schemas-BXTlpoaf.mjs} +1 -1
- package/dist/path-DarsuSkB.mjs +58 -0
- package/dist/{poll-CPn_4eae.mjs → poll-Cd8bRMmZ.mjs} +1 -1
- package/dist/{poll-task-YHJL7Q94.mjs → poll-task-BwKuhZ9P.mjs} +2 -2
- package/dist/{preflight-UP6MOkcY.mjs → preflight-RkDLqtNm.mjs} +1 -1
- package/dist/{provision-Cw4yFtn9.mjs → provision-DBqPA-De.mjs} +12 -12
- package/dist/{ps-CmGyds34.mjs → ps-Cn3lzak-.mjs} +3 -3
- package/dist/{ps-D7kAMsc0.mjs → ps-DIm7IScc.mjs} +6 -6
- package/dist/{query-CWM06uYl.mjs → query-BoOismbH.mjs} +10 -10
- package/dist/{query-DXYFK2Dn.mjs → query-CkNa5Nam.mjs} +7 -7
- package/dist/{remove-DtSkkvp3.mjs → remove-B7NUBOqF.mjs} +3 -3
- package/dist/{remove-BJiq8Bna.mjs → remove-C08c3vne.mjs} +7 -7
- package/dist/{remove-collection-CfdSGSSW.mjs → remove-collection-cFO9M-qV.mjs} +7 -7
- package/dist/{rescan-values-DmZSi8y2.mjs → rescan-values-D1-IyyU7.mjs} +4 -4
- package/dist/{revision-message-flag-CWQbKhdl.mjs → revision-message-flag-oyq2xrDU.mjs} +1 -1
- package/dist/{run-By3Hx4Sv.mjs → run-BCzKf_TV.mjs} +7 -7
- package/dist/{runs-OxCc7uCv.mjs → runs-pVgTv7cK.mjs} +7 -7
- package/dist/{runtime-CqLG3Q3o.mjs → runtime-DPdP0sl1.mjs} +4 -4
- package/dist/{schema-tables-gCfMALFX.mjs → schema-tables-c6K9AkS-.mjs} +4 -4
- package/dist/{schemas-CelnP-JJ.mjs → schemas-s3PRMTwc.mjs} +4 -4
- package/dist/{search-Ccc2XHFA.mjs → search-DsF08cm9.mjs} +6 -6
- package/dist/segment-CvPF5gLG.mjs +19 -0
- package/dist/{set-DQoW10tq.mjs → set-BNQjt8S1.mjs} +8 -8
- package/dist/{set-CwZkyHao.mjs → set-DlfevPxG.mjs} +5 -5
- package/dist/{setting-DrI9j2k_.mjs → setting-Cc5FWSNN.mjs} +3 -3
- package/dist/{setup-flXHfxYc.mjs → setup-CIsvZgEA.mjs} +6 -6
- package/dist/skills-CHU7uuDU.mjs +191 -0
- package/dist/skills-Dws-azxD.mjs +18 -0
- package/dist/snippet-W-TaXdio.mjs +19 -0
- package/dist/{start-B6jtccng.mjs → start-xREv6hev.mjs} +17 -16
- package/dist/{stash-Bhp_hRrV.mjs → stash-ZLbOejYk.mjs} +7 -7
- package/dist/{status-fw5qhKyj.mjs → status-CYWbB67d.mjs} +3 -3
- package/dist/{status-DGw7jG9b.mjs → status-DiXaGNmb.mjs} +3 -3
- package/dist/{status-BxWCQzCv.mjs → status-DjRAgzXl.mjs} +6 -6
- package/dist/{stop-x6EOdIVT.mjs → stop-CWKn_jI8.mjs} +8 -8
- package/dist/{summary-Da1JIhhv.mjs → summary-CIFwiame.mjs} +4 -4
- package/dist/{sync-schema-Do916yAq.mjs → sync-schema-_SRMfBSQ.mjs} +4 -4
- package/dist/table-uhBlfNYj.mjs +19 -0
- package/dist/transform-UJ7T_BSb.mjs +24 -0
- package/dist/transform-job-DXs5apQ1.mjs +19 -0
- package/dist/{translate-CEnaytH7.mjs → translate-DVN_sIVb.mjs} +6 -6
- package/dist/{tree-pWV930zt.mjs → tree-BTZfgldu.mjs} +3 -3
- package/dist/{update-CN3LI4St.mjs → update-Bjd7YRyh.mjs} +10 -10
- package/dist/{update-jLIPP2pF.mjs → update-CCFegz4q.mjs} +12 -12
- package/dist/{update-w3N6O04l.mjs → update-CDdML0mE.mjs} +11 -11
- package/dist/{update-DLMn9cXk.mjs → update-CGYM_wWQ.mjs} +9 -9
- package/dist/{update-C-VOpeVi.mjs → update-CYMsVUQX.mjs} +7 -7
- package/dist/{update-Bd-Hk_z8.mjs → update-D48EYMKn.mjs} +7 -7
- package/dist/{update-CA7f8M_E.mjs → update-D6jptFDw.mjs} +11 -11
- package/dist/{update-CvujE0sT.mjs → update-DSjj9UQb.mjs} +12 -12
- package/dist/{update-BncXiS3T.mjs → update-DjfNbEgo.mjs} +8 -8
- package/dist/{update-Db0rN6W1.mjs → update-ZRF-sYqN.mjs} +13 -13
- package/dist/{update-dashcard-C13FmMd8.mjs → update-dashcard-BfcB6pFx.mjs} +7 -7
- package/dist/{upgrade-Cko0ScCj.mjs → upgrade-Cw_mP31_.mjs} +8 -8
- package/dist/{url-BKzUneYx.mjs → url-DsDSVEnK.mjs} +7 -7
- package/dist/{uuid-D9TBeO2v.mjs → uuid-DbtHyH33.mjs} +5 -5
- package/dist/{validate-CLdliJUz.mjs → validate-CB0bu50i.mjs} +2 -2
- package/dist/{validate-query-C34T9ZUr.mjs → validate-query-CavIA0Q2.mjs} +1 -1
- package/dist/{values-CFO1KoS0.mjs → values-C1JRC3O2.mjs} +4 -4
- package/dist/{wait-CM59nNh3.mjs → wait-Ed4Q7ccW.mjs} +2 -2
- package/dist/{wait-h9MABbYJ.mjs → wait-LRmiGepb.mjs} +6 -6
- package/dist/{wait-flags-6QBmhHw9.mjs → wait-flags-pItBfuzi.mjs} +2 -2
- package/dist/workspace-BozpZKez.mjs +24 -0
- package/dist/{workspace-credentials-Cctumbru.mjs → workspace-credentials-4lIxxz4g.mjs} +2 -41
- package/dist/yaml-ECiog374.mjs +43 -0
- package/package.json +6 -3
- package/skill-data/core/SKILL.md +575 -0
- package/skill-data/git-sync/SKILL.md +196 -0
- package/skill-data/transform/SKILL.md +235 -0
- package/skill-data/workspace/SKILL.md +408 -0
- package/skills/metabase-cli/SKILL.md +42 -0
- package/dist/auth-6xSQV9_O.mjs +0 -19
- package/dist/card-BPRuWt1L.mjs +0 -20
- package/dist/collection-ubrm8jOv.mjs +0 -19
- package/dist/dashboard-DMXwndg8.mjs +0 -20
- package/dist/db-Br0VA1nL.mjs +0 -22
- package/dist/field-DN3Mtvjy.mjs +0 -18
- package/dist/git-sync-C3DyWKLP.mjs +0 -28
- package/dist/is-dirty-YZTcIZmy.mjs +0 -10
- package/dist/measure-C-2Zimtc.mjs +0 -19
- package/dist/segment-ZWbF5Lw8.mjs +0 -19
- package/dist/snippet-C7Y7BV-k.mjs +0 -19
- package/dist/table-BsJDzYMc.mjs +0 -19
- package/dist/transform-BFOkT-X-.mjs +0 -24
- package/dist/transform-job-CvAq4Qdm.mjs +0 -19
- package/dist/workspace-AJjCGa9h.mjs +0 -24
- /package/dist/{delete-runtime-BkAdygbs.mjs → delete-runtime-DfFMWJJ6.mjs} +0 -0
- /package/dist/{process-FjsqDwKo.mjs → process-zJeVJZTM.mjs} +0 -0
- /package/dist/{snippet-Dw0Sjzkr.mjs → snippet-CSWqkslB.mjs} +0 -0
- /package/dist/{transform-IEX4Mx3X.mjs → transform-DR4ejuPM.mjs} +0 -0
- /package/dist/{transform-job-Csr86muI.mjs → transform-job-BrhOLO4M.mjs} +0 -0
- /package/dist/{workspace-C5q4nbpY.mjs → workspace-DUfqhPm5.mjs} +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-VV3qWWIQ.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-DuoDUTVL.mjs";
|
|
4
4
|
import { ConfigError } from "./predicates-CGO17Q15.mjs";
|
|
5
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
7
|
-
import { REMOTE_SYNC_PATHS, SyncTask, pollFlags, pollSyncTask, throwIfFailedTask } from "./poll-task-
|
|
8
|
-
import "./poll-
|
|
5
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-DPdP0sl1.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-DbSjfzoU.mjs";
|
|
7
|
+
import { REMOTE_SYNC_PATHS, SyncTask, pollFlags, pollSyncTask, throwIfFailedTask } from "./poll-task-BwKuhZ9P.mjs";
|
|
8
|
+
import "./poll-Cd8bRMmZ.mjs";
|
|
9
9
|
import { z } from "zod";
|
|
10
10
|
|
|
11
11
|
//#region src/commands/git-sync/stash.ts
|
|
@@ -37,7 +37,7 @@ const syncStashView = {
|
|
|
37
37
|
}
|
|
38
38
|
]
|
|
39
39
|
};
|
|
40
|
-
const DEFAULT_STASH_MESSAGE = "Stashed from
|
|
40
|
+
const DEFAULT_STASH_MESSAGE = "Stashed from mb CLI";
|
|
41
41
|
var stash_default = defineMetabaseCommand({
|
|
42
42
|
meta: {
|
|
43
43
|
name: "stash",
|
|
@@ -62,7 +62,7 @@ var stash_default = defineMetabaseCommand({
|
|
|
62
62
|
...pollFlags
|
|
63
63
|
},
|
|
64
64
|
outputSchema: SyncStashResult,
|
|
65
|
-
examples: ["
|
|
65
|
+
examples: ["mb git-sync stash --new-branch wip", "mb git-sync stash --new-branch wip -m \"work in progress\" --json"],
|
|
66
66
|
async run({ args, ctx, getClient }) {
|
|
67
67
|
const newBranch = args.newBranch.trim();
|
|
68
68
|
if (newBranch === "") throw new ConfigError("invalid new-branch: must not be blank");
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-VV3qWWIQ.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-DuoDUTVL.mjs";
|
|
4
4
|
import "./predicates-CGO17Q15.mjs";
|
|
5
|
-
import { account, credentials, defineMetabaseCommand, outputFlags } from "./runtime-
|
|
5
|
+
import { account, credentials, defineMetabaseCommand, outputFlags } from "./runtime-DPdP0sl1.mjs";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
|
|
8
8
|
//#region src/commands/license/status.ts
|
|
@@ -21,7 +21,7 @@ var status_default = defineMetabaseCommand({
|
|
|
21
21
|
},
|
|
22
22
|
args: { ...outputFlags },
|
|
23
23
|
outputSchema: LicenseStatus,
|
|
24
|
-
examples: ["
|
|
24
|
+
examples: ["mb license status", "mb license status --json"],
|
|
25
25
|
async run({ ctx }) {
|
|
26
26
|
const present = await credentials.has(account.license);
|
|
27
27
|
renderItem({ present }, licenseStatusView, ctx);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-VV3qWWIQ.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-DuoDUTVL.mjs";
|
|
4
4
|
import "./predicates-CGO17Q15.mjs";
|
|
5
|
-
import { account, credentials, defineMetabaseCommand, originOnly, outputFlags, profileFlag, resolveProfileName } from "./runtime-
|
|
5
|
+
import { account, credentials, defineMetabaseCommand, originOnly, outputFlags, profileFlag, resolveProfileName } from "./runtime-DPdP0sl1.mjs";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
|
|
8
8
|
//#region src/commands/auth/status.ts
|
|
@@ -38,7 +38,7 @@ var status_default = defineMetabaseCommand({
|
|
|
38
38
|
...profileFlag
|
|
39
39
|
},
|
|
40
40
|
outputSchema: AuthStatus,
|
|
41
|
-
examples: ["
|
|
41
|
+
examples: ["mb auth status --json", "mb auth status --profile staging"],
|
|
42
42
|
async run({ args, ctx }) {
|
|
43
43
|
const profileName = resolveProfileName(args.profile);
|
|
44
44
|
const [url, apiKey] = await Promise.all([credentials.read(account.profileUrl(profileName)), credentials.read(account.profileApiKey(profileName))]);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-VV3qWWIQ.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-DuoDUTVL.mjs";
|
|
4
4
|
import "./predicates-CGO17Q15.mjs";
|
|
5
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
6
|
-
import { REMOTE_SYNC_PATHS, SyncTask, fetchCurrentTask, fetchOptionalParsed } from "./poll-task-
|
|
7
|
-
import "./poll-
|
|
8
|
-
import { IsDirtyResult } from "./is-dirty-
|
|
5
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-DPdP0sl1.mjs";
|
|
6
|
+
import { REMOTE_SYNC_PATHS, SyncTask, fetchCurrentTask, fetchOptionalParsed } from "./poll-task-BwKuhZ9P.mjs";
|
|
7
|
+
import "./poll-Cd8bRMmZ.mjs";
|
|
8
|
+
import { IsDirtyResult } from "./is-dirty-7afLBOtn.mjs";
|
|
9
9
|
import { z } from "zod";
|
|
10
10
|
|
|
11
11
|
//#region src/commands/git-sync/status.ts
|
|
@@ -43,7 +43,7 @@ var status_default = defineMetabaseCommand({
|
|
|
43
43
|
...connectionFlags
|
|
44
44
|
},
|
|
45
45
|
outputSchema: SyncStatus,
|
|
46
|
-
examples: ["
|
|
46
|
+
examples: ["mb git-sync status", "mb git-sync status --json"],
|
|
47
47
|
async run({ ctx, getClient }) {
|
|
48
48
|
const client = await getClient();
|
|
49
49
|
const [branch, isDirty, currentTask] = await Promise.all([
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-VV3qWWIQ.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-DuoDUTVL.mjs";
|
|
4
4
|
import "./predicates-CGO17Q15.mjs";
|
|
5
|
-
import { defineMetabaseCommand, outputFlags } from "./runtime-
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
7
|
-
import "./poll-
|
|
8
|
-
import "./process-
|
|
9
|
-
import { checkDockerReady, containerLifecycleStatus, containerNameFor, stopContainer } from "./docker-
|
|
10
|
-
import { LocalWorkspaceState } from "./ps-
|
|
5
|
+
import { defineMetabaseCommand, outputFlags } from "./runtime-DPdP0sl1.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-DbSjfzoU.mjs";
|
|
7
|
+
import "./poll-Cd8bRMmZ.mjs";
|
|
8
|
+
import "./process-zJeVJZTM.mjs";
|
|
9
|
+
import { checkDockerReady, containerLifecycleStatus, containerNameFor, stopContainer } from "./docker-C9WQCjkt.mjs";
|
|
10
|
+
import { LocalWorkspaceState } from "./ps-Cn3lzak-.mjs";
|
|
11
11
|
import { z } from "zod";
|
|
12
12
|
|
|
13
13
|
//#region src/commands/workspace/stop.ts
|
|
@@ -56,7 +56,7 @@ var stop_default = defineMetabaseCommand({
|
|
|
56
56
|
}
|
|
57
57
|
},
|
|
58
58
|
outputSchema: StopResult,
|
|
59
|
-
examples: ["
|
|
59
|
+
examples: ["mb workspace stop 1", "mb workspace stop 1 --json"],
|
|
60
60
|
async run({ args, ctx }) {
|
|
61
61
|
const workspaceId = parseId(args.id);
|
|
62
62
|
const containerName = containerNameFor(workspaceId);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-VV3qWWIQ.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-DuoDUTVL.mjs";
|
|
4
4
|
import "./predicates-CGO17Q15.mjs";
|
|
5
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
5
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-DPdP0sl1.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-DbSjfzoU.mjs";
|
|
7
7
|
import { FieldSummary, FieldSummaryRaw, fieldSummaryView } from "./field-B3gvaqpK.mjs";
|
|
8
8
|
|
|
9
9
|
//#region src/commands/field/summary.ts
|
|
@@ -23,7 +23,7 @@ var summary_default = defineMetabaseCommand({
|
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
outputSchema: FieldSummary,
|
|
26
|
-
examples: ["
|
|
26
|
+
examples: ["mb field summary 100", "mb field summary 100 --json"],
|
|
27
27
|
async run({ args, ctx, getClient }) {
|
|
28
28
|
const id = parseId(args.id);
|
|
29
29
|
const client = await getClient();
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-VV3qWWIQ.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-DuoDUTVL.mjs";
|
|
4
4
|
import "./predicates-CGO17Q15.mjs";
|
|
5
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
5
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-DPdP0sl1.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-DbSjfzoU.mjs";
|
|
7
7
|
import "./field-B3gvaqpK.mjs";
|
|
8
8
|
import "./table-B-PYcgGb.mjs";
|
|
9
9
|
import { DatabaseSyncResult, databaseSyncResultView } from "./database-vvig8k4x.mjs";
|
|
@@ -27,7 +27,7 @@ var sync_schema_default = defineMetabaseCommand({
|
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
29
|
outputSchema: DatabaseSyncResult,
|
|
30
|
-
examples: ["
|
|
30
|
+
examples: ["mb db sync-schema 1", "mb db sync-schema 1 --json"],
|
|
31
31
|
async run({ args, ctx, getClient }) {
|
|
32
32
|
const id = parseId(args.id);
|
|
33
33
|
const client = await getClient();
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { defineCommand } from "citty";
|
|
2
|
+
|
|
3
|
+
//#region src/commands/table/index.ts
|
|
4
|
+
var table_default = defineCommand({
|
|
5
|
+
meta: {
|
|
6
|
+
name: "table",
|
|
7
|
+
description: "Inspect Metabase tables"
|
|
8
|
+
},
|
|
9
|
+
subCommands: {
|
|
10
|
+
list: () => import("./list-DtSOfMZ2.mjs").then((m) => m.default),
|
|
11
|
+
get: () => import("./get-DFm7pR7F.mjs").then((m) => m.default),
|
|
12
|
+
metadata: () => import("./metadata-BEd6s_Qf.mjs").then((m) => m.default),
|
|
13
|
+
fields: () => import("./fields-B21DeL2I.mjs").then((m) => m.default),
|
|
14
|
+
update: () => import("./update-CYMsVUQX.mjs").then((m) => m.default)
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
export { table_default as default };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { defineCommand } from "citty";
|
|
2
|
+
|
|
3
|
+
//#region src/commands/transform/index.ts
|
|
4
|
+
var transform_default = defineCommand({
|
|
5
|
+
meta: {
|
|
6
|
+
name: "transform",
|
|
7
|
+
description: "Manage Metabase transforms"
|
|
8
|
+
},
|
|
9
|
+
subCommands: {
|
|
10
|
+
list: () => import("./list-CiHlWufc.mjs").then((mod) => mod.default),
|
|
11
|
+
get: () => import("./get-ChxcxY2D.mjs").then((mod) => mod.default),
|
|
12
|
+
create: () => import("./create-Bi8sqzL-.mjs").then((mod) => mod.default),
|
|
13
|
+
update: () => import("./update-DSjj9UQb.mjs").then((mod) => mod.default),
|
|
14
|
+
delete: () => import("./delete-DzTd5w_y.mjs").then((mod) => mod.default),
|
|
15
|
+
"delete-table": () => import("./delete-table-DWfA7uVn.mjs").then((mod) => mod.default),
|
|
16
|
+
run: () => import("./run-BCzKf_TV.mjs").then((mod) => mod.default),
|
|
17
|
+
cancel: () => import("./cancel-BUitag4_.mjs").then((mod) => mod.default),
|
|
18
|
+
"get-run": () => import("./get-run-CG3QFs9T.mjs").then((mod) => mod.default),
|
|
19
|
+
runs: () => import("./runs-pVgTv7cK.mjs").then((mod) => mod.default)
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
24
|
+
export { transform_default as default };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { defineCommand } from "citty";
|
|
2
|
+
|
|
3
|
+
//#region src/commands/transform-job/index.ts
|
|
4
|
+
var transform_job_default = defineCommand({
|
|
5
|
+
meta: {
|
|
6
|
+
name: "transform-job",
|
|
7
|
+
description: "Manage Metabase transform jobs"
|
|
8
|
+
},
|
|
9
|
+
subCommands: {
|
|
10
|
+
list: () => import("./list-BZFTuiBr.mjs").then((mod) => mod.default),
|
|
11
|
+
get: () => import("./get-C4_7ZrIS.mjs").then((mod) => mod.default),
|
|
12
|
+
create: () => import("./create-BISpvrml.mjs").then((mod) => mod.default),
|
|
13
|
+
update: () => import("./update-DjfNbEgo.mjs").then((mod) => mod.default),
|
|
14
|
+
delete: () => import("./delete-BxUaF8kW.mjs").then((mod) => mod.default)
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
export { transform_job_default as default };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-VV3qWWIQ.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-DuoDUTVL.mjs";
|
|
4
4
|
import { ConfigError } from "./predicates-CGO17Q15.mjs";
|
|
5
5
|
import "./input-BQ-BZA8h.mjs";
|
|
6
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, parseCsv, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
6
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, parseCsv, profileFlag } from "./runtime-DPdP0sl1.mjs";
|
|
7
|
+
import { readBody } from "./body-CVSMGqZk.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-BK7J6Daz.mjs";
|
|
9
9
|
import { requireBothOrNeither } from "./flag-pair-Fmcdkrfx.mjs";
|
|
10
10
|
import { z } from "zod";
|
|
@@ -72,9 +72,9 @@ var translate_default = defineMetabaseCommand({
|
|
|
72
72
|
},
|
|
73
73
|
outputSchema: EidTranslateResult,
|
|
74
74
|
examples: [
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"
|
|
75
|
+
"mb eid translate --model card --eids abc123XYZ,def456ABC",
|
|
76
|
+
"mb eid translate --file translate.json",
|
|
77
|
+
"mb eid translate --body '{\"entity_ids\":{\"card\":[\"abc123XYZ\"]}}'"
|
|
78
78
|
],
|
|
79
79
|
async run({ args, ctx, getClient }) {
|
|
80
80
|
const pair = requireBothOrNeither({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-VV3qWWIQ.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { writeJson } from "./render-DuoDUTVL.mjs";
|
|
4
4
|
import { ConfigError } from "./predicates-CGO17Q15.mjs";
|
|
5
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
5
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-DPdP0sl1.mjs";
|
|
6
6
|
import { CollectionTreeNode } from "./collection-B3sPXRLs.mjs";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
|
|
@@ -19,7 +19,7 @@ var tree_default = defineMetabaseCommand({
|
|
|
19
19
|
...connectionFlags
|
|
20
20
|
},
|
|
21
21
|
outputSchema: CollectionTreeResponse,
|
|
22
|
-
examples: ["
|
|
22
|
+
examples: ["mb collection tree", "mb collection tree --json"],
|
|
23
23
|
async run({ ctx, getClient }) {
|
|
24
24
|
if (ctx.format === "text") throw new ConfigError("collection tree output is JSON-only; --format text is not supported");
|
|
25
25
|
const client = await getClient();
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-VV3qWWIQ.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-DuoDUTVL.mjs";
|
|
4
4
|
import "./predicates-CGO17Q15.mjs";
|
|
5
5
|
import "./input-BQ-BZA8h.mjs";
|
|
6
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
6
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-DPdP0sl1.mjs";
|
|
7
|
+
import { readBody } from "./body-CVSMGqZk.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-BK7J6Daz.mjs";
|
|
9
|
-
import { parseId } from "./parse-id-
|
|
9
|
+
import { parseId } from "./parse-id-DbSjfzoU.mjs";
|
|
10
10
|
import "./field-B3gvaqpK.mjs";
|
|
11
11
|
import "./card-CQxvHeyP.mjs";
|
|
12
|
-
import "./validate-
|
|
12
|
+
import "./validate-CB0bu50i.mjs";
|
|
13
13
|
import { DashboardDetail, DashboardUpdateInput, dashboardView } from "./dashboard-CnMD04PQ.mjs";
|
|
14
|
-
import { preflightDashcardCardReferences } from "./preflight-
|
|
14
|
+
import { preflightDashcardCardReferences } from "./preflight-RkDLqtNm.mjs";
|
|
15
15
|
|
|
16
16
|
//#region src/commands/dashboard/update.ts
|
|
17
17
|
var update_default = defineMetabaseCommand({
|
|
@@ -32,10 +32,10 @@ var update_default = defineMetabaseCommand({
|
|
|
32
32
|
},
|
|
33
33
|
outputSchema: DashboardDetail,
|
|
34
34
|
examples: [
|
|
35
|
-
"cat patch.json |
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
35
|
+
"cat patch.json | mb dashboard update 1",
|
|
36
|
+
"mb dashboard update 1 --file patch.json",
|
|
37
|
+
"mb dashboard update 1 --body '{\"name\":\"renamed\"}'",
|
|
38
|
+
"mb dashboard update 1 --body '{\"dashcards\":[{\"id\":-1,\"card_id\":42,\"row\":0,\"col\":0,\"size_x\":12,\"size_y\":6}]}'"
|
|
39
39
|
],
|
|
40
40
|
async run({ args, ctx, getClient }) {
|
|
41
41
|
const id = parseId(args.id);
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-VV3qWWIQ.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-DuoDUTVL.mjs";
|
|
4
4
|
import "./predicates-CGO17Q15.mjs";
|
|
5
5
|
import "./input-BQ-BZA8h.mjs";
|
|
6
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
6
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-DPdP0sl1.mjs";
|
|
7
|
+
import { readBody } from "./body-CVSMGqZk.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-BK7J6Daz.mjs";
|
|
9
|
-
import { parseId } from "./parse-id-
|
|
10
|
-
import "./poll-
|
|
11
|
-
import { parseWaitFlags, waitFlags } from "./wait-flags-
|
|
12
|
-
import { Workspace, WorkspaceUpdateDatabaseInput, workspaceView } from "./workspace-
|
|
13
|
-
import { waitForDatabaseProvisioned } from "./wait-
|
|
14
|
-
import { parseSchemasCsv } from "./parse-schemas-
|
|
9
|
+
import { parseId } from "./parse-id-DbSjfzoU.mjs";
|
|
10
|
+
import "./poll-Cd8bRMmZ.mjs";
|
|
11
|
+
import { parseWaitFlags, waitFlags } from "./wait-flags-pItBfuzi.mjs";
|
|
12
|
+
import { Workspace, WorkspaceUpdateDatabaseInput, workspaceView } from "./workspace-DUfqhPm5.mjs";
|
|
13
|
+
import { waitForDatabaseProvisioned } from "./wait-Ed4Q7ccW.mjs";
|
|
14
|
+
import { parseSchemasCsv } from "./parse-schemas-BXTlpoaf.mjs";
|
|
15
15
|
|
|
16
16
|
//#region src/commands/workspace/database/update.ts
|
|
17
17
|
var update_default = defineMetabaseCommand({
|
|
@@ -42,9 +42,9 @@ var update_default = defineMetabaseCommand({
|
|
|
42
42
|
},
|
|
43
43
|
outputSchema: Workspace,
|
|
44
44
|
examples: [
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
45
|
+
"mb workspace database update 1 5 --schemas analytics,github",
|
|
46
|
+
"mb workspace database update 1 5 --schemas analytics --wait",
|
|
47
|
+
"mb workspace database update 1 5 --file update.json"
|
|
48
48
|
],
|
|
49
49
|
async run({ args, ctx, getClient }) {
|
|
50
50
|
const workspaceId = parseId(args.id);
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-VV3qWWIQ.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-DuoDUTVL.mjs";
|
|
4
4
|
import "./predicates-CGO17Q15.mjs";
|
|
5
5
|
import "./input-BQ-BZA8h.mjs";
|
|
6
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
6
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-DPdP0sl1.mjs";
|
|
7
|
+
import { readBody } from "./body-CVSMGqZk.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-BK7J6Daz.mjs";
|
|
9
|
-
import { parseId } from "./parse-id-
|
|
10
|
-
import "./validate-
|
|
11
|
-
import { SEGMENT_DEFINITION_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-
|
|
9
|
+
import { parseId } from "./parse-id-DbSjfzoU.mjs";
|
|
10
|
+
import "./validate-CB0bu50i.mjs";
|
|
11
|
+
import { SEGMENT_DEFINITION_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-CavIA0Q2.mjs";
|
|
12
12
|
import { Segment, SegmentUpdateInput, segmentView } from "./segment-BMrUBz94.mjs";
|
|
13
13
|
|
|
14
14
|
//#region src/commands/segment/update.ts
|
|
15
15
|
var update_default = defineMetabaseCommand({
|
|
16
16
|
meta: {
|
|
17
17
|
name: "update",
|
|
18
|
-
description: "Update a segment by id; body must include revision_message (audit-logged with the change). If definition is MBQL 5 (lib/type: mbql/query) it is pre-flight-validated against the same schema as `
|
|
18
|
+
description: "Update a segment by id; body must include revision_message (audit-logged with the change). If definition is MBQL 5 (lib/type: mbql/query) it is pre-flight-validated against the same schema as `mb query` (see `mb query --print-schema`)"
|
|
19
19
|
},
|
|
20
20
|
args: {
|
|
21
21
|
...outputFlags,
|
|
@@ -31,10 +31,10 @@ var update_default = defineMetabaseCommand({
|
|
|
31
31
|
},
|
|
32
32
|
outputSchema: Segment,
|
|
33
33
|
examples: [
|
|
34
|
-
"cat patch.json |
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
34
|
+
"cat patch.json | mb segment update 1",
|
|
35
|
+
"mb segment update 1 --file patch.json",
|
|
36
|
+
"mb segment update 1 --body '{\"name\":\"renamed\",\"revision_message\":\"rename\"}'",
|
|
37
|
+
"mb segment update 1 --file patch.json --skip-validate"
|
|
38
38
|
],
|
|
39
39
|
async run({ args, ctx, getClient }) {
|
|
40
40
|
const id = parseId(args.id);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-VV3qWWIQ.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-DuoDUTVL.mjs";
|
|
4
4
|
import "./predicates-CGO17Q15.mjs";
|
|
5
5
|
import "./input-BQ-BZA8h.mjs";
|
|
6
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
6
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-DPdP0sl1.mjs";
|
|
7
|
+
import { readBody } from "./body-CVSMGqZk.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-BK7J6Daz.mjs";
|
|
9
|
-
import { parseId } from "./parse-id-
|
|
10
|
-
import { Snippet, SnippetUpdateInput, snippetView } from "./snippet-
|
|
9
|
+
import { parseId } from "./parse-id-DbSjfzoU.mjs";
|
|
10
|
+
import { Snippet, SnippetUpdateInput, snippetView } from "./snippet-CSWqkslB.mjs";
|
|
11
11
|
|
|
12
12
|
//#region src/commands/snippet/update.ts
|
|
13
13
|
var update_default = defineMetabaseCommand({
|
|
@@ -28,10 +28,10 @@ var update_default = defineMetabaseCommand({
|
|
|
28
28
|
},
|
|
29
29
|
outputSchema: Snippet,
|
|
30
30
|
examples: [
|
|
31
|
-
"cat patch.json |
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
31
|
+
"cat patch.json | mb snippet update 1",
|
|
32
|
+
"mb snippet update 1 --file patch.json",
|
|
33
|
+
"mb snippet update 1 --body '{\"name\":\"renamed\"}'",
|
|
34
|
+
"mb snippet update 1 --body '{\"archived\":true}'"
|
|
35
35
|
],
|
|
36
36
|
async run({ args, ctx, getClient }) {
|
|
37
37
|
const id = parseId(args.id);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-VV3qWWIQ.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-DuoDUTVL.mjs";
|
|
4
4
|
import "./predicates-CGO17Q15.mjs";
|
|
5
5
|
import "./input-BQ-BZA8h.mjs";
|
|
6
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
6
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-DPdP0sl1.mjs";
|
|
7
|
+
import { readBody } from "./body-CVSMGqZk.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-BK7J6Daz.mjs";
|
|
9
|
-
import { parseId } from "./parse-id-
|
|
9
|
+
import { parseId } from "./parse-id-DbSjfzoU.mjs";
|
|
10
10
|
import "./field-B3gvaqpK.mjs";
|
|
11
11
|
import { Table, TableUpdateInput, tableView } from "./table-B-PYcgGb.mjs";
|
|
12
12
|
|
|
@@ -29,9 +29,9 @@ var update_default = defineMetabaseCommand({
|
|
|
29
29
|
},
|
|
30
30
|
outputSchema: Table,
|
|
31
31
|
examples: [
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"cat patch.json |
|
|
32
|
+
"mb table update 42 --body '{\"display_name\":\"Customers\"}'",
|
|
33
|
+
"mb table update 42 --file patch.json",
|
|
34
|
+
"cat patch.json | mb table update 42"
|
|
35
35
|
],
|
|
36
36
|
async run({ args, ctx, getClient }) {
|
|
37
37
|
const id = parseId(args.id);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-VV3qWWIQ.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-DuoDUTVL.mjs";
|
|
4
4
|
import "./predicates-CGO17Q15.mjs";
|
|
5
5
|
import "./input-BQ-BZA8h.mjs";
|
|
6
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
6
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-DPdP0sl1.mjs";
|
|
7
|
+
import { readBody } from "./body-CVSMGqZk.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-BK7J6Daz.mjs";
|
|
9
|
-
import { parseId } from "./parse-id-
|
|
9
|
+
import { parseId } from "./parse-id-DbSjfzoU.mjs";
|
|
10
10
|
import { Field, FieldUpdateInput, fieldView } from "./field-B3gvaqpK.mjs";
|
|
11
11
|
|
|
12
12
|
//#region src/commands/field/update.ts
|
|
@@ -28,9 +28,9 @@ var update_default = defineMetabaseCommand({
|
|
|
28
28
|
},
|
|
29
29
|
outputSchema: Field,
|
|
30
30
|
examples: [
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"cat patch.json |
|
|
31
|
+
"mb field update 100 --body '{\"description\":\"customer email\"}'",
|
|
32
|
+
"mb field update 100 --file patch.json",
|
|
33
|
+
"cat patch.json | mb field update 100"
|
|
34
34
|
],
|
|
35
35
|
async run({ args, ctx, getClient }) {
|
|
36
36
|
const id = parseId(args.id);
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-VV3qWWIQ.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-DuoDUTVL.mjs";
|
|
4
4
|
import "./predicates-CGO17Q15.mjs";
|
|
5
5
|
import "./input-BQ-BZA8h.mjs";
|
|
6
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
6
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-DPdP0sl1.mjs";
|
|
7
|
+
import { readBody } from "./body-CVSMGqZk.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-BK7J6Daz.mjs";
|
|
9
|
-
import { parseId } from "./parse-id-
|
|
10
|
-
import "./validate-
|
|
11
|
-
import { MEASURE_DEFINITION_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-
|
|
9
|
+
import { parseId } from "./parse-id-DbSjfzoU.mjs";
|
|
10
|
+
import "./validate-CB0bu50i.mjs";
|
|
11
|
+
import { MEASURE_DEFINITION_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-CavIA0Q2.mjs";
|
|
12
12
|
import { Measure, MeasureUpdateInput, measureView } from "./measure-BEQfnLdN.mjs";
|
|
13
13
|
|
|
14
14
|
//#region src/commands/measure/update.ts
|
|
15
15
|
var update_default = defineMetabaseCommand({
|
|
16
16
|
meta: {
|
|
17
17
|
name: "update",
|
|
18
|
-
description: "Update a measure by id; body must include revision_message (audit-logged with the change). If definition is MBQL 5 (lib/type: mbql/query) it is pre-flight-validated against the same schema as `
|
|
18
|
+
description: "Update a measure by id; body must include revision_message (audit-logged with the change). If definition is MBQL 5 (lib/type: mbql/query) it is pre-flight-validated against the same schema as `mb query` (see `mb query --print-schema`)"
|
|
19
19
|
},
|
|
20
20
|
args: {
|
|
21
21
|
...outputFlags,
|
|
@@ -31,10 +31,10 @@ var update_default = defineMetabaseCommand({
|
|
|
31
31
|
},
|
|
32
32
|
outputSchema: Measure,
|
|
33
33
|
examples: [
|
|
34
|
-
"cat patch.json |
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
34
|
+
"cat patch.json | mb measure update 1",
|
|
35
|
+
"mb measure update 1 --file patch.json",
|
|
36
|
+
"mb measure update 1 --body '{\"name\":\"renamed\",\"revision_message\":\"rename\"}'",
|
|
37
|
+
"mb measure update 1 --file patch.json --skip-validate"
|
|
38
38
|
],
|
|
39
39
|
async run({ args, ctx, getClient }) {
|
|
40
40
|
const id = parseId(args.id);
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-VV3qWWIQ.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-DuoDUTVL.mjs";
|
|
4
4
|
import "./predicates-CGO17Q15.mjs";
|
|
5
5
|
import "./input-BQ-BZA8h.mjs";
|
|
6
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
6
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-DPdP0sl1.mjs";
|
|
7
|
+
import { readBody } from "./body-CVSMGqZk.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-BK7J6Daz.mjs";
|
|
9
|
-
import { parseId } from "./parse-id-
|
|
10
|
-
import "./validate-
|
|
11
|
-
import { TRANSFORM_SOURCE_QUERY_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-
|
|
12
|
-
import { Transform, TransformUpdateInput, transformView } from "./transform-
|
|
9
|
+
import { parseId } from "./parse-id-DbSjfzoU.mjs";
|
|
10
|
+
import "./validate-CB0bu50i.mjs";
|
|
11
|
+
import { TRANSFORM_SOURCE_QUERY_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-CavIA0Q2.mjs";
|
|
12
|
+
import { Transform, TransformUpdateInput, transformView } from "./transform-DR4ejuPM.mjs";
|
|
13
13
|
|
|
14
14
|
//#region src/commands/transform/update.ts
|
|
15
15
|
var update_default = defineMetabaseCommand({
|
|
16
16
|
meta: {
|
|
17
17
|
name: "update",
|
|
18
|
-
description: "Update a transform by id; if source is provided with type `query` and source.query is MBQL 5 (lib/type: mbql/query) it is pre-flight-validated against the same schema as `
|
|
18
|
+
description: "Update a transform by id; if source is provided with type `query` and source.query is MBQL 5 (lib/type: mbql/query) it is pre-flight-validated against the same schema as `mb query` (see `mb query --print-schema`)"
|
|
19
19
|
},
|
|
20
20
|
args: {
|
|
21
21
|
...outputFlags,
|
|
@@ -31,10 +31,10 @@ var update_default = defineMetabaseCommand({
|
|
|
31
31
|
},
|
|
32
32
|
outputSchema: Transform,
|
|
33
33
|
examples: [
|
|
34
|
-
"cat patch.json |
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
34
|
+
"cat patch.json | mb transform update 1",
|
|
35
|
+
"mb transform update 1 --file patch.json",
|
|
36
|
+
"mb transform update 1 --body '{\"name\":\"renamed\"}'",
|
|
37
|
+
"mb transform update 1 --file patch.json --skip-validate"
|
|
38
38
|
],
|
|
39
39
|
async run({ args, ctx, getClient }) {
|
|
40
40
|
const id = parseId(args.id);
|