@metabase/cli 0.1.11 → 0.1.13
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 +34 -22
- package/dist/{add-collection-DKULSPwT.mjs → add-collection-BQsx2Q-S.mjs} +5 -5
- package/dist/add-collection-BiBKEHwz.mjs +10 -0
- package/dist/{archive-y-_m3XID.mjs → archive-BP53zrzs.mjs} +6 -6
- package/dist/{archive-BLbaqc-5.mjs → archive-BS4U2_gi.mjs} +7 -7
- package/dist/{archive-BL_0fXhf.mjs → archive-BrYMa87Z.mjs} +6 -6
- package/dist/{archive-ibJVYsBC.mjs → archive-D7qtYihp.mjs} +6 -6
- package/dist/{archive-BLxX3J6I.mjs → archive-Dt5zuiwu.mjs} +6 -6
- package/dist/{archive-BJ6uL3hh.mjs → archive-FLrOqODN.mjs} +7 -7
- package/dist/{archive-DQsV2uwy.mjs → archive-H8wBIt8q.mjs} +7 -7
- package/dist/auth-DWA7DSo9.mjs +19 -0
- package/dist/{body-DCQg78AF.mjs → body-3vzTm8Jj.mjs} +3 -3
- package/dist/{branches-CJVscsZe.mjs → branches-Lr1cCUdg.mjs} +6 -6
- package/dist/{cancel-C8W0sPix.mjs → cancel-Br3FHyDR.mjs} +5 -5
- package/dist/{cancel-task-dDgQDswT.mjs → cancel-task-BXgeq3MH.mjs} +6 -6
- package/dist/{capabilities-7L9GVMd_.mjs → capabilities-BX1rnVuH.mjs} +2 -14
- package/dist/card-DQV8WOIa.mjs +20 -0
- package/dist/{card-DnIeMmUn.mjs → card-wCPcuKSi.mjs} +1 -1
- package/dist/{cards-B7HE8BT6.mjs → cards-D-AkjCxr.mjs} +6 -6
- package/dist/cli.mjs +25 -25
- package/dist/collection-DIUWkVFY.mjs +20 -0
- package/dist/{collection-namespace-CBCApZJf.mjs → collection-namespace-BQ_ebqOP.mjs} +2 -2
- package/dist/{command-augment-BH9qgQ5u.mjs → command-augment-CAur0XOQ.mjs} +13 -2
- package/dist/{create-84jcfY4N.mjs → create-BpAak62U.mjs} +9 -9
- package/dist/{create-VjvMdgM5.mjs → create-C1xYECl-.mjs} +8 -8
- package/dist/{create-vNcD4jfq.mjs → create-CDL9WHiR.mjs} +10 -10
- package/dist/{create-Di9NY7kK.mjs → create-CcZEV9xx.mjs} +8 -8
- package/dist/{create-DN8us8si.mjs → create-DHUhRzcV.mjs} +11 -11
- package/dist/{create-BQA6nM5n.mjs → create-DUdkitlQ.mjs} +12 -12
- package/dist/{create-B6mzc8UK.mjs → create-Dx1SDXyQ.mjs} +8 -8
- package/dist/{create-branch-CCoDX2Qf.mjs → create-branch-BvZKizC4.mjs} +6 -6
- package/dist/{create-BWaBYzhC.mjs → create-ux0yPpq1.mjs} +10 -10
- package/dist/{create-DPASPFGi.mjs → create-y4j2I1aH.mjs} +11 -11
- package/dist/{current-task-QdxA3mSX.mjs → current-task-DaWn0DYt.mjs} +6 -6
- package/dist/dashboard-CohHWhkV.mjs +21 -0
- package/dist/{database-Dsv4QBs0.mjs → database-BmsxuRmO.mjs} +1 -1
- package/dist/db-BD8JZUDw.mjs +22 -0
- package/dist/{delete-CE_Jfjni.mjs → delete-CW3cEHlr.mjs} +7 -7
- package/dist/{delete-ByJ6guaH.mjs → delete-DFWjBpzl.mjs} +7 -7
- package/dist/{delete-runtime-CjFc69tS.mjs → delete-runtime-BhZAAvjc.mjs} +3 -3
- package/dist/{delete-table-D5LDUkOk.mjs → delete-table-Wa0yRsnM.mjs} +7 -7
- package/dist/{dirty-C6yzkIPn.mjs → dirty-CKcGYIpv.mjs} +6 -6
- package/dist/document-CRuag6F5.mjs +19 -0
- package/dist/{eid-ZOyix96k.mjs → eid-m44hs7Ul.mjs} +7 -7
- package/dist/{error-C1bUYXn7.mjs → error-DR_i1hxJ.mjs} +40 -5
- package/dist/{export-BhbBX-pl.mjs → export-8C4F9pYn.mjs} +8 -8
- package/dist/field-CuabjsR7.mjs +18 -0
- package/dist/{fields-CZ6IK8Qf.mjs → fields-hXrRjf7e.mjs} +7 -7
- package/dist/{get-D49EdHgH.mjs → get-3zFOkcl_.mjs} +7 -7
- package/dist/{get-CqKttHWW.mjs → get-8r-_QuSr.mjs} +6 -6
- package/dist/{get-DlzC0xCg.mjs → get-9MCrsgTf.mjs} +8 -8
- package/dist/{get-B03gdAun.mjs → get-BjCQctuS.mjs} +6 -6
- package/dist/{get-C0emTO1r.mjs → get-BlNLGR-F.mjs} +6 -6
- package/dist/{get-9b0ZEWh1.mjs → get-BxgSKzca.mjs} +6 -6
- package/dist/{get-mR01pCNG.mjs → get-C7EKJGTP.mjs} +6 -6
- package/dist/{get-Bbo2Y-aL.mjs → get-Cit5liJv.mjs} +7 -7
- package/dist/{get-BtqQ98nb.mjs → get-CqU4xVSg.mjs} +5 -5
- package/dist/{get-157SWRte.mjs → get-CvLECgtm.mjs} +6 -6
- package/dist/{get-nl41R-2q.mjs → get-D7WUNQYY.mjs} +6 -6
- package/dist/{get-BKWZA_22.mjs → get-DWg3riaY.mjs} +6 -6
- package/dist/{get-DIyv2a7h.mjs → get-cjqlMKF5.mjs} +6 -6
- package/dist/{get-run-_dlMCGp5.mjs → get-run-CTDPEDcU.mjs} +6 -6
- package/dist/{get-DclzgC5G.mjs → get-xVPjvf7O.mjs} +6 -6
- package/dist/git-sync-CKsGGVOm.mjs +28 -0
- package/dist/{has-remote-changes-CToITRyl.mjs → has-remote-changes-DYo4PQfC.mjs} +6 -6
- package/dist/{import-xnYHb4QX.mjs → import-Cwd-_wYv.mjs} +8 -8
- package/dist/{input-xewHccej.mjs → input-BXWgdKiS.mjs} +26 -4
- package/dist/{is-dirty-BHyMmUVV.mjs → is-dirty-HynZex-f.mjs} +4 -4
- package/dist/is-dirty-Mkgi21bq.mjs +9 -0
- package/dist/{items-D3AmbIOO.mjs → items-D4pSBGxR.mjs} +8 -8
- package/dist/{key-y4TtxKwU.mjs → key-C8q5oIr5.mjs} +1 -1
- package/dist/{list-CIu1zfpU.mjs → list-B2QX8BZ3.mjs} +5 -5
- package/dist/{list-D7Np4fwk.mjs → list-Bqy3rN6k.mjs} +5 -5
- package/dist/{list-BhZYkbc9.mjs → list-CI1WQ8U3.mjs} +7 -7
- package/dist/{list-DKPhFATP.mjs → list-Ctze3nfU.mjs} +5 -5
- package/dist/{list-BtTRJyrR.mjs → list-D-Ms9fhd.mjs} +7 -7
- package/dist/{list-BdStkg8G.mjs → list-D3BBrpoQ.mjs} +5 -5
- package/dist/{list-BkzrFyJO.mjs → list-D7o0DOZe.mjs} +5 -5
- package/dist/{list-DSJwMHXB.mjs → list-DBjOFesD.mjs} +6 -6
- package/dist/{list-C5NywUBH.mjs → list-DMZumpNv.mjs} +5 -5
- package/dist/{list-Byn-dRW4.mjs → list-De2qX1w8.mjs} +7 -7
- package/dist/{list-CA6MlByL.mjs → list-ET066OdN.mjs} +5 -5
- package/dist/{list-C_d7ppOJ.mjs → list-F0BQNbaZ.mjs} +25 -18
- package/dist/{list-BHCVZh7Q.mjs → list-XgdM17ix.mjs} +6 -6
- package/dist/{list-5ZZfaOzm.mjs → list-_xdr1WKh.mjs} +5 -5
- package/dist/login-BHDdLJzw.mjs +453 -0
- package/dist/{logout-Bltlsm6u.mjs → logout-ClizU0OL.mjs} +15 -6
- package/dist/{manifest-BPHqF5LY.mjs → manifest-DYeLri80.mjs} +2 -2
- package/dist/measure-SmyQt9Lg.mjs +19 -0
- package/dist/{metadata-BKcyjsoA.mjs → metadata-D23RdbEZ.mjs} +8 -8
- package/dist/{metadata-Bf2TfG8F.mjs → metadata-a_N6Sx30.mjs} +7 -7
- package/dist/{parse-enum-Dr7ACrTR.mjs → parse-enum-BatHQ-Gs.mjs} +1 -1
- package/dist/{parse-id-CWRJlQVK.mjs → parse-id-B1BlAunl.mjs} +1 -1
- package/dist/{parse-ref-BiETXmvm.mjs → parse-ref-CZr1bYIl.mjs} +1 -1
- package/dist/{path-Djw9IARu.mjs → path-FSfPscAQ.mjs} +5 -5
- package/dist/{poll-hJrV0cPm.mjs → poll-Dl5Zv4Ed.mjs} +2 -2
- package/dist/{poll-task-DK6X9Juu.mjs → poll-task-BoRK94WQ.mjs} +2 -2
- package/dist/{preflight-DjSPp3Ct.mjs → preflight-CVlo39xa.mjs} +4 -4
- package/dist/process-DsGf7Mg5.mjs +73 -0
- package/dist/{prompt-u4WhE4T5.mjs → prompt-Bc_bHSD0.mjs} +13 -3
- package/dist/{query-Cc-9oPsW.mjs → query-CSvpJssD.mjs} +8 -8
- package/dist/{query-result-B4kTRid7.mjs → query-result-L5_NrwQR.mjs} +1 -1
- package/dist/{query-Do5n5SZc.mjs → query-yZ9HeaGp.mjs} +12 -12
- package/dist/{remove-collection-DVvnmU06.mjs → remove-collection-CV7ssevw.mjs} +8 -8
- package/dist/{render-BQHJhSP1.mjs → render-CkuFkWlQ.mjs} +6 -1
- package/dist/{rescan-values-CHluR3JC.mjs → rescan-values-CMeOv6yx.mjs} +8 -8
- package/dist/{run-CcJbcaw8.mjs → run-CIJOYXor.mjs} +8 -8
- package/dist/{runs-Dc8qZBhl.mjs → runs--CzbmfPg.mjs} +7 -7
- package/dist/{runtime-jWkzCPlL.mjs → runtime-DJTGfiKO.mjs} +591 -123
- package/dist/{schema-tables-CZ6EMHUZ.mjs → schema-tables-BII9pHR8.mjs} +7 -7
- package/dist/{schemas-Br1cpOZc.mjs → schemas-BzxVz71I.mjs} +5 -5
- package/dist/{search-DB2joPgt.mjs → search-CjJZdaM0.mjs} +5 -5
- package/dist/segment-dkO4Ualw.mjs +19 -0
- package/dist/{set-BRhVzEWd.mjs → set-Ds_brNWu.mjs} +8 -8
- package/dist/{setting-CuxO4T1n.mjs → setting-YDJRWd1m.mjs} +3 -3
- package/dist/{setup-Bn4jwxdl.mjs → setup-DJb-NgSM.mjs} +7 -7
- package/dist/{skills-CY_FmaPo.mjs → skills-CJ8g8fhQ.mjs} +1 -1
- package/dist/{skills-Db1r65S5.mjs → skills-Dn-kn8Wj.mjs} +3 -3
- package/dist/snippet-DqTiC73e.mjs +19 -0
- package/dist/{stash-Dp2JFgmp.mjs → stash-DGujowmx.mjs} +8 -8
- package/dist/{status-BxGBwALE.mjs → status-3-Tl07gu.mjs} +14 -6
- package/dist/{status-j09luNai.mjs → status-Cx0TIn1I.mjs} +7 -7
- package/dist/{summary-DVrj7DSa.mjs → summary-CT-xFvnX.mjs} +6 -6
- package/dist/{sync-schema-BVHvjzGX.mjs → sync-schema-BTF7O3FM.mjs} +10 -10
- package/dist/table-DNGPtV4P.mjs +19 -0
- package/dist/{table-CkWja2UH.mjs → table-qDD2kApF.mjs} +1 -1
- package/dist/transform-DEbvouxo.mjs +24 -0
- package/dist/transform-job-Du8npb7F.mjs +19 -0
- package/dist/{tree-BEPw6xbY.mjs → tree-CLUxXw-Z.mjs} +5 -5
- package/dist/{update-CAoOJRwz.mjs → update-6IuvkFCk.mjs} +11 -11
- package/dist/{update-DiG6SSGm.mjs → update-BeH_S7h9.mjs} +9 -9
- package/dist/{update-Bd0ASKUG.mjs → update-BfNmqvuN.mjs} +13 -13
- package/dist/{update-B5VBJFU9.mjs → update-C_Ui5qPU.mjs} +12 -12
- package/dist/{update-BXaT0Faw.mjs → update-DD5Q37bz.mjs} +9 -9
- package/dist/{update-DzKPxRBE.mjs → update-DdqzxPIr.mjs} +12 -12
- package/dist/{update-fVqLtZ_t.mjs → update-DpCv5Mdo.mjs} +9 -9
- package/dist/{update-C5vlBTII.mjs → update-I0t_6Mni.mjs} +9 -9
- package/dist/{update-C875_WGf.mjs → update-Z_LMzsiz.mjs} +11 -11
- package/dist/{update-dashcard-7bZtw04E.mjs → update-dashcard-Bl3wbB8-.mjs} +9 -9
- package/dist/{update-Bn5wUyTQ.mjs → update-tQvEYuzD.mjs} +10 -10
- package/dist/{upgrade-DdCxE9Ml.mjs → upgrade-r2ZlfstE.mjs} +6 -34
- package/dist/{uuid-DywghRXO.mjs → uuid-BduDonqb.mjs} +4 -4
- package/dist/{validate-B62TRDGV.mjs → validate-VawhJ5Sc.mjs} +2 -2
- package/dist/{validate-query-BpiN1CFu.mjs → validate-query-CSV-TTnd.mjs} +3 -3
- package/dist/{values-DSul3siC.mjs → values-DuNE6Jxc.mjs} +6 -6
- package/dist/{verify-DzDyKXOa.mjs → verify-D_yq68-R.mjs} +5 -5
- package/dist/{wait-CacFZI5Y.mjs → wait-CoDzO37B.mjs} +7 -7
- package/dist/{wait-flags-DV419apK.mjs → wait-flags-BxUfF5zy.mjs} +2 -2
- package/package.json +1 -1
- package/dist/add-collection-DyEe_xRO.mjs +0 -10
- package/dist/auth-BKaQjcmP.mjs +0 -19
- package/dist/card-CGBvUmCW.mjs +0 -20
- package/dist/collection-Ch7pPKHD.mjs +0 -20
- package/dist/dashboard-BDb2krMr.mjs +0 -21
- package/dist/db-CoVdkdVm.mjs +0 -22
- package/dist/document-BA2S1ev3.mjs +0 -19
- package/dist/field-B5bptFqL.mjs +0 -18
- package/dist/git-sync-DqJmONiB.mjs +0 -28
- package/dist/is-dirty-BvA3yzRc.mjs +0 -9
- package/dist/login-jWvDDvEm.mjs +0 -180
- package/dist/measure-DBX4k13t.mjs +0 -19
- package/dist/segment-BWcyA1P-.mjs +0 -19
- package/dist/snippet-C9UM6NwC.mjs +0 -19
- package/dist/table-DYI8K12W.mjs +0 -19
- package/dist/transform-CvbMbJtI.mjs +0 -24
- package/dist/transform-job-CtzgvccZ.mjs +0 -19
- /package/dist/{body-flags-D78h_-Ua.mjs → body-flags-D7q87Btw.mjs} +0 -0
- /package/dist/{collection-BPTlcFw5.mjs → collection-Deiziuu2.mjs} +0 -0
- /package/dist/{dashboard-FY5UzJ_Z.mjs → dashboard-B4bn3z6t.mjs} +0 -0
- /package/dist/{document-CcfiiV3b.mjs → document-qfwR0r63.mjs} +0 -0
- /package/dist/{field-MGxpNQUH.mjs → field-E0IBy4Uw.mjs} +0 -0
- /package/dist/{measure-COGAoZpo.mjs → measure-JJAdFoqK.mjs} +0 -0
- /package/dist/{paginate-Dfm9eO9A.mjs → paginate-BexjkjbY.mjs} +0 -0
- /package/dist/{revision-message-flag-Bo-Kvv6F.mjs → revision-message-flag-C7zBeWEt.mjs} +0 -0
- /package/dist/{segment-d-708KKO.mjs → segment-B9SEv9V_.mjs} +0 -0
- /package/dist/{setting-CSJvi1-6.mjs → setting-i0pugNHl.mjs} +0 -0
- /package/dist/{snippet-BZvo05ua.mjs → snippet-NNzqlksR.mjs} +0 -0
- /package/dist/{transform-job-n8W6tLqF.mjs → transform-job-B9pXBOwr.mjs} +0 -0
- /package/dist/{transform--dviwMA1.mjs → transform-qczxOAzn.mjs} +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import "./command-augment-
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import { renderSummary } from "./capabilities-
|
|
5
|
-
import "./input-
|
|
6
|
-
import { readBody } from "./body-
|
|
7
|
-
import { bodyInputFlags } from "./body-flags-
|
|
8
|
-
import "./validate-
|
|
9
|
-
import { MEASURE_DEFINITION_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-
|
|
10
|
-
import { Measure, MeasureCreateInput, measureView } from "./measure-
|
|
1
|
+
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-DR_i1hxJ.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-DJTGfiKO.mjs";
|
|
4
|
+
import { renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
5
|
+
import "./input-BXWgdKiS.mjs";
|
|
6
|
+
import { readBody } from "./body-3vzTm8Jj.mjs";
|
|
7
|
+
import { bodyInputFlags } from "./body-flags-D7q87Btw.mjs";
|
|
8
|
+
import "./validate-VawhJ5Sc.mjs";
|
|
9
|
+
import { MEASURE_DEFINITION_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-CSV-TTnd.mjs";
|
|
10
|
+
import { Measure, MeasureCreateInput, measureView } from "./measure-JJAdFoqK.mjs";
|
|
11
11
|
|
|
12
12
|
//#region src/commands/measure/create.ts
|
|
13
13
|
var create_default = defineMetabaseCommand({
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import "./command-augment-
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import { renderSummary } from "./capabilities-
|
|
5
|
-
import "./input-
|
|
6
|
-
import { readBody } from "./body-
|
|
7
|
-
import { bodyInputFlags } from "./body-flags-
|
|
8
|
-
import { Document, DocumentCreateInput, documentView } from "./document-
|
|
1
|
+
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-DR_i1hxJ.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-DJTGfiKO.mjs";
|
|
4
|
+
import { renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
5
|
+
import "./input-BXWgdKiS.mjs";
|
|
6
|
+
import { readBody } from "./body-3vzTm8Jj.mjs";
|
|
7
|
+
import { bodyInputFlags } from "./body-flags-D7q87Btw.mjs";
|
|
8
|
+
import { Document, DocumentCreateInput, documentView } from "./document-qfwR0r63.mjs";
|
|
9
9
|
|
|
10
10
|
//#region src/commands/document/create.ts
|
|
11
11
|
var create_default = defineMetabaseCommand({
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import "./command-augment-
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import { renderSummary } from "./capabilities-
|
|
5
|
-
import "./input-
|
|
6
|
-
import "./field-
|
|
7
|
-
import { Card, CardCreateInput, cardView } from "./card-
|
|
8
|
-
import { readBody } from "./body-
|
|
9
|
-
import { bodyInputFlags } from "./body-flags-
|
|
10
|
-
import "./validate-
|
|
11
|
-
import { CARD_DATASET_QUERY_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-
|
|
1
|
+
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-DR_i1hxJ.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-DJTGfiKO.mjs";
|
|
4
|
+
import { renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
5
|
+
import "./input-BXWgdKiS.mjs";
|
|
6
|
+
import "./field-E0IBy4Uw.mjs";
|
|
7
|
+
import { Card, CardCreateInput, cardView } from "./card-wCPcuKSi.mjs";
|
|
8
|
+
import { readBody } from "./body-3vzTm8Jj.mjs";
|
|
9
|
+
import { bodyInputFlags } from "./body-flags-D7q87Btw.mjs";
|
|
10
|
+
import "./validate-VawhJ5Sc.mjs";
|
|
11
|
+
import { CARD_DATASET_QUERY_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-CSV-TTnd.mjs";
|
|
12
12
|
|
|
13
13
|
//#region src/commands/card/create.ts
|
|
14
14
|
var create_default = defineMetabaseCommand({
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import "./command-augment-
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import { renderSummary } from "./capabilities-
|
|
5
|
-
import "./input-
|
|
6
|
-
import "./field-
|
|
7
|
-
import "./card-
|
|
8
|
-
import { readBody } from "./body-
|
|
9
|
-
import { bodyInputFlags } from "./body-flags-
|
|
10
|
-
import "./validate-
|
|
11
|
-
import { Dashboard, DashboardCreateInput, DashboardDetail, dashboardView } from "./dashboard-
|
|
12
|
-
import { preflightDashcardCardReferences, wrapChainedDashboardWriteError } from "./preflight-
|
|
1
|
+
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-DR_i1hxJ.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-DJTGfiKO.mjs";
|
|
4
|
+
import { renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
5
|
+
import "./input-BXWgdKiS.mjs";
|
|
6
|
+
import "./field-E0IBy4Uw.mjs";
|
|
7
|
+
import "./card-wCPcuKSi.mjs";
|
|
8
|
+
import { readBody } from "./body-3vzTm8Jj.mjs";
|
|
9
|
+
import { bodyInputFlags } from "./body-flags-D7q87Btw.mjs";
|
|
10
|
+
import "./validate-VawhJ5Sc.mjs";
|
|
11
|
+
import { Dashboard, DashboardCreateInput, DashboardDetail, dashboardView } from "./dashboard-B4bn3z6t.mjs";
|
|
12
|
+
import { preflightDashcardCardReferences, wrapChainedDashboardWriteError } from "./preflight-CVlo39xa.mjs";
|
|
13
13
|
|
|
14
14
|
//#region src/commands/dashboard/create.ts
|
|
15
15
|
var create_default = defineMetabaseCommand({
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import "./command-augment-
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import { renderSummary } from "./capabilities-
|
|
5
|
-
import "./input-
|
|
6
|
-
import { readBody } from "./body-
|
|
7
|
-
import { bodyInputFlags } from "./body-flags-
|
|
8
|
-
import { Snippet, SnippetCreateInput, snippetView } from "./snippet-
|
|
1
|
+
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-DR_i1hxJ.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-DJTGfiKO.mjs";
|
|
4
|
+
import { renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
5
|
+
import "./input-BXWgdKiS.mjs";
|
|
6
|
+
import { readBody } from "./body-3vzTm8Jj.mjs";
|
|
7
|
+
import { bodyInputFlags } from "./body-flags-D7q87Btw.mjs";
|
|
8
|
+
import { Snippet, SnippetCreateInput, snippetView } from "./snippet-NNzqlksR.mjs";
|
|
9
9
|
|
|
10
10
|
//#region src/commands/snippet/create.ts
|
|
11
11
|
var create_default = defineMetabaseCommand({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ConfigError } from "./command-augment-
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import { renderSummary } from "./capabilities-
|
|
5
|
-
import "./poll-
|
|
6
|
-
import { REMOTE_SYNC_PATHS } from "./poll-task-
|
|
1
|
+
import { ConfigError } from "./command-augment-CAur0XOQ.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-DR_i1hxJ.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-DJTGfiKO.mjs";
|
|
4
|
+
import { renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
5
|
+
import "./poll-Dl5Zv4Ed.mjs";
|
|
6
|
+
import { REMOTE_SYNC_PATHS } from "./poll-task-BoRK94WQ.mjs";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
|
|
9
9
|
//#region src/commands/git-sync/create-branch.ts
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import "./command-augment-
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import { renderSummary } from "./capabilities-
|
|
5
|
-
import "./input-
|
|
6
|
-
import { readBody } from "./body-
|
|
7
|
-
import { bodyInputFlags } from "./body-flags-
|
|
8
|
-
import "./validate-
|
|
9
|
-
import { SEGMENT_DEFINITION_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-
|
|
10
|
-
import { Segment, SegmentCreateInput, segmentView } from "./segment-
|
|
1
|
+
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-DR_i1hxJ.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-DJTGfiKO.mjs";
|
|
4
|
+
import { renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
5
|
+
import "./input-BXWgdKiS.mjs";
|
|
6
|
+
import { readBody } from "./body-3vzTm8Jj.mjs";
|
|
7
|
+
import { bodyInputFlags } from "./body-flags-D7q87Btw.mjs";
|
|
8
|
+
import "./validate-VawhJ5Sc.mjs";
|
|
9
|
+
import { SEGMENT_DEFINITION_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-CSV-TTnd.mjs";
|
|
10
|
+
import { Segment, SegmentCreateInput, segmentView } from "./segment-B9SEv9V_.mjs";
|
|
11
11
|
|
|
12
12
|
//#region src/commands/segment/create.ts
|
|
13
13
|
var create_default = defineMetabaseCommand({
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import "./command-augment-
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import { renderSummary } from "./capabilities-
|
|
5
|
-
import "./input-
|
|
6
|
-
import { readBody } from "./body-
|
|
7
|
-
import { bodyInputFlags } from "./body-flags-
|
|
8
|
-
import "./validate-
|
|
9
|
-
import { TRANSFORM_SOURCE_QUERY_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-
|
|
10
|
-
import { Transform, TransformCreateInput, transformView } from "./transform
|
|
11
|
-
import { enrichTransformCollectionError } from "./collection-namespace-
|
|
1
|
+
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-DR_i1hxJ.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-DJTGfiKO.mjs";
|
|
4
|
+
import { renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
5
|
+
import "./input-BXWgdKiS.mjs";
|
|
6
|
+
import { readBody } from "./body-3vzTm8Jj.mjs";
|
|
7
|
+
import { bodyInputFlags } from "./body-flags-D7q87Btw.mjs";
|
|
8
|
+
import "./validate-VawhJ5Sc.mjs";
|
|
9
|
+
import { TRANSFORM_SOURCE_QUERY_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-CSV-TTnd.mjs";
|
|
10
|
+
import { Transform, TransformCreateInput, transformView } from "./transform-qczxOAzn.mjs";
|
|
11
|
+
import { enrichTransformCollectionError } from "./collection-namespace-BQ_ebqOP.mjs";
|
|
12
12
|
|
|
13
13
|
//#region src/commands/transform/create.ts
|
|
14
14
|
var create_default = defineMetabaseCommand({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "./command-augment-
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import { renderSummary } from "./capabilities-
|
|
5
|
-
import "./poll-
|
|
6
|
-
import { SyncTaskOrIdle, fetchCurrentTask, formatSyncTask, syncTaskIdleView, syncTaskView } from "./poll-task-
|
|
1
|
+
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-DR_i1hxJ.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-DJTGfiKO.mjs";
|
|
4
|
+
import { renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
5
|
+
import "./poll-Dl5Zv4Ed.mjs";
|
|
6
|
+
import { SyncTaskOrIdle, fetchCurrentTask, formatSyncTask, syncTaskIdleView, syncTaskView } from "./poll-task-BoRK94WQ.mjs";
|
|
7
7
|
|
|
8
8
|
//#region src/commands/git-sync/current-task.ts
|
|
9
9
|
const CurrentTaskResult = SyncTaskOrIdle;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { defineCommand } from "citty";
|
|
2
|
+
|
|
3
|
+
//#region src/commands/dashboard/index.ts
|
|
4
|
+
var dashboard_default = defineCommand({
|
|
5
|
+
meta: {
|
|
6
|
+
name: "dashboard",
|
|
7
|
+
description: "Manage Metabase dashboards"
|
|
8
|
+
},
|
|
9
|
+
subCommands: {
|
|
10
|
+
list: () => import("./list-XgdM17ix.mjs").then((mod) => mod.default),
|
|
11
|
+
get: () => import("./get-CvLECgtm.mjs").then((mod) => mod.default),
|
|
12
|
+
cards: () => import("./cards-D-AkjCxr.mjs").then((mod) => mod.default),
|
|
13
|
+
create: () => import("./create-DUdkitlQ.mjs").then((mod) => mod.default),
|
|
14
|
+
update: () => import("./update-BfNmqvuN.mjs").then((mod) => mod.default),
|
|
15
|
+
"update-dashcard": () => import("./update-dashcard-Bl3wbB8-.mjs").then((mod) => mod.default),
|
|
16
|
+
archive: () => import("./archive-D7qtYihp.mjs").then((mod) => mod.default)
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
//#endregion
|
|
21
|
+
export { dashboard_default as default };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { defineCommand } from "citty";
|
|
2
|
+
|
|
3
|
+
//#region src/commands/db/index.ts
|
|
4
|
+
var db_default = defineCommand({
|
|
5
|
+
meta: {
|
|
6
|
+
name: "db",
|
|
7
|
+
description: "Inspect and sync Metabase databases",
|
|
8
|
+
alias: "database"
|
|
9
|
+
},
|
|
10
|
+
subCommands: {
|
|
11
|
+
list: () => import("./list-D-Ms9fhd.mjs").then((m) => m.default),
|
|
12
|
+
get: () => import("./get-9MCrsgTf.mjs").then((m) => m.default),
|
|
13
|
+
metadata: () => import("./metadata-D23RdbEZ.mjs").then((m) => m.default),
|
|
14
|
+
schemas: () => import("./schemas-BzxVz71I.mjs").then((m) => m.default),
|
|
15
|
+
"schema-tables": () => import("./schema-tables-BII9pHR8.mjs").then((m) => m.default),
|
|
16
|
+
"sync-schema": () => import("./sync-schema-BTF7O3FM.mjs").then((m) => m.default),
|
|
17
|
+
"rescan-values": () => import("./rescan-values-CMeOv6yx.mjs").then((m) => m.default)
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
//#endregion
|
|
22
|
+
export { db_default as default };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "./command-augment-
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./capabilities-
|
|
5
|
-
import "./prompt-
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
7
|
-
import { DeleteResult, confirmAndDelete } from "./delete-runtime-
|
|
1
|
+
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-DR_i1hxJ.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-DJTGfiKO.mjs";
|
|
4
|
+
import "./capabilities-BX1rnVuH.mjs";
|
|
5
|
+
import "./prompt-Bc_bHSD0.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-B1BlAunl.mjs";
|
|
7
|
+
import { DeleteResult, confirmAndDelete } from "./delete-runtime-BhZAAvjc.mjs";
|
|
8
8
|
|
|
9
9
|
//#region src/commands/transform/delete.ts
|
|
10
10
|
var delete_default = defineMetabaseCommand({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "./command-augment-
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./capabilities-
|
|
5
|
-
import "./prompt-
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
7
|
-
import { DeleteResult, confirmAndDelete } from "./delete-runtime-
|
|
1
|
+
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-DR_i1hxJ.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-DJTGfiKO.mjs";
|
|
4
|
+
import "./capabilities-BX1rnVuH.mjs";
|
|
5
|
+
import "./prompt-Bc_bHSD0.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-B1BlAunl.mjs";
|
|
7
|
+
import { DeleteResult, confirmAndDelete } from "./delete-runtime-BhZAAvjc.mjs";
|
|
8
8
|
|
|
9
9
|
//#region src/commands/transform-job/delete.ts
|
|
10
10
|
var delete_default = defineMetabaseCommand({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ConfigError } from "./command-augment-
|
|
2
|
-
import { renderSummary } from "./capabilities-
|
|
3
|
-
import { promptConfirm } from "./prompt-
|
|
1
|
+
import { ConfigError } from "./command-augment-CAur0XOQ.mjs";
|
|
2
|
+
import { renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
3
|
+
import { promptConfirm } from "./prompt-Bc_bHSD0.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
|
|
6
6
|
//#region src/commands/delete-runtime.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "./command-augment-
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./capabilities-
|
|
5
|
-
import "./prompt-
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
7
|
-
import { DeleteResult, confirmAndDelete } from "./delete-runtime-
|
|
1
|
+
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-DR_i1hxJ.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-DJTGfiKO.mjs";
|
|
4
|
+
import "./capabilities-BX1rnVuH.mjs";
|
|
5
|
+
import "./prompt-Bc_bHSD0.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-B1BlAunl.mjs";
|
|
7
|
+
import { DeleteResult, confirmAndDelete } from "./delete-runtime-BhZAAvjc.mjs";
|
|
8
8
|
|
|
9
9
|
//#region src/commands/transform/delete-table.ts
|
|
10
10
|
var delete_table_default = defineMetabaseCommand({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "./command-augment-
|
|
2
|
-
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import { renderList } from "./capabilities-
|
|
5
|
-
import "./poll-
|
|
6
|
-
import { REMOTE_SYNC_PATHS, SyncDirtyItem, SyncDirtyItemCompact, syncDirtyItemView } from "./poll-task-
|
|
1
|
+
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
+
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-DR_i1hxJ.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-DJTGfiKO.mjs";
|
|
4
|
+
import { renderList } from "./capabilities-BX1rnVuH.mjs";
|
|
5
|
+
import "./poll-Dl5Zv4Ed.mjs";
|
|
6
|
+
import { REMOTE_SYNC_PATHS, SyncDirtyItem, SyncDirtyItemCompact, syncDirtyItemView } from "./poll-task-BoRK94WQ.mjs";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
|
|
9
9
|
//#region src/commands/git-sync/dirty.ts
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { defineCommand } from "citty";
|
|
2
|
+
|
|
3
|
+
//#region src/commands/document/index.ts
|
|
4
|
+
var document_default = defineCommand({
|
|
5
|
+
meta: {
|
|
6
|
+
name: "document",
|
|
7
|
+
description: "Manage Metabase documents"
|
|
8
|
+
},
|
|
9
|
+
subCommands: {
|
|
10
|
+
list: () => import("./list-ET066OdN.mjs").then((mod) => mod.default),
|
|
11
|
+
get: () => import("./get-xVPjvf7O.mjs").then((mod) => mod.default),
|
|
12
|
+
create: () => import("./create-CcZEV9xx.mjs").then((mod) => mod.default),
|
|
13
|
+
update: () => import("./update-BeH_S7h9.mjs").then((mod) => mod.default),
|
|
14
|
+
archive: () => import("./archive-Dt5zuiwu.mjs").then((mod) => mod.default)
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
export { document_default as default };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ConfigError } from "./command-augment-
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand, parseCsv } from "./runtime-
|
|
4
|
-
import { renderSummary } from "./capabilities-
|
|
5
|
-
import "./input-
|
|
6
|
-
import { readBody } from "./body-
|
|
7
|
-
import { bodyInputFlags } from "./body-flags-
|
|
1
|
+
import { ConfigError } from "./command-augment-CAur0XOQ.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-DR_i1hxJ.mjs";
|
|
3
|
+
import { defineMetabaseCommand, parseCsv } from "./runtime-DJTGfiKO.mjs";
|
|
4
|
+
import { renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
5
|
+
import "./input-BXWgdKiS.mjs";
|
|
6
|
+
import { readBody } from "./body-3vzTm8Jj.mjs";
|
|
7
|
+
import { bodyInputFlags } from "./body-flags-D7q87Btw.mjs";
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
|
|
10
10
|
//#region src/domain/eid-translation.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { toMetabaseError, warn } from "./command-augment-CAur0XOQ.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
|
|
4
4
|
//#region src/output/types.ts
|
|
@@ -75,7 +75,7 @@ const connectionFlags = {
|
|
|
75
75
|
//#endregion
|
|
76
76
|
//#region package.json
|
|
77
77
|
var name = "@metabase/cli";
|
|
78
|
-
var version = "0.1.
|
|
78
|
+
var version = "0.1.13";
|
|
79
79
|
var description = "Metabase CLI";
|
|
80
80
|
var license = "AGPL-3.0";
|
|
81
81
|
var repository = {
|
|
@@ -158,14 +158,49 @@ var package_default = {
|
|
|
158
158
|
engines
|
|
159
159
|
};
|
|
160
160
|
|
|
161
|
+
//#endregion
|
|
162
|
+
//#region src/core/env.ts
|
|
163
|
+
const CANONICAL_PREFIX = "MB_";
|
|
164
|
+
const LEGACY_PREFIX = "METABASE_";
|
|
165
|
+
const ENV_URL = "MB_URL";
|
|
166
|
+
const ENV_API_KEY = "MB_API_KEY";
|
|
167
|
+
const ENV_PROFILE = "MB_PROFILE";
|
|
168
|
+
const ENV_VERBOSE = "MB_VERBOSE";
|
|
169
|
+
const ENV_SKIP_PREFLIGHT = "MB_CLI_SKIP_PREFLIGHT";
|
|
170
|
+
const ENV_DISABLE_KEYRING = "MB_CLI_DISABLE_KEYRING";
|
|
171
|
+
function legacyNameFor(canonical) {
|
|
172
|
+
return LEGACY_PREFIX + canonical.slice(CANONICAL_PREFIX.length);
|
|
173
|
+
}
|
|
174
|
+
const legacyVarsUsed = new Set();
|
|
175
|
+
function readEnv(canonical) {
|
|
176
|
+
const direct = process.env[canonical];
|
|
177
|
+
if (direct !== void 0) return direct;
|
|
178
|
+
const legacyValue = process.env[legacyNameFor(canonical)];
|
|
179
|
+
if (legacyValue !== void 0) {
|
|
180
|
+
legacyVarsUsed.add(canonical);
|
|
181
|
+
return legacyValue;
|
|
182
|
+
}
|
|
183
|
+
return void 0;
|
|
184
|
+
}
|
|
185
|
+
function consumeLegacyEnvWarnings() {
|
|
186
|
+
if (legacyVarsUsed.size === 0) return [];
|
|
187
|
+
const messages = [...legacyVarsUsed].map(legacyEnvWarning);
|
|
188
|
+
legacyVarsUsed.clear();
|
|
189
|
+
return messages;
|
|
190
|
+
}
|
|
191
|
+
function legacyEnvWarning(canonical) {
|
|
192
|
+
return `warning: ${legacyNameFor(canonical)} is deprecated; set ${canonical} instead`;
|
|
193
|
+
}
|
|
194
|
+
|
|
161
195
|
//#endregion
|
|
162
196
|
//#region src/output/error.ts
|
|
163
|
-
const VERBOSE_BREADCRUMB = "(rerun with
|
|
197
|
+
const VERBOSE_BREADCRUMB = "(rerun with MB_VERBOSE=1 for details)";
|
|
164
198
|
function reportError(error, format) {
|
|
165
199
|
const handled = toMetabaseError(error);
|
|
166
|
-
const verbose =
|
|
200
|
+
const verbose = readEnv(ENV_VERBOSE) === "1";
|
|
167
201
|
if (format === "json") writeJsonError(handled, verbose);
|
|
168
202
|
else writeTextError(handled, verbose);
|
|
203
|
+
for (const message of consumeLegacyEnvWarnings()) warn(message);
|
|
169
204
|
process.exitCode = handled.exitCode;
|
|
170
205
|
}
|
|
171
206
|
function writeTextError(handled, verbose) {
|
|
@@ -189,4 +224,4 @@ function writeJsonError(handled, verbose) {
|
|
|
189
224
|
}
|
|
190
225
|
|
|
191
226
|
//#endregion
|
|
192
|
-
export { DEFAULT_MAX_BYTES, connectionFlags, listEnvelopeSchema, outputFlags, package_default, profileFlag, reportError, wrapList };
|
|
227
|
+
export { DEFAULT_MAX_BYTES, ENV_API_KEY, ENV_DISABLE_KEYRING, ENV_PROFILE, ENV_SKIP_PREFLIGHT, ENV_URL, connectionFlags, consumeLegacyEnvWarnings, listEnvelopeSchema, outputFlags, package_default, profileFlag, readEnv, reportError, wrapList };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import "./command-augment-
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import { renderSummary
|
|
5
|
-
import "./parse-id-
|
|
6
|
-
import "./poll-
|
|
7
|
-
import { gitSyncWaitFlags, parseWaitFlags } from "./wait-flags-
|
|
8
|
-
import { REMOTE_SYNC_PATHS, SyncTask, formatSyncTask, pollSyncTask, throwIfFailedTask } from "./poll-task-
|
|
1
|
+
import { warn } from "./command-augment-CAur0XOQ.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-DR_i1hxJ.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-DJTGfiKO.mjs";
|
|
4
|
+
import { renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
5
|
+
import "./parse-id-B1BlAunl.mjs";
|
|
6
|
+
import "./poll-Dl5Zv4Ed.mjs";
|
|
7
|
+
import { gitSyncWaitFlags, parseWaitFlags } from "./wait-flags-BxUfF5zy.mjs";
|
|
8
|
+
import { REMOTE_SYNC_PATHS, SyncTask, formatSyncTask, pollSyncTask, throwIfFailedTask } from "./poll-task-BoRK94WQ.mjs";
|
|
9
9
|
import { z } from "zod";
|
|
10
10
|
|
|
11
11
|
//#region src/commands/git-sync/export.ts
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { defineCommand } from "citty";
|
|
2
|
+
|
|
3
|
+
//#region src/commands/field/index.ts
|
|
4
|
+
var field_default = defineCommand({
|
|
5
|
+
meta: {
|
|
6
|
+
name: "field",
|
|
7
|
+
description: "Manage Metabase fields"
|
|
8
|
+
},
|
|
9
|
+
subCommands: {
|
|
10
|
+
get: () => import("./get-BjCQctuS.mjs").then((m) => m.default),
|
|
11
|
+
values: () => import("./values-DuNE6Jxc.mjs").then((m) => m.default),
|
|
12
|
+
summary: () => import("./summary-CT-xFvnX.mjs").then((m) => m.default),
|
|
13
|
+
update: () => import("./update-DpCv5Mdo.mjs").then((m) => m.default)
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
//#endregion
|
|
18
|
+
export { field_default as default };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "./command-augment-
|
|
2
|
-
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import { renderList } from "./capabilities-
|
|
5
|
-
import { FieldCompact, fieldView } from "./field-
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
7
|
-
import { TableQueryMetadata } from "./table-
|
|
1
|
+
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
+
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-DR_i1hxJ.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-DJTGfiKO.mjs";
|
|
4
|
+
import { renderList } from "./capabilities-BX1rnVuH.mjs";
|
|
5
|
+
import { FieldCompact, fieldView } from "./field-E0IBy4Uw.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-B1BlAunl.mjs";
|
|
7
|
+
import { TableQueryMetadata } from "./table-qDD2kApF.mjs";
|
|
8
8
|
|
|
9
9
|
//#region src/commands/table/fields.ts
|
|
10
10
|
const FieldListEnvelope = listEnvelopeSchema(FieldCompact);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "./command-augment-
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import { renderItem } from "./capabilities-
|
|
5
|
-
import "./field-
|
|
6
|
-
import { Card, cardView } from "./card-
|
|
7
|
-
import { parseId } from "./parse-id-
|
|
1
|
+
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-DR_i1hxJ.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-DJTGfiKO.mjs";
|
|
4
|
+
import { renderItem } from "./capabilities-BX1rnVuH.mjs";
|
|
5
|
+
import "./field-E0IBy4Uw.mjs";
|
|
6
|
+
import { Card, cardView } from "./card-wCPcuKSi.mjs";
|
|
7
|
+
import { parseId } from "./parse-id-B1BlAunl.mjs";
|
|
8
8
|
|
|
9
9
|
//#region src/commands/card/get.ts
|
|
10
10
|
var get_default = defineMetabaseCommand({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "./command-augment-
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import { renderItem } from "./capabilities-
|
|
5
|
-
import { parseId } from "./parse-id-
|
|
6
|
-
import { Snippet, snippetView } from "./snippet-
|
|
1
|
+
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-DR_i1hxJ.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-DJTGfiKO.mjs";
|
|
4
|
+
import { renderItem } from "./capabilities-BX1rnVuH.mjs";
|
|
5
|
+
import { parseId } from "./parse-id-B1BlAunl.mjs";
|
|
6
|
+
import { Snippet, snippetView } from "./snippet-NNzqlksR.mjs";
|
|
7
7
|
|
|
8
8
|
//#region src/commands/snippet/get.ts
|
|
9
9
|
var get_default = defineMetabaseCommand({
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import "./command-augment-
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand, parseEnum } from "./runtime-
|
|
4
|
-
import { renderItem } from "./capabilities-
|
|
5
|
-
import "./field-
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
7
|
-
import "./table-
|
|
8
|
-
import { Database, databaseView } from "./database-
|
|
1
|
+
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-DR_i1hxJ.mjs";
|
|
3
|
+
import { defineMetabaseCommand, parseEnum } from "./runtime-DJTGfiKO.mjs";
|
|
4
|
+
import { renderItem } from "./capabilities-BX1rnVuH.mjs";
|
|
5
|
+
import "./field-E0IBy4Uw.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-B1BlAunl.mjs";
|
|
7
|
+
import "./table-qDD2kApF.mjs";
|
|
8
|
+
import { Database, databaseView } from "./database-BmsxuRmO.mjs";
|
|
9
9
|
import { z } from "zod";
|
|
10
10
|
|
|
11
11
|
//#region src/commands/db/get.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "./command-augment-
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import { renderItem } from "./capabilities-
|
|
5
|
-
import { Field, fieldView } from "./field-
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
1
|
+
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-DR_i1hxJ.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-DJTGfiKO.mjs";
|
|
4
|
+
import { renderItem } from "./capabilities-BX1rnVuH.mjs";
|
|
5
|
+
import { Field, fieldView } from "./field-E0IBy4Uw.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-B1BlAunl.mjs";
|
|
7
7
|
|
|
8
8
|
//#region src/commands/field/get.ts
|
|
9
9
|
var get_default = defineMetabaseCommand({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "./command-augment-
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import { renderItem } from "./capabilities-
|
|
5
|
-
import { Collection, collectionView } from "./collection-
|
|
6
|
-
import { parseCollectionRef } from "./parse-ref-
|
|
1
|
+
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-DR_i1hxJ.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-DJTGfiKO.mjs";
|
|
4
|
+
import { renderItem } from "./capabilities-BX1rnVuH.mjs";
|
|
5
|
+
import { Collection, collectionView } from "./collection-Deiziuu2.mjs";
|
|
6
|
+
import { parseCollectionRef } from "./parse-ref-CZr1bYIl.mjs";
|
|
7
7
|
|
|
8
8
|
//#region src/commands/collection/get.ts
|
|
9
9
|
var get_default = defineMetabaseCommand({
|