@metabase/cli 0.1.0-alpha.workspaces-commands.818a8f1 → 0.1.0-alpha.workspaces-commands.9af92d7
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 +129 -0
- package/dist/{api-key-D9XxErQn.mjs → api-key-U35bYysN.mjs} +1 -1
- package/dist/{archive-BPG5c88Y.mjs → archive-t98qQCTg.mjs} +6 -5
- package/dist/{auth--Hpjwlaf.mjs → auth-Pmzzbl9X.mjs} +3 -3
- package/dist/{body-DwU2s6Pg.mjs → body-qjVMvNjF.mjs} +3 -2
- package/dist/{branches-BbcoJXfp.mjs → branches-GR_uFakd.mjs} +6 -5
- package/dist/{cancel-task-BDas45YO.mjs → cancel-task-Bx4unmzB.mjs} +6 -5
- package/dist/card-CY60jlXc.mjs +19 -0
- package/dist/cards-CvXNClLR.mjs +37 -0
- package/dist/cli.mjs +19 -17
- package/dist/create-78zUdOrE.mjs +48 -0
- package/dist/{create-DpnjQvPw.mjs → create-A8ixnCEp.mjs} +8 -7
- package/dist/create-CT8GaHhd.mjs +44 -0
- package/dist/create-DOsPeHvv.mjs +47 -0
- package/dist/{create-CCzsCZMm.mjs → create-DRSgnSTg.mjs} +8 -7
- package/dist/{create-branch-sDttBORB.mjs → create-branch-95PKGg4J.mjs} +6 -5
- package/dist/{create-Bd_U1zWU.mjs → create-klUmZ4qb.mjs} +9 -8
- package/dist/{credentials-C0xKke5D.mjs → credentials-h6gwy6KC.mjs} +8 -7
- package/dist/{current-task-BGt1mqaX.mjs → current-task-CKTHTDJ-.mjs} +6 -5
- package/dist/dashboard-BVEiysxL.mjs +20 -0
- package/dist/dashboard-DVCLGg3X.mjs +152 -0
- package/dist/{database-4V1iiPEx.mjs → database-VBWFKoFw.mjs} +3 -3
- package/dist/{db-Dm2u2ISJ.mjs → db-BNIiulL8.mjs} +2 -2
- package/dist/{delete-DRBTgyus.mjs → delete-Dgw7tuwF.mjs} +7 -6
- package/dist/{delete-DUC_stoL.mjs → delete-SpvnjwpH.mjs} +7 -6
- package/dist/{delete-runtime-inOVw3IX.mjs → delete-runtime-ZDxlvZa6.mjs} +3 -3
- package/dist/{delete-table-9Is631O_.mjs → delete-table-BXmFReAx.mjs} +7 -6
- package/dist/{deprovision-BAMzZc6f.mjs → deprovision-Cay-ixJs.mjs} +11 -10
- package/dist/{dirty-CLjHbz6J.mjs → dirty-CNjg0YSW.mjs} +6 -5
- package/dist/{docker-QWVMG2gl.mjs → docker-D2GAMpHR.mjs} +3 -2
- package/dist/{eid-BNhutC1U.mjs → eid-CLOyMi0C.mjs} +1 -1
- package/dist/errors-C6w1eZ1F.mjs +101 -0
- package/dist/{export-D2Anfu3p.mjs → export-D2PP3RlE.mjs} +7 -6
- package/dist/{field-Dhs2AND3.mjs → field-D9nztsQP.mjs} +1 -1
- package/dist/{flag-pair-CWvvzDJ_.mjs → flag-pair-Dz-mbq0z.mjs} +1 -1
- package/dist/{get-CAPLfawI.mjs → get-B32KbqqV.mjs} +6 -5
- package/dist/{get-2po1uv9i.mjs → get-B6PHgITW.mjs} +6 -5
- package/dist/{get-BHJA78zg.mjs → get-Bc0yqaS1.mjs} +6 -5
- package/dist/{get-CAVVmdMX.mjs → get-BzfjbJ1f.mjs} +6 -5
- package/dist/{get-DhIoNeOp.mjs → get-CW0uHmFb.mjs} +6 -5
- package/dist/{get-qPOsuTPw.mjs → get-DtsLPlhf.mjs} +6 -5
- package/dist/{get-DDWpubE8.mjs → get-gZ5sQoS9.mjs} +7 -6
- package/dist/get-qXYTmiCW.mjs +40 -0
- package/dist/{has-remote-changes-DAL5jetW.mjs → has-remote-changes-BjdywTVP.mjs} +6 -5
- package/dist/{import-CUMxUfSF.mjs → import-CVOFq6HN.mjs} +7 -6
- package/dist/{input-BNqSFl38.mjs → input-DkgCMNA9.mjs} +1 -1
- package/dist/is-dirty-79hBpoVR.mjs +10 -0
- package/dist/{is-dirty-B10S6MG0.mjs → is-dirty-DgxNJz79.mjs} +3 -3
- package/dist/{key-CyhOpgWt.mjs → key-CpWh7W8M.mjs} +1 -1
- package/dist/{license-DtsGJi3l.mjs → license-B2eNHmdg.mjs} +3 -3
- package/dist/list-AcUuhDxS.mjs +47 -0
- package/dist/{list-DeFGwhhJ.mjs → list-B0durHcU.mjs} +5 -4
- package/dist/{list-qetY9OIN.mjs → list-B6LmdzL6.mjs} +5 -4
- package/dist/{list-Y7iGsOfE.mjs → list-B9ppD-U5.mjs} +5 -4
- package/dist/{list-evtQS7jl.mjs → list-CW20Zfq-.mjs} +5 -4
- package/dist/{list-C5MGydGU.mjs → list-Cw0Geehz.mjs} +5 -4
- package/dist/{list-B8s7Qnzk.mjs → list-DEW7ZHzy.mjs} +5 -4
- package/dist/{list-OBx5B3gd.mjs → list-bSb_Y5k9.mjs} +7 -6
- package/dist/{login-Dqw9ZtCx.mjs → login-ChQ9J6Ne.mjs} +6 -5
- package/dist/{logout-DwYJ5OUi.mjs → logout-Cit2O74l.mjs} +5 -4
- package/dist/{logs-B_lrY7Js.mjs → logs-Ca_YA7A6.mjs} +6 -5
- package/dist/{manifest-wzEFG0JB.mjs → manifest-IMg51yb7.mjs} +3 -7
- package/dist/{package-t8dKf4m_.mjs → package-CVNZnqz9.mjs} +6 -1
- package/dist/{parse-id-C1prc9US.mjs → parse-id-YyyUbzvS.mjs} +1 -1
- package/dist/{poll-D2sXM5rc.mjs → poll-CxWRi3iY.mjs} +2 -1
- package/dist/{poll-task-Byiunmaj.mjs → poll-task-DdXgrDJf.mjs} +2 -2
- package/dist/{prompt-fXeNtj0M.mjs → prompt-D8p00XDp.mjs} +1 -1
- package/dist/{provision-DC4_HWZD.mjs → provision-CV30W4mk.mjs} +12 -11
- package/dist/ps-B9-TFn7r.mjs +10 -0
- package/dist/{ps-BiOrecEe.mjs → ps-BR36xoRT.mjs} +3 -3
- package/dist/query-DmeLeLlh.mjs +93 -0
- package/dist/{query-BnGVGeM3.mjs → query-Dnlo_5UK.mjs} +6 -5
- package/dist/{remove-Bx48o-0S.mjs → remove-ChoQTtcC.mjs} +5 -4
- package/dist/{remove-DecoZzNd.mjs → remove-DfVVf1N9.mjs} +8 -7
- package/dist/{render-DlBijc5i.mjs → render-CZNR2MNK.mjs} +5 -2
- package/dist/{run-D4NgvaRh.mjs → run-BiXybcsl.mjs} +8 -7
- package/dist/{runtime-DUgFfYkN.mjs → runtime-DR8NwmQU.mjs} +7 -104
- package/dist/{search-4wKx5ug2.mjs → search-0cjOmsQu.mjs} +5 -4
- package/dist/{set-DCjrmTFm.mjs → set-BeVw7OX5.mjs} +8 -7
- package/dist/{set-BZnCRL4c.mjs → set-CLsmPD8_.mjs} +6 -5
- package/dist/{setting-C4vQSqer.mjs → setting-DEhllKkK.mjs} +3 -3
- package/dist/{setup-Dqh9hN6l.mjs → setup-BYL5Yagu.mjs} +7 -6
- package/dist/{start-xXQypG5L.mjs → start-BdAhhZYt.mjs} +9 -8
- package/dist/{stash-ZZkmW_V7.mjs → stash-Ca63-mCs.mjs} +7 -6
- package/dist/{status-9KAPIpX8.mjs → status-Bt6rZDLa.mjs} +4 -3
- package/dist/{status-JH6BZppo.mjs → status-D7Ihw-lN.mjs} +4 -3
- package/dist/{status-DezF-PIM.mjs → status-cZiC8-t_.mjs} +7 -6
- package/dist/{stop-br-ZOnve.mjs → stop-BDeCLqh0.mjs} +8 -7
- package/dist/sync-BZPts11d.mjs +26 -0
- package/dist/{table-BvAr2ixC.mjs → table-BbNgtqbd.mjs} +1 -1
- package/dist/{table-D-Mb5Nvw.mjs → table-CjnruP5H.mjs} +2 -2
- package/dist/transform-BXF9B-hF.mjs +21 -0
- package/dist/transform-job-DDsjt-4N.mjs +19 -0
- package/dist/{translate-DJxDVAE4.mjs → translate-oHz4-5o0.mjs} +8 -7
- package/dist/{update-DYVeVjk2.mjs → update-BqI8hYNO.mjs} +12 -11
- package/dist/update-CLXVmkyr.mjs +52 -0
- package/dist/{update-DxKlQ0hP.mjs → update-Dtu0CHTJ.mjs} +9 -8
- package/dist/update-WFBs9Nfq.mjs +55 -0
- package/dist/update-dashcard-BSf1-SfK.mjs +67 -0
- package/dist/{url-DP88YHNo.mjs → url-B0Bc70KV.mjs} +7 -6
- package/dist/validate-query-DE4UouY3.mjs +1521 -0
- package/dist/{wait-DwZN3ZwR.mjs → wait-DFI3pf6P.mjs} +2 -2
- package/dist/{wait-Cj_8wu4y.mjs → wait-Dkbfo1eS.mjs} +7 -6
- package/dist/{wait-flags-CjW4ogUJ.mjs → wait-flags-BIVgwvUI.mjs} +2 -2
- package/dist/workspace-Bv7qoaJi.mjs +24 -0
- package/dist/{workspace-credentials-q5RRFMT8.mjs → workspace-credentials-BxrU2xZb.mjs} +1 -1
- package/package.json +6 -1
- package/dist/card-D4zZSPUb.mjs +0 -19
- package/dist/create-CwVcoq0O.mjs +0 -43
- package/dist/create-_UOeEXAj.mjs +0 -39
- package/dist/is-dirty-CUuq-aB6.mjs +0 -9
- package/dist/ps-1bZKIwWh.mjs +0 -9
- package/dist/sync-C7VOWD00.mjs +0 -26
- package/dist/transform-CqxZwhGs.mjs +0 -21
- package/dist/transform-job-HjbqjEoP.mjs +0 -19
- package/dist/update-CDtm71m2.mjs +0 -50
- package/dist/workspace-CbwR0vX_.mjs +0 -24
- /package/dist/{body-flags-7oqLhu5j.mjs → body-flags-BK7J6Daz.mjs} +0 -0
- /package/dist/{card-C31pGtBZ.mjs → card-2XdaHHSS.mjs} +0 -0
- /package/dist/{database-BTX5qbSv.mjs → database-B9-7QAXE.mjs} +0 -0
- /package/dist/{field-QwBMAWsq.mjs → field-D_g4xvH9.mjs} +0 -0
- /package/dist/{setting-DM7pm7yh.mjs → setting-Bm84ixxW.mjs} +0 -0
- /package/dist/{transform-DfVkUttP.mjs → transform-CRRW0mFp.mjs} +0 -0
- /package/dist/{transform-job-DuB_OjhO.mjs → transform-job-BtCoVYsb.mjs} +0 -0
- /package/dist/{workspace-Dr9lWU3D.mjs → workspace-C3tGVQ6_.mjs} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { pollUntil } from "./poll-
|
|
2
|
-
import { Workspace } from "./workspace-
|
|
1
|
+
import { pollUntil } from "./poll-CxWRi3iY.mjs";
|
|
2
|
+
import { Workspace } from "./workspace-C3tGVQ6_.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/commands/workspace/database/wait.ts
|
|
5
5
|
async function waitForDatabaseProvisioned(client, workspaceId, databaseId, schedule) {
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-CVNZnqz9.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderItem } from "./render-
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
3
|
+
import { renderItem } from "./render-CZNR2MNK.mjs";
|
|
4
|
+
import "./errors-C6w1eZ1F.mjs";
|
|
5
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-DR8NwmQU.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-YyyUbzvS.mjs";
|
|
7
|
+
import { SyncTaskOrIdle, pollSyncTask, syncTaskIdleView, syncTaskView, throwIfFailedTask } from "./poll-task-DdXgrDJf.mjs";
|
|
8
|
+
import { DEFAULT_INTERVAL_MS, DEFAULT_TIMEOUT_MS } from "./poll-CxWRi3iY.mjs";
|
|
8
9
|
|
|
9
10
|
//#region src/commands/sync/wait.ts
|
|
10
11
|
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-YyyUbzvS.mjs";
|
|
2
|
+
import { DEFAULT_INTERVAL_MS, DEFAULT_TIMEOUT_MS } from "./poll-CxWRi3iY.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/commands/wait-flags.ts
|
|
5
5
|
const waitFlags = {
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { defineCommand } from "citty";
|
|
2
|
+
|
|
3
|
+
//#region src/commands/workspace/index.ts
|
|
4
|
+
var workspace_default = defineCommand({
|
|
5
|
+
meta: {
|
|
6
|
+
name: "workspace",
|
|
7
|
+
description: "Manage Metabase workspaces (workspace-manager)"
|
|
8
|
+
},
|
|
9
|
+
subCommands: {
|
|
10
|
+
list: () => import("./list-DEW7ZHzy.mjs").then((mod) => mod.default),
|
|
11
|
+
create: () => import("./create-DRSgnSTg.mjs").then((mod) => mod.default),
|
|
12
|
+
database: () => import("./database-VBWFKoFw.mjs").then((mod) => mod.default),
|
|
13
|
+
start: () => import("./start-BdAhhZYt.mjs").then((mod) => mod.default),
|
|
14
|
+
stop: () => import("./stop-BDeCLqh0.mjs").then((mod) => mod.default),
|
|
15
|
+
remove: () => import("./remove-DfVVf1N9.mjs").then((mod) => mod.default),
|
|
16
|
+
logs: () => import("./logs-Ca_YA7A6.mjs").then((mod) => mod.default),
|
|
17
|
+
url: () => import("./url-B0Bc70KV.mjs").then((mod) => mod.default),
|
|
18
|
+
credentials: () => import("./credentials-h6gwy6KC.mjs").then((mod) => mod.default),
|
|
19
|
+
ps: () => import("./ps-B9-TFn7r.mjs").then((mod) => mod.default)
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
24
|
+
export { workspace_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ConfigError, ValidationError, errorMessage } from "./
|
|
1
|
+
import { ConfigError, ValidationError, errorMessage } from "./errors-C6w1eZ1F.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { randomBytes } from "node:crypto";
|
|
4
4
|
import { YAMLParseError, parse, stringify } from "yaml";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metabase/cli",
|
|
3
|
-
"version": "0.1.0-alpha.workspaces-commands.
|
|
3
|
+
"version": "0.1.0-alpha.workspaces-commands.9af92d7",
|
|
4
4
|
"description": "Metabase CLI",
|
|
5
5
|
"license": "AGPL-3.0",
|
|
6
6
|
"repository": {
|
|
@@ -35,20 +35,25 @@
|
|
|
35
35
|
"lint:fix": "oxlint --fix",
|
|
36
36
|
"format": "oxfmt",
|
|
37
37
|
"format:check": "oxfmt --check",
|
|
38
|
+
"sync:representations": "bun run scripts/sync-representations.ts",
|
|
38
39
|
"prepublishOnly": "tsdown && publint"
|
|
39
40
|
},
|
|
40
41
|
"dependencies": {
|
|
41
42
|
"@clack/prompts": "^0.8.2",
|
|
42
43
|
"@napi-rs/keyring": "^1.3.0",
|
|
44
|
+
"ajv": "^8.17.1",
|
|
45
|
+
"ajv-formats": "^3.0.1",
|
|
43
46
|
"citty": "^0.2.2",
|
|
44
47
|
"cli-table3": "^0.6.5",
|
|
45
48
|
"yaml": "^2.8.4",
|
|
46
49
|
"zod": "^4.0.0"
|
|
47
50
|
},
|
|
48
51
|
"devDependencies": {
|
|
52
|
+
"@types/js-yaml": "^4.0.9",
|
|
49
53
|
"@types/node": "^22.10.0",
|
|
50
54
|
"execa": "^9.5.2",
|
|
51
55
|
"fast-check": "^4.7.0",
|
|
56
|
+
"js-yaml": "^4.1.0",
|
|
52
57
|
"oxfmt": "^0.47.0",
|
|
53
58
|
"oxlint": "^1.62.0",
|
|
54
59
|
"publint": "^0.3.0",
|
package/dist/card-D4zZSPUb.mjs
DELETED
|
@@ -1,19 +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-DeFGwhhJ.mjs").then((mod) => mod.default),
|
|
11
|
-
get: () => import("./get-CAPLfawI.mjs").then((mod) => mod.default),
|
|
12
|
-
query: () => import("./query-BnGVGeM3.mjs").then((mod) => mod.default),
|
|
13
|
-
create: () => import("./create-CwVcoq0O.mjs").then((mod) => mod.default),
|
|
14
|
-
archive: () => import("./archive-BPG5c88Y.mjs").then((mod) => mod.default)
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
//#endregion
|
|
19
|
-
export { card_default as default };
|
package/dist/create-CwVcoq0O.mjs
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import "./package-t8dKf4m_.mjs";
|
|
2
|
-
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderItem } from "./render-DlBijc5i.mjs";
|
|
4
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-DUgFfYkN.mjs";
|
|
5
|
-
import "./input-BNqSFl38.mjs";
|
|
6
|
-
import { readBody } from "./body-DwU2s6Pg.mjs";
|
|
7
|
-
import { bodyInputFlags } from "./body-flags-7oqLhu5j.mjs";
|
|
8
|
-
import { Card, CardCreateInput, cardView } from "./card-C31pGtBZ.mjs";
|
|
9
|
-
|
|
10
|
-
//#region src/commands/card/create.ts
|
|
11
|
-
var create_default = defineMetabaseCommand({
|
|
12
|
-
meta: {
|
|
13
|
-
name: "create",
|
|
14
|
-
description: "Create a card from a JSON spec"
|
|
15
|
-
},
|
|
16
|
-
args: {
|
|
17
|
-
...outputFlags,
|
|
18
|
-
...profileFlag,
|
|
19
|
-
...connectionFlags,
|
|
20
|
-
...bodyInputFlags
|
|
21
|
-
},
|
|
22
|
-
outputSchema: Card,
|
|
23
|
-
examples: [
|
|
24
|
-
"cat card.json | metabase card create",
|
|
25
|
-
"metabase card create --file card.json",
|
|
26
|
-
"metabase card create --body '{\"name\":\"x\",\"display\":\"table\",\"dataset_query\":{...},\"visualization_settings\":{}}'"
|
|
27
|
-
],
|
|
28
|
-
async run({ args, ctx, getClient }) {
|
|
29
|
-
const body = await readBody({
|
|
30
|
-
flag: args.body,
|
|
31
|
-
file: args.file
|
|
32
|
-
}, CardCreateInput);
|
|
33
|
-
const client = await getClient();
|
|
34
|
-
const created = await client.requestParsed(Card, "/api/card", {
|
|
35
|
-
method: "POST",
|
|
36
|
-
body
|
|
37
|
-
});
|
|
38
|
-
renderItem(created, cardView, ctx);
|
|
39
|
-
}
|
|
40
|
-
});
|
|
41
|
-
|
|
42
|
-
//#endregion
|
|
43
|
-
export { create_default as default };
|
package/dist/create-_UOeEXAj.mjs
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import "./package-t8dKf4m_.mjs";
|
|
2
|
-
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderItem } from "./render-DlBijc5i.mjs";
|
|
4
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-DUgFfYkN.mjs";
|
|
5
|
-
import "./input-BNqSFl38.mjs";
|
|
6
|
-
import { readBody } from "./body-DwU2s6Pg.mjs";
|
|
7
|
-
import { bodyInputFlags } from "./body-flags-7oqLhu5j.mjs";
|
|
8
|
-
import { Transform, TransformCreateInput, transformView } from "./transform-DfVkUttP.mjs";
|
|
9
|
-
|
|
10
|
-
//#region src/commands/transform/create.ts
|
|
11
|
-
var create_default = defineMetabaseCommand({
|
|
12
|
-
meta: {
|
|
13
|
-
name: "create",
|
|
14
|
-
description: "Create a transform"
|
|
15
|
-
},
|
|
16
|
-
args: {
|
|
17
|
-
...outputFlags,
|
|
18
|
-
...profileFlag,
|
|
19
|
-
...connectionFlags,
|
|
20
|
-
...bodyInputFlags
|
|
21
|
-
},
|
|
22
|
-
outputSchema: Transform,
|
|
23
|
-
examples: ["cat transform.json | metabase transform create", "metabase transform create --file transform.json"],
|
|
24
|
-
async run({ args, ctx, getClient }) {
|
|
25
|
-
const body = await readBody({
|
|
26
|
-
flag: args.body,
|
|
27
|
-
file: args.file
|
|
28
|
-
}, TransformCreateInput);
|
|
29
|
-
const client = await getClient();
|
|
30
|
-
const created = await client.requestParsed(Transform, "/api/transform", {
|
|
31
|
-
method: "POST",
|
|
32
|
-
body
|
|
33
|
-
});
|
|
34
|
-
renderItem(created, transformView, ctx);
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
|
|
38
|
-
//#endregion
|
|
39
|
-
export { create_default as default };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import "./package-t8dKf4m_.mjs";
|
|
2
|
-
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import "./render-DlBijc5i.mjs";
|
|
4
|
-
import "./runtime-DUgFfYkN.mjs";
|
|
5
|
-
import "./poll-task-Byiunmaj.mjs";
|
|
6
|
-
import "./poll-D2sXM5rc.mjs";
|
|
7
|
-
import { IsDirtyResult, is_dirty_default } from "./is-dirty-B10S6MG0.mjs";
|
|
8
|
-
|
|
9
|
-
export { is_dirty_default as default };
|
package/dist/ps-1bZKIwWh.mjs
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import "./package-t8dKf4m_.mjs";
|
|
2
|
-
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import "./render-DlBijc5i.mjs";
|
|
4
|
-
import "./runtime-DUgFfYkN.mjs";
|
|
5
|
-
import "./poll-D2sXM5rc.mjs";
|
|
6
|
-
import "./docker-QWVMG2gl.mjs";
|
|
7
|
-
import { LocalWorkspace, LocalWorkspaceCompact, LocalWorkspaceListEnvelope, LocalWorkspaceState, localWorkspaceView, ps_default } from "./ps-BiOrecEe.mjs";
|
|
8
|
-
|
|
9
|
-
export { ps_default as default };
|
package/dist/sync-C7VOWD00.mjs
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { defineCommand } from "citty";
|
|
2
|
-
|
|
3
|
-
//#region src/commands/sync/index.ts
|
|
4
|
-
var sync_default = defineCommand({
|
|
5
|
-
meta: {
|
|
6
|
-
name: "sync",
|
|
7
|
-
description: "Remote-sync operations (import, export, status, branches)"
|
|
8
|
-
},
|
|
9
|
-
subCommands: {
|
|
10
|
-
status: () => import("./status-DezF-PIM.mjs").then((mod) => mod.default),
|
|
11
|
-
"is-dirty": () => import("./is-dirty-CUuq-aB6.mjs").then((mod) => mod.default),
|
|
12
|
-
"has-remote-changes": () => import("./has-remote-changes-DAL5jetW.mjs").then((mod) => mod.default),
|
|
13
|
-
dirty: () => import("./dirty-CLjHbz6J.mjs").then((mod) => mod.default),
|
|
14
|
-
"current-task": () => import("./current-task-BGt1mqaX.mjs").then((mod) => mod.default),
|
|
15
|
-
"cancel-task": () => import("./cancel-task-BDas45YO.mjs").then((mod) => mod.default),
|
|
16
|
-
wait: () => import("./wait-Cj_8wu4y.mjs").then((mod) => mod.default),
|
|
17
|
-
import: () => import("./import-CUMxUfSF.mjs").then((mod) => mod.default),
|
|
18
|
-
export: () => import("./export-D2Anfu3p.mjs").then((mod) => mod.default),
|
|
19
|
-
stash: () => import("./stash-ZZkmW_V7.mjs").then((mod) => mod.default),
|
|
20
|
-
branches: () => import("./branches-BbcoJXfp.mjs").then((mod) => mod.default),
|
|
21
|
-
"create-branch": () => import("./create-branch-sDttBORB.mjs").then((mod) => mod.default)
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
|
|
25
|
-
//#endregion
|
|
26
|
-
export { sync_default as default };
|
|
@@ -1,21 +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-qetY9OIN.mjs").then((mod) => mod.default),
|
|
11
|
-
get: () => import("./get-qPOsuTPw.mjs").then((mod) => mod.default),
|
|
12
|
-
create: () => import("./create-_UOeEXAj.mjs").then((mod) => mod.default),
|
|
13
|
-
update: () => import("./update-CDtm71m2.mjs").then((mod) => mod.default),
|
|
14
|
-
delete: () => import("./delete-DRBTgyus.mjs").then((mod) => mod.default),
|
|
15
|
-
"delete-table": () => import("./delete-table-9Is631O_.mjs").then((mod) => mod.default),
|
|
16
|
-
run: () => import("./run-D4NgvaRh.mjs").then((mod) => mod.default)
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
//#endregion
|
|
21
|
-
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-C5MGydGU.mjs").then((mod) => mod.default),
|
|
11
|
-
get: () => import("./get-DhIoNeOp.mjs").then((mod) => mod.default),
|
|
12
|
-
create: () => import("./create-DpnjQvPw.mjs").then((mod) => mod.default),
|
|
13
|
-
update: () => import("./update-DxKlQ0hP.mjs").then((mod) => mod.default),
|
|
14
|
-
delete: () => import("./delete-DUC_stoL.mjs").then((mod) => mod.default)
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
//#endregion
|
|
19
|
-
export { transform_job_default as default };
|
package/dist/update-CDtm71m2.mjs
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import "./package-t8dKf4m_.mjs";
|
|
2
|
-
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderItem } from "./render-DlBijc5i.mjs";
|
|
4
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-DUgFfYkN.mjs";
|
|
5
|
-
import "./input-BNqSFl38.mjs";
|
|
6
|
-
import { readBody } from "./body-DwU2s6Pg.mjs";
|
|
7
|
-
import { bodyInputFlags } from "./body-flags-7oqLhu5j.mjs";
|
|
8
|
-
import { parseId } from "./parse-id-C1prc9US.mjs";
|
|
9
|
-
import { Transform, TransformUpdateInput, transformView } from "./transform-DfVkUttP.mjs";
|
|
10
|
-
|
|
11
|
-
//#region src/commands/transform/update.ts
|
|
12
|
-
var update_default = defineMetabaseCommand({
|
|
13
|
-
meta: {
|
|
14
|
-
name: "update",
|
|
15
|
-
description: "Update a transform by id"
|
|
16
|
-
},
|
|
17
|
-
args: {
|
|
18
|
-
...outputFlags,
|
|
19
|
-
...profileFlag,
|
|
20
|
-
...connectionFlags,
|
|
21
|
-
...bodyInputFlags,
|
|
22
|
-
id: {
|
|
23
|
-
type: "positional",
|
|
24
|
-
description: "Transform id",
|
|
25
|
-
required: true
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
outputSchema: Transform,
|
|
29
|
-
examples: [
|
|
30
|
-
"cat patch.json | metabase transform update 1",
|
|
31
|
-
"metabase transform update 1 --file patch.json",
|
|
32
|
-
"metabase transform update 1 --body '{\"name\":\"renamed\"}'"
|
|
33
|
-
],
|
|
34
|
-
async run({ args, ctx, getClient }) {
|
|
35
|
-
const id = parseId(args.id);
|
|
36
|
-
const body = await readBody({
|
|
37
|
-
flag: args.body,
|
|
38
|
-
file: args.file
|
|
39
|
-
}, TransformUpdateInput);
|
|
40
|
-
const client = await getClient();
|
|
41
|
-
const updated = await client.requestParsed(Transform, `/api/transform/${id}`, {
|
|
42
|
-
method: "PUT",
|
|
43
|
-
body
|
|
44
|
-
});
|
|
45
|
-
renderItem(updated, transformView, ctx);
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
|
|
49
|
-
//#endregion
|
|
50
|
-
export { update_default as default };
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { defineCommand } from "citty";
|
|
2
|
-
|
|
3
|
-
//#region src/commands/workspace/index.ts
|
|
4
|
-
var workspace_default = defineCommand({
|
|
5
|
-
meta: {
|
|
6
|
-
name: "workspace",
|
|
7
|
-
description: "Manage Metabase workspaces (workspace-manager)"
|
|
8
|
-
},
|
|
9
|
-
subCommands: {
|
|
10
|
-
list: () => import("./list-B8s7Qnzk.mjs").then((mod) => mod.default),
|
|
11
|
-
create: () => import("./create-CCzsCZMm.mjs").then((mod) => mod.default),
|
|
12
|
-
database: () => import("./database-4V1iiPEx.mjs").then((mod) => mod.default),
|
|
13
|
-
start: () => import("./start-xXQypG5L.mjs").then((mod) => mod.default),
|
|
14
|
-
stop: () => import("./stop-br-ZOnve.mjs").then((mod) => mod.default),
|
|
15
|
-
remove: () => import("./remove-DecoZzNd.mjs").then((mod) => mod.default),
|
|
16
|
-
logs: () => import("./logs-B_lrY7Js.mjs").then((mod) => mod.default),
|
|
17
|
-
url: () => import("./url-DP88YHNo.mjs").then((mod) => mod.default),
|
|
18
|
-
credentials: () => import("./credentials-C0xKke5D.mjs").then((mod) => mod.default),
|
|
19
|
-
ps: () => import("./ps-1bZKIwWh.mjs").then((mod) => mod.default)
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
//#endregion
|
|
24
|
-
export { workspace_default as default };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|