@metabase/cli 0.1.0-alpha.workspaces-commands.66774cc → 0.1.0-alpha.workspaces-commands.78747d1
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 +72 -0
- package/dist/{api-key-Cy87ZD6J.mjs → api-key-DJpqrAGZ.mjs} +1 -1
- package/dist/{archive-CYnqV6se.mjs → archive-B6TbWbK1.mjs} +3 -3
- package/dist/auth-BZofbzqG.mjs +19 -0
- package/dist/{body-CGoWst5q.mjs → body-CPnypu0_.mjs} +1 -1
- package/dist/{branches-CLNtwBB2.mjs → branches-C_X-mZ8y.mjs} +4 -4
- package/dist/{cancel-task-DqdP2_8k.mjs → cancel-task-IPOp8B8w.mjs} +4 -4
- package/dist/card-m-ve7168.mjs +20 -0
- package/dist/{cards-Bslh-gVE.mjs → cards-DbwnvuDl.mjs} +4 -4
- package/dist/cli.mjs +20 -19
- package/dist/collection-BsiGRKXh.mjs +170 -0
- package/dist/collection-D3B90qam.mjs +19 -0
- package/dist/{create-Dfk-Cwra.mjs → create-9c1KP2P_.mjs} +4 -4
- package/dist/create-BkjrL_vd.mjs +44 -0
- package/dist/{create-O5_huJxw.mjs → create-BoA0MYoT.mjs} +4 -4
- package/dist/{create-cAHtZgGR.mjs → create-CWvjvAOe.mjs} +4 -4
- package/dist/{create-DX5ZlJVx.mjs → create-Ck-p0-JC.mjs} +3 -3
- package/dist/{create-CDa7ycuY.mjs → create-Iv9ear8t.mjs} +4 -4
- package/dist/{create-branch-Di9ux42t.mjs → create-branch-CiRVRb7v.mjs} +4 -4
- package/dist/{create-MW9yGet7.mjs → create-dMsrFkvP.mjs} +4 -4
- package/dist/{credentials-CmfhxT15.mjs → credentials-BXRf0UmM.mjs} +6 -6
- package/dist/{current-task-BT63IEqN.mjs → current-task-gQAv_ckM.mjs} +4 -4
- package/dist/dashboard-DE6DQnco.mjs +20 -0
- package/dist/{database-Zcv6o9HD.mjs → database-DXjVIlkG.mjs} +3 -3
- package/dist/{db-CxjyjJjE.mjs → db-DGqKQygl.mjs} +2 -2
- package/dist/{delete-C5R9Ovcn.mjs → delete-BYx2ESK6.mjs} +4 -4
- package/dist/{delete-BOqKxL9h.mjs → delete-BoysG9pE.mjs} +4 -4
- package/dist/{delete-table-CHwD8KMd.mjs → delete-table-C5B5PRaE.mjs} +4 -4
- package/dist/{deprovision-AMoA4GJ-.mjs → deprovision-Dr32FAG9.mjs} +8 -8
- package/dist/{dirty-DGu-zGzj.mjs → dirty-CID5k_DG.mjs} +4 -4
- package/dist/{docker-JpSqfyrV.mjs → docker-BcabfnHb.mjs} +2 -2
- package/dist/{eid-DOpqY6Xr.mjs → eid-BnfaFBmk.mjs} +1 -1
- package/dist/{export-CM4xVQtO.mjs → export-BDUJ63cz.mjs} +5 -5
- package/dist/{field-CvvYmcqL.mjs → field-wJ5IyjF9.mjs} +1 -1
- package/dist/{get-C9hLsWZN.mjs → get-2TjBzT5V.mjs} +5 -5
- package/dist/{get-B_TDKynl.mjs → get-BGtgG85S.mjs} +4 -4
- package/dist/{get-BLDZmnI6.mjs → get-BN7AGZLk.mjs} +4 -4
- package/dist/{get-Bb0zpzfP.mjs → get-BavuL0j2.mjs} +3 -3
- package/dist/{get-B2gUIWWn.mjs → get-BhmsDqFa.mjs} +4 -4
- package/dist/{get-BmNatkw0.mjs → get-Br99VIyw.mjs} +4 -4
- package/dist/{get-BCftPMeY.mjs → get-CEmt6JU1.mjs} +4 -4
- package/dist/get-Caif_PQa.mjs +41 -0
- package/dist/{get-CadG65Mw.mjs → get-gTFLoU81.mjs} +4 -4
- package/dist/{has-remote-changes-jcUyn4BL.mjs → has-remote-changes-DCfaGb5v.mjs} +4 -4
- package/dist/{import-DwxLbBqY.mjs → import-Dx6kme_2.mjs} +5 -5
- package/dist/{is-dirty-Bft_2Beg.mjs → is-dirty-DZBRX_uM.mjs} +2 -2
- package/dist/is-dirty-FkBul4cr.mjs +10 -0
- package/dist/items-BhLxpz31.mjs +123 -0
- package/dist/{license-CEf37q8h.mjs → license-DfgahRiB.mjs} +3 -3
- package/dist/{list-X1BvRpvu.mjs → list-B1nz8LEB.mjs} +2 -2
- package/dist/{list-YEYFjczS.mjs → list-B5KP2eXN.mjs} +2 -2
- package/dist/{list-B-etmnDB.mjs → list-BN1iCMfc.mjs} +3 -3
- package/dist/{list-lMXe0ihm.mjs → list-BeNzesw7.mjs} +3 -3
- package/dist/{list-D79qqG6n.mjs → list-CXUd-LO7.mjs} +3 -3
- package/dist/{list-wflhJJRp.mjs → list-Cjst618J.mjs} +5 -5
- package/dist/list-CqeNnBHu.mjs +52 -0
- package/dist/{list-C9__j3X6.mjs → list-DDWzIVi0.mjs} +3 -3
- package/dist/{list-WabdLE4S.mjs → list-DfuhW3--.mjs} +3 -3
- package/dist/{list-C4mEhTuI.mjs → list-kWLAMOPg.mjs} +3 -3
- package/dist/{login-BvZe_SH8.mjs → login-xppXbffQ.mjs} +2 -2
- package/dist/{logout-DS_iumfz.mjs → logout-XtEgcO-n.mjs} +2 -2
- package/dist/{logs-B-UEyFH2.mjs → logs-Dm86UFD5.mjs} +5 -5
- package/dist/{package-DHwFgisf.mjs → package-B4PhZz9R.mjs} +1 -1
- package/dist/{parse-id-BVuB-dYb.mjs → parse-id-Dm8zjjx_.mjs} +1 -1
- package/dist/parse-ref-CyeuK_yM.mjs +17 -0
- package/dist/{poll-BkPMyRGr.mjs → poll-DYp_Lzph.mjs} +1 -1
- package/dist/{poll-task-8OfFZFlk.mjs → poll-task-kULwF-eM.mjs} +2 -2
- package/dist/{provision-9JcwXfaO.mjs → provision-DzsbOQoP.mjs} +8 -8
- package/dist/{ps-CA2yc6af.mjs → ps-CUp-aAvT.mjs} +5 -5
- package/dist/{ps-BtV5q-v0.mjs → ps-jLYH2ARi.mjs} +2 -2
- package/dist/{query-D6MUf1bB.mjs → query-BkUL9HyQ.mjs} +3 -3
- package/dist/{query-CwGBNXRD.mjs → query-DCnXxe9y.mjs} +3 -3
- package/dist/{remove-DRzzmp4L.mjs → remove-BXHoDhhy.mjs} +5 -5
- package/dist/{remove-D6dNO_JR.mjs → remove-DMRyYIs2.mjs} +2 -2
- package/dist/{run-CvcTc0Ij.mjs → run-qmPGT-44.mjs} +6 -6
- package/dist/{runtime-Dm9yLeT_.mjs → runtime-DyNvyYvx.mjs} +28 -2
- package/dist/{search-BOESDli6.mjs → search-CiDweQ6X.mjs} +5 -19
- package/dist/{set-sr3YCFCC.mjs → set-B_IyoHCE.mjs} +5 -5
- package/dist/{set-HliJC97V.mjs → set-DHdbtWuT.mjs} +2 -2
- package/dist/{setting-DRiJcVn4.mjs → setting-Cp6Tw2QN.mjs} +3 -3
- package/dist/{setup-Cw7SZEte.mjs → setup-4WZU9ihX.mjs} +3 -3
- package/dist/{start-BlTG8xm9.mjs → start-DHWpzHu6.mjs} +7 -7
- package/dist/{stash-DtwiEyLc.mjs → stash-DXrx6JPU.mjs} +5 -5
- package/dist/{status-CQUYPa2m.mjs → status-B88vwQzu.mjs} +2 -2
- package/dist/{status-CqwBiAEw.mjs → status-C0lb8dVk.mjs} +5 -5
- package/dist/{status-Snec_vKv.mjs → status-CsFspRut.mjs} +2 -2
- package/dist/{stop-ap-ezh_7.mjs → stop-AYfxmMoS.mjs} +6 -6
- package/dist/sync-BpO2GELG.mjs +26 -0
- package/dist/{table-CISZRlK9.mjs → table-BsdEHMog.mjs} +2 -2
- package/dist/{table-Dx6KCUVC.mjs → table-y0J2_gix.mjs} +1 -1
- package/dist/transform-BP8y4jRr.mjs +21 -0
- package/dist/transform-job-CjH6-qNC.mjs +19 -0
- package/dist/{translate-DsD_bI78.mjs → translate-DY6xrnmJ.mjs} +3 -3
- package/dist/tree-Db0BjcFK.mjs +32 -0
- package/dist/{update-DeHlwttq.mjs → update-DFlshvJ5.mjs} +5 -5
- package/dist/{update-kh0X4VGX.mjs → update-DK8856uS.mjs} +5 -5
- package/dist/{update-CAhzSUHT.mjs → update-DMpYV7ev.mjs} +5 -5
- package/dist/{update-BS9zqDT2.mjs → update-I04IOKMm.mjs} +4 -4
- package/dist/{update-dashcard-H9G6T3zi.mjs → update-dashcard-BM3GfQot.mjs} +5 -5
- package/dist/{update-OAfGXSV1.mjs → update-voSJcEL1.mjs} +8 -8
- package/dist/{url-vVkeIPup.mjs → url-Bdz6hIfi.mjs} +5 -5
- package/dist/{wait-DR3UCWim.mjs → wait-DwjJh_Jp.mjs} +2 -2
- package/dist/{wait-flags-DqDOwv0J.mjs → wait-flags-jG_4uL02.mjs} +2 -2
- package/dist/{wait-GYWtN1mb.mjs → wait-y8rVUrfH.mjs} +5 -5
- package/dist/workspace-CRVS-7vV.mjs +24 -0
- package/package.json +1 -1
- package/dist/auth-B4W4K7j-.mjs +0 -19
- package/dist/card-drxclrvk.mjs +0 -20
- package/dist/dashboard-DZvXencG.mjs +0 -20
- package/dist/is-dirty-DfpvMy-Z.mjs +0 -10
- package/dist/sync-BVrrn4wX.mjs +0 -26
- package/dist/transform-job-Bo1rtoXO.mjs +0 -19
- package/dist/transform-oFy2JltU.mjs +0 -21
- package/dist/workspace-DmuFl7Iw.mjs +0 -24
- /package/dist/{dashboard-nYIzB6gy.mjs → dashboard-BJXi1tGr.mjs} +0 -0
- /package/dist/{database-CqVM76jo.mjs → database-C5LkxQ5G.mjs} +0 -0
- /package/dist/{delete-runtime-BIDRhI6e.mjs → delete-runtime-KieND_CX.mjs} +0 -0
- /package/dist/{field-uWPctJqU.mjs → field-C1ai7Y05.mjs} +0 -0
- /package/dist/{key-DVHK0_ny.mjs → key-CS6durfH.mjs} +0 -0
- /package/dist/{manifest-QVMj24rH.mjs → manifest-C7lnUosz.mjs} +0 -0
- /package/dist/{setting-DwFQyJPi.mjs → setting-DEHSnsEV.mjs} +0 -0
- /package/dist/{transform-h405NiRC.mjs → transform-MkVM3WhG.mjs} +0 -0
- /package/dist/{transform-job-oBa_OKqk.mjs → transform-job-DiK7MZXZ.mjs} +0 -0
- /package/dist/{workspace-PL1je3wr.mjs → workspace-C8Kgp6BZ.mjs} +0 -0
- /package/dist/{workspace-credentials-DT-YilSB.mjs → workspace-credentials-DuTmzpvd.mjs} +0 -0
|
@@ -0,0 +1,26 @@
|
|
|
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-C0lb8dVk.mjs").then((mod) => mod.default),
|
|
11
|
+
"is-dirty": () => import("./is-dirty-FkBul4cr.mjs").then((mod) => mod.default),
|
|
12
|
+
"has-remote-changes": () => import("./has-remote-changes-DCfaGb5v.mjs").then((mod) => mod.default),
|
|
13
|
+
dirty: () => import("./dirty-CID5k_DG.mjs").then((mod) => mod.default),
|
|
14
|
+
"current-task": () => import("./current-task-gQAv_ckM.mjs").then((mod) => mod.default),
|
|
15
|
+
"cancel-task": () => import("./cancel-task-IPOp8B8w.mjs").then((mod) => mod.default),
|
|
16
|
+
wait: () => import("./wait-y8rVUrfH.mjs").then((mod) => mod.default),
|
|
17
|
+
import: () => import("./import-Dx6kme_2.mjs").then((mod) => mod.default),
|
|
18
|
+
export: () => import("./export-BDUJ63cz.mjs").then((mod) => mod.default),
|
|
19
|
+
stash: () => import("./stash-DXrx6JPU.mjs").then((mod) => mod.default),
|
|
20
|
+
branches: () => import("./branches-C_X-mZ8y.mjs").then((mod) => mod.default),
|
|
21
|
+
"create-branch": () => import("./create-branch-CiRVRb7v.mjs").then((mod) => mod.default)
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
//#endregion
|
|
26
|
+
export { sync_default as default };
|
|
@@ -7,8 +7,8 @@ var table_default = defineCommand({
|
|
|
7
7
|
description: "Inspect Metabase tables"
|
|
8
8
|
},
|
|
9
9
|
subCommands: {
|
|
10
|
-
list: () => import("./list-
|
|
11
|
-
get: () => import("./get-
|
|
10
|
+
list: () => import("./list-Cjst618J.mjs").then((m) => m.default),
|
|
11
|
+
get: () => import("./get-2TjBzT5V.mjs").then((m) => m.default)
|
|
12
12
|
}
|
|
13
13
|
});
|
|
14
14
|
|
|
@@ -0,0 +1,21 @@
|
|
|
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-kWLAMOPg.mjs").then((mod) => mod.default),
|
|
11
|
+
get: () => import("./get-BhmsDqFa.mjs").then((mod) => mod.default),
|
|
12
|
+
create: () => import("./create-BoA0MYoT.mjs").then((mod) => mod.default),
|
|
13
|
+
update: () => import("./update-DMpYV7ev.mjs").then((mod) => mod.default),
|
|
14
|
+
delete: () => import("./delete-BoysG9pE.mjs").then((mod) => mod.default),
|
|
15
|
+
"delete-table": () => import("./delete-table-C5B5PRaE.mjs").then((mod) => mod.default),
|
|
16
|
+
run: () => import("./run-qmPGT-44.mjs").then((mod) => mod.default)
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
//#endregion
|
|
21
|
+
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-DDWzIVi0.mjs").then((mod) => mod.default),
|
|
11
|
+
get: () => import("./get-CEmt6JU1.mjs").then((mod) => mod.default),
|
|
12
|
+
create: () => import("./create-CWvjvAOe.mjs").then((mod) => mod.default),
|
|
13
|
+
update: () => import("./update-DFlshvJ5.mjs").then((mod) => mod.default),
|
|
14
|
+
delete: () => import("./delete-BYx2ESK6.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-B4PhZz9R.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-BYWlZPEH.mjs";
|
|
4
4
|
import { ConfigError } from "./errors-C6w1eZ1F.mjs";
|
|
5
5
|
import "./input-DMcm_A5s.mjs";
|
|
6
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, parseCsv, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
6
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, parseCsv, profileFlag } from "./runtime-DyNvyYvx.mjs";
|
|
7
|
+
import { readBody } from "./body-CPnypu0_.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-BK7J6Daz.mjs";
|
|
9
9
|
import { requireBothOrNeither } from "./flag-pair-Dz-mbq0z.mjs";
|
|
10
10
|
import { z } from "zod";
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import "./package-B4PhZz9R.mjs";
|
|
2
|
+
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
+
import { writeJson } from "./render-BYWlZPEH.mjs";
|
|
4
|
+
import { ConfigError } from "./errors-C6w1eZ1F.mjs";
|
|
5
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-DyNvyYvx.mjs";
|
|
6
|
+
import { CollectionTreeNode } from "./collection-BsiGRKXh.mjs";
|
|
7
|
+
import { z } from "zod";
|
|
8
|
+
|
|
9
|
+
//#region src/commands/collection/tree.ts
|
|
10
|
+
const CollectionTreeResponse = z.array(CollectionTreeNode);
|
|
11
|
+
var tree_default = defineMetabaseCommand({
|
|
12
|
+
meta: {
|
|
13
|
+
name: "tree",
|
|
14
|
+
description: "Fetch the collection hierarchy as a nested tree (JSON only)"
|
|
15
|
+
},
|
|
16
|
+
args: {
|
|
17
|
+
...outputFlags,
|
|
18
|
+
...profileFlag,
|
|
19
|
+
...connectionFlags
|
|
20
|
+
},
|
|
21
|
+
outputSchema: CollectionTreeResponse,
|
|
22
|
+
examples: ["metabase collection tree", "metabase collection tree --json"],
|
|
23
|
+
async run({ ctx, getClient }) {
|
|
24
|
+
if (ctx.format === "text") throw new ConfigError("collection tree output is JSON-only; --format text is not supported");
|
|
25
|
+
const client = await getClient();
|
|
26
|
+
const tree = await client.requestParsed(CollectionTreeResponse, "/api/collection/tree");
|
|
27
|
+
writeJson(tree);
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
//#endregion
|
|
32
|
+
export { tree_default as default };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-B4PhZz9R.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-BYWlZPEH.mjs";
|
|
4
4
|
import "./errors-C6w1eZ1F.mjs";
|
|
5
5
|
import "./input-DMcm_A5s.mjs";
|
|
6
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
6
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-DyNvyYvx.mjs";
|
|
7
|
+
import { readBody } from "./body-CPnypu0_.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-BK7J6Daz.mjs";
|
|
9
|
-
import { parseId } from "./parse-id-
|
|
10
|
-
import { TransformJob, TransformJobUpdateInput, transformJobView } from "./transform-job-
|
|
9
|
+
import { parseId } from "./parse-id-Dm8zjjx_.mjs";
|
|
10
|
+
import { TransformJob, TransformJobUpdateInput, transformJobView } from "./transform-job-DiK7MZXZ.mjs";
|
|
11
11
|
|
|
12
12
|
//#region src/commands/transform-job/update.ts
|
|
13
13
|
var update_default = defineMetabaseCommand({
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-B4PhZz9R.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-BYWlZPEH.mjs";
|
|
4
4
|
import "./errors-C6w1eZ1F.mjs";
|
|
5
5
|
import "./input-DMcm_A5s.mjs";
|
|
6
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
6
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-DyNvyYvx.mjs";
|
|
7
|
+
import { readBody } from "./body-CPnypu0_.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-BK7J6Daz.mjs";
|
|
9
|
-
import { parseId } from "./parse-id-
|
|
10
|
-
import { DashboardDetail, DashboardUpdateInput, dashboardView } from "./dashboard-
|
|
9
|
+
import { parseId } from "./parse-id-Dm8zjjx_.mjs";
|
|
10
|
+
import { DashboardDetail, DashboardUpdateInput, dashboardView } from "./dashboard-BJXi1tGr.mjs";
|
|
11
11
|
|
|
12
12
|
//#region src/commands/dashboard/update.ts
|
|
13
13
|
var update_default = defineMetabaseCommand({
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-B4PhZz9R.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-BYWlZPEH.mjs";
|
|
4
4
|
import "./errors-C6w1eZ1F.mjs";
|
|
5
5
|
import "./input-DMcm_A5s.mjs";
|
|
6
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
6
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-DyNvyYvx.mjs";
|
|
7
|
+
import { readBody } from "./body-CPnypu0_.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-BK7J6Daz.mjs";
|
|
9
|
-
import { parseId } from "./parse-id-
|
|
9
|
+
import { parseId } from "./parse-id-Dm8zjjx_.mjs";
|
|
10
10
|
import { preflightInternalMbql5Query, skipValidateFlag } from "./validate-query-D0aAFTUs.mjs";
|
|
11
|
-
import { Transform, TransformUpdateInput, transformView } from "./transform-
|
|
11
|
+
import { Transform, TransformUpdateInput, transformView } from "./transform-MkVM3WhG.mjs";
|
|
12
12
|
|
|
13
13
|
//#region src/commands/transform/update.ts
|
|
14
14
|
var update_default = defineMetabaseCommand({
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-B4PhZz9R.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-BYWlZPEH.mjs";
|
|
4
4
|
import "./errors-C6w1eZ1F.mjs";
|
|
5
5
|
import "./input-DMcm_A5s.mjs";
|
|
6
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
6
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-DyNvyYvx.mjs";
|
|
7
|
+
import { readBody } from "./body-CPnypu0_.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-BK7J6Daz.mjs";
|
|
9
|
-
import { parseId } from "./parse-id-
|
|
9
|
+
import { parseId } from "./parse-id-Dm8zjjx_.mjs";
|
|
10
10
|
import { Card, CardUpdateInput, cardView } from "./card-BOGKT258.mjs";
|
|
11
11
|
import { preflightInternalMbql5Query, skipValidateFlag } from "./validate-query-D0aAFTUs.mjs";
|
|
12
12
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-B4PhZz9R.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-BYWlZPEH.mjs";
|
|
4
4
|
import { ConfigError } from "./errors-C6w1eZ1F.mjs";
|
|
5
5
|
import "./input-DMcm_A5s.mjs";
|
|
6
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
6
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-DyNvyYvx.mjs";
|
|
7
|
+
import { readBody } from "./body-CPnypu0_.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-BK7J6Daz.mjs";
|
|
9
|
-
import { parseId } from "./parse-id-
|
|
10
|
-
import { DashboardDetail, Dashcard, DashcardPatchInput, dashcardView } from "./dashboard-
|
|
9
|
+
import { parseId } from "./parse-id-Dm8zjjx_.mjs";
|
|
10
|
+
import { DashboardDetail, Dashcard, DashcardPatchInput, dashcardView } from "./dashboard-BJXi1tGr.mjs";
|
|
11
11
|
|
|
12
12
|
//#region src/commands/dashboard/update-dashcard.ts
|
|
13
13
|
var update_dashcard_default = defineMetabaseCommand({
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-B4PhZz9R.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-BYWlZPEH.mjs";
|
|
4
4
|
import { ConfigError } from "./errors-C6w1eZ1F.mjs";
|
|
5
5
|
import "./input-DMcm_A5s.mjs";
|
|
6
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, parseCsv, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
6
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, parseCsv, profileFlag } from "./runtime-DyNvyYvx.mjs";
|
|
7
|
+
import { readBody } from "./body-CPnypu0_.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-
|
|
9
|
+
import { parseId } from "./parse-id-Dm8zjjx_.mjs";
|
|
10
|
+
import "./poll-DYp_Lzph.mjs";
|
|
11
|
+
import { parseWaitFlags, waitFlags } from "./wait-flags-jG_4uL02.mjs";
|
|
12
|
+
import { Workspace, WorkspaceUpdateDatabaseInput, workspaceView } from "./workspace-C8Kgp6BZ.mjs";
|
|
13
|
+
import { waitForDatabaseProvisioned } from "./wait-DwjJh_Jp.mjs";
|
|
14
14
|
|
|
15
15
|
//#region src/commands/workspace/database/update.ts
|
|
16
16
|
var update_default = defineMetabaseCommand({
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-B4PhZz9R.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-BYWlZPEH.mjs";
|
|
4
4
|
import "./errors-C6w1eZ1F.mjs";
|
|
5
|
-
import { defineMetabaseCommand, localUrl, outputFlags } from "./runtime-
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
7
|
-
import "./poll-
|
|
8
|
-
import { checkDockerReady, requireWorkspaceContainerLocation } from "./docker-
|
|
5
|
+
import { defineMetabaseCommand, localUrl, outputFlags } from "./runtime-DyNvyYvx.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-Dm8zjjx_.mjs";
|
|
7
|
+
import "./poll-DYp_Lzph.mjs";
|
|
8
|
+
import { checkDockerReady, requireWorkspaceContainerLocation } from "./docker-BcabfnHb.mjs";
|
|
9
9
|
import { z } from "zod";
|
|
10
10
|
|
|
11
11
|
//#region src/commands/workspace/url.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { pollUntil } from "./poll-
|
|
2
|
-
import { Workspace } from "./workspace-
|
|
1
|
+
import { pollUntil } from "./poll-DYp_Lzph.mjs";
|
|
2
|
+
import { Workspace } from "./workspace-C8Kgp6BZ.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/commands/workspace/database/wait.ts
|
|
5
5
|
async function waitForDatabaseProvisioned(client, workspaceId, databaseId, schedule) {
|
|
@@ -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-Dm8zjjx_.mjs";
|
|
2
|
+
import { DEFAULT_INTERVAL_MS, DEFAULT_TIMEOUT_MS } from "./poll-DYp_Lzph.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/commands/wait-flags.ts
|
|
5
5
|
const waitFlags = {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-B4PhZz9R.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-BYWlZPEH.mjs";
|
|
4
4
|
import "./errors-C6w1eZ1F.mjs";
|
|
5
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
7
|
-
import { SyncTaskOrIdle, pollSyncTask, syncTaskIdleView, syncTaskView, throwIfFailedTask } from "./poll-task-
|
|
8
|
-
import { DEFAULT_INTERVAL_MS, DEFAULT_TIMEOUT_MS } from "./poll-
|
|
5
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-DyNvyYvx.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-Dm8zjjx_.mjs";
|
|
7
|
+
import { SyncTaskOrIdle, pollSyncTask, syncTaskIdleView, syncTaskView, throwIfFailedTask } from "./poll-task-kULwF-eM.mjs";
|
|
8
|
+
import { DEFAULT_INTERVAL_MS, DEFAULT_TIMEOUT_MS } from "./poll-DYp_Lzph.mjs";
|
|
9
9
|
|
|
10
10
|
//#region src/commands/sync/wait.ts
|
|
11
11
|
const WaitResult = SyncTaskOrIdle;
|
|
@@ -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-DfuhW3--.mjs").then((mod) => mod.default),
|
|
11
|
+
create: () => import("./create-dMsrFkvP.mjs").then((mod) => mod.default),
|
|
12
|
+
database: () => import("./database-DXjVIlkG.mjs").then((mod) => mod.default),
|
|
13
|
+
start: () => import("./start-DHWpzHu6.mjs").then((mod) => mod.default),
|
|
14
|
+
stop: () => import("./stop-AYfxmMoS.mjs").then((mod) => mod.default),
|
|
15
|
+
remove: () => import("./remove-BXHoDhhy.mjs").then((mod) => mod.default),
|
|
16
|
+
logs: () => import("./logs-Dm86UFD5.mjs").then((mod) => mod.default),
|
|
17
|
+
url: () => import("./url-Bdz6hIfi.mjs").then((mod) => mod.default),
|
|
18
|
+
credentials: () => import("./credentials-BXRf0UmM.mjs").then((mod) => mod.default),
|
|
19
|
+
ps: () => import("./ps-CUp-aAvT.mjs").then((mod) => mod.default)
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
24
|
+
export { workspace_default as default };
|
package/package.json
CHANGED
package/dist/auth-B4W4K7j-.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-BvZe_SH8.mjs").then((m) => m.default),
|
|
12
|
-
status: () => import("./status-Snec_vKv.mjs").then((m) => m.default),
|
|
13
|
-
list: () => import("./list-X1BvRpvu.mjs").then((m) => m.default),
|
|
14
|
-
logout: () => import("./logout-DS_iumfz.mjs").then((m) => m.default)
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
//#endregion
|
|
19
|
-
export { auth_default as default };
|
package/dist/card-drxclrvk.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-YEYFjczS.mjs").then((mod) => mod.default),
|
|
11
|
-
get: () => import("./get-Bb0zpzfP.mjs").then((mod) => mod.default),
|
|
12
|
-
query: () => import("./query-CwGBNXRD.mjs").then((mod) => mod.default),
|
|
13
|
-
create: () => import("./create-DX5ZlJVx.mjs").then((mod) => mod.default),
|
|
14
|
-
update: () => import("./update-BS9zqDT2.mjs").then((mod) => mod.default),
|
|
15
|
-
archive: () => import("./archive-CYnqV6se.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/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-B-etmnDB.mjs").then((mod) => mod.default),
|
|
11
|
-
get: () => import("./get-BmNatkw0.mjs").then((mod) => mod.default),
|
|
12
|
-
cards: () => import("./cards-Bslh-gVE.mjs").then((mod) => mod.default),
|
|
13
|
-
create: () => import("./create-CDa7ycuY.mjs").then((mod) => mod.default),
|
|
14
|
-
update: () => import("./update-kh0X4VGX.mjs").then((mod) => mod.default),
|
|
15
|
-
"update-dashcard": () => import("./update-dashcard-H9G6T3zi.mjs").then((mod) => mod.default)
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
//#endregion
|
|
20
|
-
export { dashboard_default as default };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import "./package-DHwFgisf.mjs";
|
|
2
|
-
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import "./render-BYWlZPEH.mjs";
|
|
4
|
-
import "./errors-C6w1eZ1F.mjs";
|
|
5
|
-
import "./runtime-Dm9yLeT_.mjs";
|
|
6
|
-
import "./poll-task-8OfFZFlk.mjs";
|
|
7
|
-
import "./poll-BkPMyRGr.mjs";
|
|
8
|
-
import { IsDirtyResult, is_dirty_default } from "./is-dirty-Bft_2Beg.mjs";
|
|
9
|
-
|
|
10
|
-
export { is_dirty_default as default };
|
package/dist/sync-BVrrn4wX.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-CqwBiAEw.mjs").then((mod) => mod.default),
|
|
11
|
-
"is-dirty": () => import("./is-dirty-DfpvMy-Z.mjs").then((mod) => mod.default),
|
|
12
|
-
"has-remote-changes": () => import("./has-remote-changes-jcUyn4BL.mjs").then((mod) => mod.default),
|
|
13
|
-
dirty: () => import("./dirty-DGu-zGzj.mjs").then((mod) => mod.default),
|
|
14
|
-
"current-task": () => import("./current-task-BT63IEqN.mjs").then((mod) => mod.default),
|
|
15
|
-
"cancel-task": () => import("./cancel-task-DqdP2_8k.mjs").then((mod) => mod.default),
|
|
16
|
-
wait: () => import("./wait-GYWtN1mb.mjs").then((mod) => mod.default),
|
|
17
|
-
import: () => import("./import-DwxLbBqY.mjs").then((mod) => mod.default),
|
|
18
|
-
export: () => import("./export-CM4xVQtO.mjs").then((mod) => mod.default),
|
|
19
|
-
stash: () => import("./stash-DtwiEyLc.mjs").then((mod) => mod.default),
|
|
20
|
-
branches: () => import("./branches-CLNtwBB2.mjs").then((mod) => mod.default),
|
|
21
|
-
"create-branch": () => import("./create-branch-Di9ux42t.mjs").then((mod) => mod.default)
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
|
|
25
|
-
//#endregion
|
|
26
|
-
export { sync_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-C9__j3X6.mjs").then((mod) => mod.default),
|
|
11
|
-
get: () => import("./get-BCftPMeY.mjs").then((mod) => mod.default),
|
|
12
|
-
create: () => import("./create-cAHtZgGR.mjs").then((mod) => mod.default),
|
|
13
|
-
update: () => import("./update-DeHlwttq.mjs").then((mod) => mod.default),
|
|
14
|
-
delete: () => import("./delete-C5R9Ovcn.mjs").then((mod) => mod.default)
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
//#endregion
|
|
19
|
-
export { transform_job_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-C4mEhTuI.mjs").then((mod) => mod.default),
|
|
11
|
-
get: () => import("./get-B2gUIWWn.mjs").then((mod) => mod.default),
|
|
12
|
-
create: () => import("./create-O5_huJxw.mjs").then((mod) => mod.default),
|
|
13
|
-
update: () => import("./update-CAhzSUHT.mjs").then((mod) => mod.default),
|
|
14
|
-
delete: () => import("./delete-BOqKxL9h.mjs").then((mod) => mod.default),
|
|
15
|
-
"delete-table": () => import("./delete-table-CHwD8KMd.mjs").then((mod) => mod.default),
|
|
16
|
-
run: () => import("./run-CvcTc0Ij.mjs").then((mod) => mod.default)
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
//#endregion
|
|
21
|
-
export { transform_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-WabdLE4S.mjs").then((mod) => mod.default),
|
|
11
|
-
create: () => import("./create-MW9yGet7.mjs").then((mod) => mod.default),
|
|
12
|
-
database: () => import("./database-Zcv6o9HD.mjs").then((mod) => mod.default),
|
|
13
|
-
start: () => import("./start-BlTG8xm9.mjs").then((mod) => mod.default),
|
|
14
|
-
stop: () => import("./stop-ap-ezh_7.mjs").then((mod) => mod.default),
|
|
15
|
-
remove: () => import("./remove-DRzzmp4L.mjs").then((mod) => mod.default),
|
|
16
|
-
logs: () => import("./logs-B-UEyFH2.mjs").then((mod) => mod.default),
|
|
17
|
-
url: () => import("./url-vVkeIPup.mjs").then((mod) => mod.default),
|
|
18
|
-
credentials: () => import("./credentials-CmfhxT15.mjs").then((mod) => mod.default),
|
|
19
|
-
ps: () => import("./ps-CA2yc6af.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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|