@metabase/cli 0.1.0-alpha.workspaces-commands.818a8f1 → 0.1.0
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 +0 -237
- package/dist/{archive-BPG5c88Y.mjs → archive-CsWeHXle.mjs} +4 -5
- package/dist/{auth--Hpjwlaf.mjs → auth-BF7IjZIH.mjs} +3 -3
- package/dist/{body-DwU2s6Pg.mjs → body-Dv9hQ0Qk.mjs} +2 -2
- package/dist/{branches-BbcoJXfp.mjs → branches-BujtceGr.mjs} +4 -5
- package/dist/{cancel-task-BDas45YO.mjs → cancel-task-CT2xUMRg.mjs} +4 -5
- package/dist/card-_Ta7zdYe.mjs +19 -0
- package/dist/cli.mjs +13 -17
- package/dist/{create-DpnjQvPw.mjs → create-B8ektf-R.mjs} +6 -7
- package/dist/{create-_UOeEXAj.mjs → create-CI2Cunq5.mjs} +6 -7
- package/dist/{create-CwVcoq0O.mjs → create-DdbU3TLX.mjs} +6 -7
- package/dist/{create-branch-sDttBORB.mjs → create-branch-goZBTNnr.mjs} +4 -5
- package/dist/{current-task-BGt1mqaX.mjs → current-task-DBjRNCFq.mjs} +4 -5
- package/dist/{db-Dm2u2ISJ.mjs → db-DMghzgb6.mjs} +2 -2
- package/dist/{delete-DRBTgyus.mjs → delete-8vGU35r3.mjs} +5 -6
- package/dist/{delete-DUC_stoL.mjs → delete-B27KLF5X.mjs} +5 -6
- package/dist/{delete-runtime-inOVw3IX.mjs → delete-runtime-Byr60cR3.mjs} +2 -4
- package/dist/{delete-table-9Is631O_.mjs → delete-table-BNaJ_gA4.mjs} +5 -6
- package/dist/{dirty-CLjHbz6J.mjs → dirty-aNUuph4I.mjs} +4 -5
- package/dist/{export-D2Anfu3p.mjs → export-QDkuuzSE.mjs} +5 -6
- package/dist/{field-Dhs2AND3.mjs → field-DaYo_90x.mjs} +1 -1
- package/dist/{get-DhIoNeOp.mjs → get-BGBIzMKY.mjs} +4 -5
- package/dist/{get-CAVVmdMX.mjs → get-COXHplHP.mjs} +4 -5
- package/dist/{get-CAPLfawI.mjs → get-Cl8-IauC.mjs} +4 -5
- package/dist/{get-DDWpubE8.mjs → get-Cwpj7lDe.mjs} +5 -6
- package/dist/{get-BHJA78zg.mjs → get-DI_IJvgk.mjs} +4 -5
- package/dist/{get-2po1uv9i.mjs → get-Dh_acl8q.mjs} +4 -5
- package/dist/{get-qPOsuTPw.mjs → get-i6LWOByV.mjs} +4 -5
- package/dist/{has-remote-changes-DAL5jetW.mjs → has-remote-changes-hjKoQuRy.mjs} +4 -5
- package/dist/{import-CUMxUfSF.mjs → import-HJsSKRYx.mjs} +5 -6
- package/dist/{input-BNqSFl38.mjs → input-Dojr-RTw.mjs} +1 -1
- package/dist/{is-dirty-B10S6MG0.mjs → is-dirty-1Qy7hiHB.mjs} +2 -3
- package/dist/is-dirty-DpKn9HJp.mjs +8 -0
- package/dist/{key-CyhOpgWt.mjs → key-DBxPSFwi.mjs} +1 -1
- package/dist/{license-DtsGJi3l.mjs → license-MoWse3ZI.mjs} +3 -3
- package/dist/{list-Y7iGsOfE.mjs → list-Bk6RsbJl.mjs} +3 -4
- package/dist/{list-DeFGwhhJ.mjs → list-C4Ajrw8f.mjs} +3 -4
- package/dist/{list-C5MGydGU.mjs → list-C8tdLOH5.mjs} +3 -4
- package/dist/{list-evtQS7jl.mjs → list-CBSBHtK-.mjs} +3 -4
- package/dist/{list-qetY9OIN.mjs → list-CWt3fqrZ.mjs} +3 -4
- package/dist/{list-OBx5B3gd.mjs → list-C_PRdL5e.mjs} +5 -6
- package/dist/{login-Dqw9ZtCx.mjs → login-C9WTwNn6.mjs} +4 -5
- package/dist/{logout-DwYJ5OUi.mjs → logout-oLszGCOg.mjs} +3 -4
- package/dist/{package-t8dKf4m_.mjs → package-BGfw4ZWJ.mjs} +1 -2
- package/dist/parse-id-BhmmfyCP.mjs +14 -0
- package/dist/{poll-D2sXM5rc.mjs → poll-ILanYysl.mjs} +1 -1
- package/dist/{poll-task-Byiunmaj.mjs → poll-task-DbpsiQhl.mjs} +2 -2
- package/dist/{prompt-fXeNtj0M.mjs → prompt-DpT8yAVy.mjs} +1 -1
- package/dist/{query-BnGVGeM3.mjs → query-PihYi-UZ.mjs} +4 -5
- package/dist/{remove-Bx48o-0S.mjs → remove-B2hVYn1v.mjs} +3 -4
- package/dist/{run-D4NgvaRh.mjs → run-C2so6Qp6.mjs} +27 -11
- package/dist/{runtime-DUgFfYkN.mjs → runtime-C9CEZhcn.mjs} +335 -203
- package/dist/{search-4wKx5ug2.mjs → search-CopOytXY.mjs} +4 -5
- package/dist/{set-BZnCRL4c.mjs → set-BcF7M1GQ.mjs} +4 -5
- package/dist/{set-DCjrmTFm.mjs → set-CbibegpA.mjs} +6 -7
- package/dist/{setting-C4vQSqer.mjs → setting-U3NtBMFo.mjs} +3 -3
- package/dist/{stash-ZZkmW_V7.mjs → stash-DOBbYozC.mjs} +5 -6
- package/dist/{status-DezF-PIM.mjs → status-Buf1ZbNR.mjs} +5 -6
- package/dist/{status-JH6BZppo.mjs → status-CUcs8XBH.mjs} +2 -3
- package/dist/{status-9KAPIpX8.mjs → status-D1F5XHae.mjs} +2 -3
- package/dist/sync-BPyGXfUk.mjs +26 -0
- package/dist/{table-BvAr2ixC.mjs → table-Cfk7oSvw.mjs} +1 -1
- package/dist/{table-D-Mb5Nvw.mjs → table-D7nJt7JO.mjs} +2 -2
- package/dist/transform-UbyewMxY.mjs +21 -0
- package/dist/transform-job-CrYkr-Ma.mjs +19 -0
- package/dist/{update-DxKlQ0hP.mjs → update-CL8tRbxr.mjs} +7 -8
- package/dist/{update-CDtm71m2.mjs → update-DU2oU2j-.mjs} +7 -8
- package/dist/{wait-Cj_8wu4y.mjs → wait-Bugr9eXD.mjs} +5 -6
- package/package.json +1 -2
- package/dist/api-key-D9XxErQn.mjs +0 -13
- package/dist/card-D4zZSPUb.mjs +0 -19
- package/dist/create-Bd_U1zWU.mjs +0 -124
- package/dist/create-CCzsCZMm.mjs +0 -47
- package/dist/credentials-C0xKke5D.mjs +0 -84
- package/dist/database-4V1iiPEx.mjs +0 -17
- package/dist/deprovision-BAMzZc6f.mjs +0 -60
- package/dist/docker-QWVMG2gl.mjs +0 -605
- package/dist/eid-BNhutC1U.mjs +0 -13
- package/dist/flag-pair-CWvvzDJ_.mjs +0 -17
- package/dist/is-dirty-CUuq-aB6.mjs +0 -9
- package/dist/list-B8s7Qnzk.mjs +0 -31
- package/dist/logs-B_lrY7Js.mjs +0 -57
- package/dist/parse-id-C1prc9US.mjs +0 -12
- package/dist/provision-DC4_HWZD.mjs +0 -80
- package/dist/ps-1bZKIwWh.mjs +0 -9
- package/dist/ps-BiOrecEe.mjs +0 -78
- package/dist/remove-DecoZzNd.mjs +0 -97
- package/dist/render-DlBijc5i.mjs +0 -179
- package/dist/setup-Dqh9hN6l.mjs +0 -70
- package/dist/start-xXQypG5L.mjs +0 -324
- package/dist/stop-br-ZOnve.mjs +0 -80
- package/dist/sync-C7VOWD00.mjs +0 -26
- package/dist/transform-CqxZwhGs.mjs +0 -21
- package/dist/transform-job-HjbqjEoP.mjs +0 -19
- package/dist/translate-DJxDVAE4.mjs +0 -110
- package/dist/update-DYVeVjk2.mjs +0 -76
- package/dist/url-DP88YHNo.mjs +0 -53
- package/dist/wait-DwZN3ZwR.mjs +0 -19
- package/dist/wait-flags-CjW4ogUJ.mjs +0 -35
- package/dist/workspace-CbwR0vX_.mjs +0 -24
- package/dist/workspace-Dr9lWU3D.mjs +0 -72
- package/dist/workspace-credentials-q5RRFMT8.mjs +0 -139
- /package/dist/{body-flags-7oqLhu5j.mjs → body-flags-BUA9XV1u.mjs} +0 -0
- /package/dist/{card-C31pGtBZ.mjs → card-CsXk8T6A.mjs} +0 -0
- /package/dist/{database-BTX5qbSv.mjs → database-PA9Goi25.mjs} +0 -0
- /package/dist/{field-QwBMAWsq.mjs → field-C8IVs6rp.mjs} +0 -0
- /package/dist/{manifest-wzEFG0JB.mjs → manifest-CAdjQYH8.mjs} +0 -0
- /package/dist/{setting-DM7pm7yh.mjs → setting-26ckqHAP.mjs} +0 -0
- /package/dist/{transform-DfVkUttP.mjs → transform-B5uRpg1G.mjs} +0 -0
- /package/dist/{transform-job-DuB_OjhO.mjs → transform-job-C7QXWTVE.mjs} +0 -0
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-BGfw4ZWJ.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderItem } from "./
|
|
4
|
-
import {
|
|
5
|
-
import { parseId } from "./parse-id-
|
|
6
|
-
import { Card, cardView } from "./card-C31pGtBZ.mjs";
|
|
3
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag, renderItem } from "./runtime-C9CEZhcn.mjs";
|
|
4
|
+
import { Card, cardView } from "./card-CsXk8T6A.mjs";
|
|
5
|
+
import { parseId } from "./parse-id-BhmmfyCP.mjs";
|
|
7
6
|
|
|
8
7
|
//#region src/commands/card/get.ts
|
|
9
8
|
var get_default = defineMetabaseCommand({
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-BGfw4ZWJ.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderItem } from "./
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import "./
|
|
7
|
-
import { Table, tableView } from "./table-BvAr2ixC.mjs";
|
|
3
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag, renderItem } from "./runtime-C9CEZhcn.mjs";
|
|
4
|
+
import { parseId } from "./parse-id-BhmmfyCP.mjs";
|
|
5
|
+
import "./field-C8IVs6rp.mjs";
|
|
6
|
+
import { Table, tableView } from "./table-Cfk7oSvw.mjs";
|
|
8
7
|
|
|
9
8
|
//#region src/commands/table/get.ts
|
|
10
9
|
var get_default = defineMetabaseCommand({
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-BGfw4ZWJ.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderItem } from "./
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { Field, fieldView } from "./field-QwBMAWsq.mjs";
|
|
3
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag, renderItem } from "./runtime-C9CEZhcn.mjs";
|
|
4
|
+
import { parseId } from "./parse-id-BhmmfyCP.mjs";
|
|
5
|
+
import { Field, fieldView } from "./field-C8IVs6rp.mjs";
|
|
7
6
|
|
|
8
7
|
//#region src/commands/field/get.ts
|
|
9
8
|
var get_default = defineMetabaseCommand({
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-BGfw4ZWJ.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderItem } from "./
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { Database, databaseView } from "./database-BTX5qbSv.mjs";
|
|
3
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag, renderItem } from "./runtime-C9CEZhcn.mjs";
|
|
4
|
+
import { parseId } from "./parse-id-BhmmfyCP.mjs";
|
|
5
|
+
import { Database, databaseView } from "./database-PA9Goi25.mjs";
|
|
7
6
|
|
|
8
7
|
//#region src/commands/db/get.ts
|
|
9
8
|
var get_default = defineMetabaseCommand({
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-BGfw4ZWJ.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderItem } from "./
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { Transform, transformView } from "./transform-DfVkUttP.mjs";
|
|
3
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag, renderItem } from "./runtime-C9CEZhcn.mjs";
|
|
4
|
+
import { parseId } from "./parse-id-BhmmfyCP.mjs";
|
|
5
|
+
import { Transform, transformView } from "./transform-B5uRpg1G.mjs";
|
|
7
6
|
|
|
8
7
|
//#region src/commands/transform/get.ts
|
|
9
8
|
var get_default = defineMetabaseCommand({
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-BGfw4ZWJ.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderItem } from "./
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import "./poll-D2sXM5rc.mjs";
|
|
3
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag, renderItem } from "./runtime-C9CEZhcn.mjs";
|
|
4
|
+
import { REMOTE_SYNC_PATHS } from "./poll-task-DbpsiQhl.mjs";
|
|
5
|
+
import "./poll-ILanYysl.mjs";
|
|
7
6
|
import { z } from "zod";
|
|
8
7
|
|
|
9
8
|
//#region src/commands/sync/has-remote-changes.ts
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-BGfw4ZWJ.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderItem } from "./
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import "./poll-D2sXM5rc.mjs";
|
|
3
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag, renderItem } from "./runtime-C9CEZhcn.mjs";
|
|
4
|
+
import { parseId } from "./parse-id-BhmmfyCP.mjs";
|
|
5
|
+
import { REMOTE_SYNC_PATHS, SyncTask, pollFlags, pollSyncTask, throwIfFailedTask } from "./poll-task-DbpsiQhl.mjs";
|
|
6
|
+
import "./poll-ILanYysl.mjs";
|
|
8
7
|
import { z } from "zod";
|
|
9
8
|
|
|
10
9
|
//#region src/commands/sync/import.ts
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { renderItem } from "./
|
|
2
|
-
import {
|
|
3
|
-
import { REMOTE_SYNC_PATHS } from "./poll-task-Byiunmaj.mjs";
|
|
1
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag, renderItem } from "./runtime-C9CEZhcn.mjs";
|
|
2
|
+
import { REMOTE_SYNC_PATHS } from "./poll-task-DbpsiQhl.mjs";
|
|
4
3
|
import { z } from "zod";
|
|
5
4
|
|
|
6
5
|
//#region src/commands/sync/is-dirty.ts
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import "./package-BGfw4ZWJ.mjs";
|
|
2
|
+
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
+
import "./runtime-C9CEZhcn.mjs";
|
|
4
|
+
import "./poll-task-DbpsiQhl.mjs";
|
|
5
|
+
import "./poll-ILanYysl.mjs";
|
|
6
|
+
import { IsDirtyResult, is_dirty_default } from "./is-dirty-1Qy7hiHB.mjs";
|
|
7
|
+
|
|
8
|
+
export { is_dirty_default as default };
|
|
@@ -7,9 +7,9 @@ var license_default = defineCommand({
|
|
|
7
7
|
description: "Manage the Metabase license token"
|
|
8
8
|
},
|
|
9
9
|
subCommands: {
|
|
10
|
-
set: () => import("./set-
|
|
11
|
-
status: () => import("./status-
|
|
12
|
-
remove: () => import("./remove-
|
|
10
|
+
set: () => import("./set-BcF7M1GQ.mjs").then((m) => m.default),
|
|
11
|
+
status: () => import("./status-D1F5XHae.mjs").then((m) => m.default),
|
|
12
|
+
remove: () => import("./remove-B2hVYn1v.mjs").then((m) => m.default)
|
|
13
13
|
}
|
|
14
14
|
});
|
|
15
15
|
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-BGfw4ZWJ.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderList } from "./
|
|
4
|
-
import {
|
|
5
|
-
import { Setting, SettingCompact, settingView } from "./setting-DM7pm7yh.mjs";
|
|
3
|
+
import { connectionFlags, defineMetabaseCommand, listEnvelopeSchema, outputFlags, profileFlag, renderList, wrapList } from "./runtime-C9CEZhcn.mjs";
|
|
4
|
+
import { Setting, SettingCompact, settingView } from "./setting-26ckqHAP.mjs";
|
|
6
5
|
import { z } from "zod";
|
|
7
6
|
|
|
8
7
|
//#region src/commands/setting/list.ts
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-BGfw4ZWJ.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderList } from "./
|
|
4
|
-
import {
|
|
5
|
-
import { Card, CardCompact, cardView } from "./card-C31pGtBZ.mjs";
|
|
3
|
+
import { connectionFlags, defineMetabaseCommand, listEnvelopeSchema, outputFlags, profileFlag, renderList, wrapList } from "./runtime-C9CEZhcn.mjs";
|
|
4
|
+
import { Card, CardCompact, cardView } from "./card-CsXk8T6A.mjs";
|
|
6
5
|
import { z } from "zod";
|
|
7
6
|
|
|
8
7
|
//#region src/commands/card/list.ts
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-BGfw4ZWJ.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderList } from "./
|
|
4
|
-
import {
|
|
5
|
-
import { TransformJob, TransformJobCompact, transformJobView } from "./transform-job-DuB_OjhO.mjs";
|
|
3
|
+
import { connectionFlags, defineMetabaseCommand, listEnvelopeSchema, outputFlags, profileFlag, renderList, wrapList } from "./runtime-C9CEZhcn.mjs";
|
|
4
|
+
import { TransformJob, TransformJobCompact, transformJobView } from "./transform-job-C7QXWTVE.mjs";
|
|
6
5
|
import { z } from "zod";
|
|
7
6
|
|
|
8
7
|
//#region src/commands/transform-job/list.ts
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-BGfw4ZWJ.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderList } from "./
|
|
4
|
-
import {
|
|
5
|
-
import { Database, DatabaseCompact, databaseView } from "./database-BTX5qbSv.mjs";
|
|
3
|
+
import { connectionFlags, defineMetabaseCommand, listEnvelopeSchema, outputFlags, profileFlag, renderList } from "./runtime-C9CEZhcn.mjs";
|
|
4
|
+
import { Database, DatabaseCompact, databaseView } from "./database-PA9Goi25.mjs";
|
|
6
5
|
import { z } from "zod";
|
|
7
6
|
|
|
8
7
|
//#region src/commands/db/list.ts
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-BGfw4ZWJ.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderList } from "./
|
|
4
|
-
import {
|
|
5
|
-
import { Transform, TransformCompact, transformView } from "./transform-DfVkUttP.mjs";
|
|
3
|
+
import { connectionFlags, defineMetabaseCommand, listEnvelopeSchema, outputFlags, profileFlag, renderList, wrapList } from "./runtime-C9CEZhcn.mjs";
|
|
4
|
+
import { Transform, TransformCompact, transformView } from "./transform-B5uRpg1G.mjs";
|
|
6
5
|
import { z } from "zod";
|
|
7
6
|
|
|
8
7
|
//#region src/commands/transform/list.ts
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-BGfw4ZWJ.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderList } from "./
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import "./
|
|
7
|
-
import { Table, TableCompact, tableView } from "./table-BvAr2ixC.mjs";
|
|
3
|
+
import { connectionFlags, defineMetabaseCommand, listEnvelopeSchema, outputFlags, profileFlag, renderList, wrapList } from "./runtime-C9CEZhcn.mjs";
|
|
4
|
+
import { parseId } from "./parse-id-BhmmfyCP.mjs";
|
|
5
|
+
import "./field-C8IVs6rp.mjs";
|
|
6
|
+
import { Table, TableCompact, tableView } from "./table-Cfk7oSvw.mjs";
|
|
8
7
|
import { z } from "zod";
|
|
9
8
|
|
|
10
9
|
//#region src/commands/table/list.ts
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-BGfw4ZWJ.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderItem, warn } from "./
|
|
4
|
-
import {
|
|
5
|
-
import { readInput } from "./input-
|
|
6
|
-
import { promptPassword, promptText } from "./prompt-fXeNtj0M.mjs";
|
|
3
|
+
import { ConfigError, HttpError, MetabaseError, connectionFlags, createClient, defineMetabaseCommand, errorMessage, normalizeUrl, outputFlags, profileFlag, readEnvCredentials, renderItem, resolveProfileName, warn, writeProfile } from "./runtime-C9CEZhcn.mjs";
|
|
4
|
+
import { promptPassword, promptText } from "./prompt-DpT8yAVy.mjs";
|
|
5
|
+
import { readInput } from "./input-Dojr-RTw.mjs";
|
|
7
6
|
import { z } from "zod";
|
|
8
7
|
|
|
9
8
|
//#region src/domain/user.ts
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-BGfw4ZWJ.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderItem } from "./
|
|
4
|
-
import {
|
|
5
|
-
import { promptConfirm } from "./prompt-fXeNtj0M.mjs";
|
|
3
|
+
import { ConfigError, clearProfile, defineMetabaseCommand, outputFlags, profileFlag, renderItem, resolveProfileName } from "./runtime-C9CEZhcn.mjs";
|
|
4
|
+
import { promptConfirm } from "./prompt-DpT8yAVy.mjs";
|
|
6
5
|
import { z } from "zod";
|
|
7
6
|
|
|
8
7
|
//#region src/commands/auth/logout.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
//#region package.json
|
|
2
2
|
var name = "@metabase/cli";
|
|
3
|
-
var version = "0.1.0
|
|
3
|
+
var version = "0.1.0";
|
|
4
4
|
var description = "Metabase CLI";
|
|
5
5
|
var license = "AGPL-3.0";
|
|
6
6
|
var repository = {
|
|
@@ -38,7 +38,6 @@ var dependencies = {
|
|
|
38
38
|
"@napi-rs/keyring": "^1.3.0",
|
|
39
39
|
"citty": "^0.2.2",
|
|
40
40
|
"cli-table3": "^0.6.5",
|
|
41
|
-
"yaml": "^2.8.4",
|
|
42
41
|
"zod": "^4.0.0"
|
|
43
42
|
};
|
|
44
43
|
var devDependencies = {
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ConfigError } from "./runtime-C9CEZhcn.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/commands/parse-id.ts
|
|
4
|
+
const INTEGER_PATTERN = /^-?\d+$/;
|
|
5
|
+
function parseId(value, name = "id") {
|
|
6
|
+
const trimmed = value.trim();
|
|
7
|
+
if (!INTEGER_PATTERN.test(trimmed)) throw new ConfigError(`invalid ${name}: "${value}" (expected integer)`);
|
|
8
|
+
const parsed = Number.parseInt(trimmed, 10);
|
|
9
|
+
if (parsed < 1) throw new ConfigError(`invalid ${name}: ${parsed} (must be a positive integer)`);
|
|
10
|
+
return parsed;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
//#endregion
|
|
14
|
+
export { parseId };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { parseJson } from "./runtime-
|
|
2
|
-
import { DEFAULT_INTERVAL_MS, DEFAULT_TIMEOUT_MS, pollUntil } from "./poll-
|
|
1
|
+
import { parseJson } from "./runtime-C9CEZhcn.mjs";
|
|
2
|
+
import { DEFAULT_INTERVAL_MS, DEFAULT_TIMEOUT_MS, pollUntil } from "./poll-ILanYysl.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
|
|
5
5
|
//#region src/domain/remote-sync.ts
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-BGfw4ZWJ.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderItem } from "./
|
|
4
|
-
import {
|
|
5
|
-
import { parseId } from "./parse-id-
|
|
6
|
-
import { CardQueryResult, cardQueryView } from "./card-C31pGtBZ.mjs";
|
|
3
|
+
import { ConfigError, connectionFlags, defineMetabaseCommand, outputFlags, parseJson, profileFlag, renderItem } from "./runtime-C9CEZhcn.mjs";
|
|
4
|
+
import { CardQueryResult, cardQueryView } from "./card-CsXk8T6A.mjs";
|
|
5
|
+
import { parseId } from "./parse-id-BhmmfyCP.mjs";
|
|
7
6
|
import { z } from "zod";
|
|
8
7
|
import { Writable } from "node:stream";
|
|
9
8
|
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-BGfw4ZWJ.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderItem } from "./
|
|
4
|
-
import {
|
|
5
|
-
import { promptConfirm } from "./prompt-fXeNtj0M.mjs";
|
|
3
|
+
import { ConfigError, clearLicense, defineMetabaseCommand, outputFlags, renderItem } from "./runtime-C9CEZhcn.mjs";
|
|
4
|
+
import { promptConfirm } from "./prompt-DpT8yAVy.mjs";
|
|
6
5
|
import { z } from "zod";
|
|
7
6
|
|
|
8
7
|
//#region src/commands/license/remove.ts
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-BGfw4ZWJ.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderItem } from "./
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { TransformRun } from "./transform-DfVkUttP.mjs";
|
|
8
|
-
import { parseWaitFlags, waitFlags } from "./wait-flags-CjW4ogUJ.mjs";
|
|
3
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag, renderItem } from "./runtime-C9CEZhcn.mjs";
|
|
4
|
+
import { parseId } from "./parse-id-BhmmfyCP.mjs";
|
|
5
|
+
import { DEFAULT_INTERVAL_MS, DEFAULT_TIMEOUT_MS, pollUntil } from "./poll-ILanYysl.mjs";
|
|
6
|
+
import { TransformRun } from "./transform-B5uRpg1G.mjs";
|
|
9
7
|
import { z } from "zod";
|
|
10
8
|
|
|
11
9
|
//#region src/commands/transform/run.ts
|
|
@@ -48,7 +46,21 @@ var run_default = defineMetabaseCommand({
|
|
|
48
46
|
...outputFlags,
|
|
49
47
|
...profileFlag,
|
|
50
48
|
...connectionFlags,
|
|
51
|
-
|
|
49
|
+
wait: {
|
|
50
|
+
type: "boolean",
|
|
51
|
+
description: "Poll until the run reaches a terminal status",
|
|
52
|
+
default: false
|
|
53
|
+
},
|
|
54
|
+
timeout: {
|
|
55
|
+
type: "string",
|
|
56
|
+
description: "Polling timeout in ms (used with --wait)",
|
|
57
|
+
default: String(DEFAULT_TIMEOUT_MS)
|
|
58
|
+
},
|
|
59
|
+
interval: {
|
|
60
|
+
type: "string",
|
|
61
|
+
description: "Polling interval in ms (used with --wait)",
|
|
62
|
+
default: String(DEFAULT_INTERVAL_MS)
|
|
63
|
+
},
|
|
52
64
|
id: {
|
|
53
65
|
type: "positional",
|
|
54
66
|
description: "Transform id",
|
|
@@ -59,18 +71,22 @@ var run_default = defineMetabaseCommand({
|
|
|
59
71
|
examples: ["metabase transform run 1", "metabase transform run 1 --wait --json"],
|
|
60
72
|
async run({ args, ctx, getClient }) {
|
|
61
73
|
const id = parseId(args.id);
|
|
62
|
-
const wait = parseWaitFlags(args);
|
|
63
74
|
const client = await getClient();
|
|
64
75
|
const kickoff = await client.requestParsed(TransformRunKickoff, `/api/transform/${id}/run`, { method: "POST" });
|
|
65
|
-
if (!wait
|
|
76
|
+
if (!args.wait || kickoff.run_id === null) {
|
|
66
77
|
renderItem({
|
|
67
78
|
message: kickoff.message,
|
|
68
79
|
run_id: kickoff.run_id
|
|
69
80
|
}, transformRunView, ctx);
|
|
70
81
|
return;
|
|
71
82
|
}
|
|
83
|
+
const intervalMs = parseId(args.interval, "interval");
|
|
84
|
+
const timeoutMs = parseId(args.timeout, "timeout");
|
|
72
85
|
const runId = kickoff.run_id;
|
|
73
|
-
const final = await pollUntil(async () => client.requestParsed(TransformRun, `/api/transform/run/${runId}`), (run) => RUN_TERMINAL_STATUSES.has(run.status),
|
|
86
|
+
const final = await pollUntil(async () => client.requestParsed(TransformRun, `/api/transform/run/${runId}`), (run) => RUN_TERMINAL_STATUSES.has(run.status), {
|
|
87
|
+
intervalMs,
|
|
88
|
+
timeoutMs
|
|
89
|
+
});
|
|
74
90
|
renderItem({
|
|
75
91
|
message: kickoff.message,
|
|
76
92
|
run_id: runId,
|