@metabase/cli 0.1.14 → 0.1.15
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 +33 -0
- package/dist/add-collection-Bnuh0d4j.mjs +10 -0
- package/dist/{add-collection-Cubho2HN.mjs → add-collection-CXhrMjXU.mjs} +4 -4
- package/dist/{archive-C8G0KIPI.mjs → archive-BUwiCFnd.mjs} +3 -3
- package/dist/{archive-F2g-bAXf.mjs → archive-Blc1dz8Z.mjs} +3 -3
- package/dist/{archive-BBboJ-z3.mjs → archive-BxGSR7El.mjs} +3 -3
- package/dist/{archive-D6eMYNI5.mjs → archive-CQiaCBSj.mjs} +3 -3
- package/dist/{archive-BrzOTxSA.mjs → archive-D-Ovk0-E.mjs} +3 -3
- package/dist/{archive-DTN6Anme.mjs → archive-Drt-rWvU.mjs} +3 -3
- package/dist/{archive-DCIwtfv0.mjs → archive-yTvDRQUZ.mjs} +3 -3
- package/dist/auth-Bkue4Psy.mjs +19 -0
- package/dist/{body-CXpIB6hY.mjs → body-B9XTTDEu.mjs} +1 -1
- package/dist/{branches-r9SVJIV5.mjs → branches-Ct3PK5U3.mjs} +4 -4
- package/dist/{cancel-BbLZsVYQ.mjs → cancel-tST8Bh0w.mjs} +3 -3
- package/dist/{cancel-task-CojB-8XX.mjs → cancel-task-BHnzRQKL.mjs} +4 -4
- package/dist/card-faWo9ZWU.mjs +20 -0
- package/dist/{cards-e9Wgnbnq.mjs → cards-BySIFsLG.mjs} +3 -3
- package/dist/cli.mjs +24 -24
- package/dist/collection-DcRz7fmf.mjs +20 -0
- package/dist/{collection-namespace-DmKMqLr0.mjs → collection-namespace-D8ohM5gD.mjs} +1 -1
- package/dist/{create-C5-JhEUc.mjs → create-4mAGsBd0.mjs} +3 -3
- package/dist/{create-Cq-ay6cJ.mjs → create-BDWthCYq.mjs} +3 -3
- package/dist/{create-BzKW27Hh.mjs → create-C43RQYgj.mjs} +4 -4
- package/dist/{create-DFMpgUvH.mjs → create-C7FPeJqF.mjs} +3 -3
- package/dist/{create-Bbe2EM9f.mjs → create-D3cVDtxM.mjs} +3 -3
- package/dist/{create-C4G_z8qO.mjs → create-DGxZmbxh.mjs} +4 -4
- package/dist/{create-Bu9edPBn.mjs → create-DnT1Sayk.mjs} +3 -3
- package/dist/{create-onFRzFwS.mjs → create-DxDD6n1d.mjs} +5 -5
- package/dist/{create-Bz4hf7W0.mjs → create-HZ-9GMLx.mjs} +4 -4
- package/dist/{create-branch--GJ_RxIN.mjs → create-branch-jPE7nW-E.mjs} +4 -4
- package/dist/{create-UzeYyGq6.mjs → create-fIDFkdox.mjs} +3 -3
- package/dist/{current-task-C0mMBzdB.mjs → current-task-rW54KJax.mjs} +4 -4
- package/dist/dashboard-pXAxJTTx.mjs +21 -0
- package/dist/db-CmHHj5eI.mjs +22 -0
- package/dist/{delete-CGw1hwGZ.mjs → delete-BWO6uB4P.mjs} +4 -4
- package/dist/{delete-Dbzs51x3.mjs → delete-CBwztF6P.mjs} +4 -4
- package/dist/{delete-CxTPHzom.mjs → delete-CeigtfRI.mjs} +4 -4
- package/dist/{delete-table-B6obSpLU.mjs → delete-table-BXzvDEPG.mjs} +4 -4
- package/dist/{dependencies-DfkbJqzQ.mjs → dependencies-D2N9eqm1.mjs} +4 -4
- package/dist/{dirty-BqL_DE6p.mjs → dirty-DoEZRSGB.mjs} +4 -4
- package/dist/document-DQIhL75C.mjs +19 -0
- package/dist/{eid-C31VGHAM.mjs → eid-1mROiwJr.mjs} +3 -3
- package/dist/{error-BOi_ux9O.mjs → error-D5bZ5BUX.mjs} +1 -1
- package/dist/{export--_0e40xU.mjs → export-Bgv5B4_F.mjs} +6 -6
- package/dist/field-B-UcqFzm.mjs +18 -0
- package/dist/{fields-BRiL6KEF.mjs → fields-VA7tXHJz.mjs} +3 -3
- package/dist/{get-C6njgZmF.mjs → get-B8etVxWD.mjs} +3 -3
- package/dist/{get-CcGU3YaY.mjs → get-BgIE_YEg.mjs} +4 -4
- package/dist/{get-CCyfx_AY.mjs → get-BtAD26gc.mjs} +3 -3
- package/dist/{get-DMeF2FLQ.mjs → get-C-UeGtgW.mjs} +2 -2
- package/dist/{get-B_TdMKu-.mjs → get-CGkhSY5L.mjs} +3 -3
- package/dist/{get-ev4Zw3Gj.mjs → get-CqnCaosn.mjs} +3 -3
- package/dist/{get-DQOvqH9P.mjs → get-D9o38nK5.mjs} +2 -2
- package/dist/{get-LJam7ZQ-.mjs → get-DAsaor0n.mjs} +2 -2
- package/dist/{get-B2-RLrYJ.mjs → get-DLRBq8kR.mjs} +3 -3
- package/dist/{get-C-o2-vnf.mjs → get-DvQoDU2m.mjs} +4 -4
- package/dist/{get--bNbxDkk.mjs → get-RQFSmnpY.mjs} +3 -3
- package/dist/{get-Cs7a7s2Z.mjs → get-Wj88mnhn.mjs} +3 -3
- package/dist/{get-B-phl324.mjs → get-eUYDNALt.mjs} +3 -3
- package/dist/{get-DGZw_U0s.mjs → get-qnGGGRTa.mjs} +3 -3
- package/dist/{get-run-Cp7ATZPQ.mjs → get-run-CATz-XMS.mjs} +4 -4
- package/dist/git-sync-CwOvcUI2.mjs +28 -0
- package/dist/{has-remote-changes-Bw_Xp9Ii.mjs → has-remote-changes-B6YEMC90.mjs} +4 -4
- package/dist/{import-BmoC0ECq.mjs → import-Bl2Wj9Xf.mjs} +6 -6
- package/dist/{is-dirty-BDmXm34E.mjs → is-dirty-D9MoFj0T.mjs} +3 -3
- package/dist/is-dirty-MT0BT4CS.mjs +9 -0
- package/dist/{items-BI-O48Sc.mjs → items-LjtICjvX.mjs} +3 -3
- package/dist/{list-JCMQ06wX.mjs → list-B5Q7E2Km.mjs} +3 -3
- package/dist/{list-BcSjOiK1.mjs → list-Bjp9nd0o.mjs} +2 -2
- package/dist/{list-Cqvt6gpK.mjs → list-C410Ptw_.mjs} +2 -2
- package/dist/{list-CRUjh592.mjs → list-C6U3Ftg8.mjs} +3 -3
- package/dist/{list-Cz_2UyGV.mjs → list-CfWblVHJ.mjs} +2 -2
- package/dist/{list-Cju3N2kB.mjs → list-ChK06rJh.mjs} +2 -2
- package/dist/{list-DIFjjwBV.mjs → list-CoRX8Ruc.mjs} +2 -2
- package/dist/{list-RC1HQ2dg.mjs → list-Cx8JxS2C.mjs} +2 -2
- package/dist/{list-B7g2c9K7.mjs → list-DMik04Dh.mjs} +3 -3
- package/dist/{list-DM-Oa-oB.mjs → list-DaJk60dd.mjs} +3 -3
- package/dist/{list-CNeaMSjy.mjs → list-DcjenlTM.mjs} +2 -2
- package/dist/{list-BkEFHJe8.mjs → list-DfoNv0gb.mjs} +2 -2
- package/dist/{list-DhWVjE6U.mjs → list-Dq86BAMG.mjs} +2 -2
- package/dist/{list-CTfCgMTk.mjs → list-DtrfE0sF.mjs} +3 -3
- package/dist/{list-BE3wVc-a.mjs → list-cnqPlJgC.mjs} +2 -2
- package/dist/{login-BF6LkxPI.mjs → login-Cn2UtFUt.mjs} +3 -3
- package/dist/{logout-Cg8Z_XD_.mjs → logout-_HXgEmqA.mjs} +2 -2
- package/dist/measure-BIAoqgcS.mjs +19 -0
- package/dist/{metadata-CmvvOpKI.mjs → metadata-8yqT8OZI.mjs} +3 -3
- package/dist/{metadata-B15u_YYT.mjs → metadata-DHODjg1d.mjs} +3 -3
- package/dist/{parse-id-DMs04KM3.mjs → parse-id-DNPeV0Iu.mjs} +1 -1
- package/dist/{path-YsfpMb_h.mjs → path-BflajM08.mjs} +2 -2
- package/dist/{poll-13tgWrN_.mjs → poll-CYkX02Bm.mjs} +1 -1
- package/dist/{poll-task-BuAHsDEK.mjs → poll-task-oXpl3wzp.mjs} +2 -2
- package/dist/{preflight-wCSgVqbX.mjs → preflight-BdJr2amA.mjs} +1 -1
- package/dist/publish-CGUkIqSm.mjs +70 -0
- package/dist/{query-DnYdI0fl.mjs → query-CxTjguwp.mjs} +3 -3
- package/dist/{query-x6g6unDt.mjs → query-DWQaN7hO.mjs} +3 -3
- package/dist/{remove-collection-CLTqx7ys.mjs → remove-collection-BwcFi8Fs.mjs} +6 -6
- package/dist/{rescan-values-C7b78yA2.mjs → rescan-values-B9Qtsd32.mjs} +3 -3
- package/dist/{run-CsYI4Sqv.mjs → run-3eFtdI2Z.mjs} +6 -6
- package/dist/{run-DR5O1_EU.mjs → run-C-vftXCu.mjs} +3 -3
- package/dist/{runs-DWbtqOyw.mjs → runs-CpRTkn1W.mjs} +4 -4
- package/dist/{runtime-7JTC-usO.mjs → runtime-C1QgWHM7.mjs} +1 -1
- package/dist/{schema-tables-Cte09dhE.mjs → schema-tables-rdeupgsu.mjs} +3 -3
- package/dist/{schemas-DAmSPGiC.mjs → schemas-Cr7RjYqV.mjs} +3 -3
- package/dist/{search-Di-SFcZm.mjs → search-D7Yq2MDu.mjs} +3 -3
- package/dist/segment-BN8sFunv.mjs +19 -0
- package/dist/selectors-DPc2ZDdd.mjs +37 -0
- package/dist/{set-C1rIETEg.mjs → set-X2N6x7pe.mjs} +3 -3
- package/dist/{set-active-CJ1VaxEC.mjs → set-active-BoBa3pOw.mjs} +2 -2
- package/dist/{setting-6WqN3L3F.mjs → setting-zZjcOPyE.mjs} +3 -3
- package/dist/{setup-DbXhTopr.mjs → setup-C47WUieB.mjs} +3 -3
- package/dist/{skills-CfWrH-1L.mjs → skills-Po0YPVU5.mjs} +3 -3
- package/dist/snippet-DK0ZA8m5.mjs +19 -0
- package/dist/{stash-BCNSzoYQ.mjs → stash-BV4sEp73.mjs} +6 -6
- package/dist/{status-CG3Lbl5_.mjs → status-BKF9rRnk.mjs} +5 -5
- package/dist/{status-BocNdqNq.mjs → status-Cf8c0NON.mjs} +2 -2
- package/dist/{summary-TApK2JbW.mjs → summary-RgLcBcEh.mjs} +3 -3
- package/dist/{sync-schema-COA-OlO3.mjs → sync-schema-DKEel2Sv.mjs} +5 -5
- package/dist/table-COAKXNuj.mjs +21 -0
- package/dist/transform-Bto4U82j.mjs +25 -0
- package/dist/transform-job-_fW1y2tg.mjs +22 -0
- package/dist/transform-tag-C8n1oTr1.mjs +18 -0
- package/dist/{transforms-Bo4u0YqS.mjs → transforms-BOQ9CG0l.mjs} +4 -4
- package/dist/{tree-CGh-ZG4n.mjs → tree-CF8mscd9.mjs} +2 -2
- package/dist/unpublish-CmaRNjK3.mjs +76 -0
- package/dist/{update-CCIkTuxz.mjs → update-B59h7KmS.mjs} +5 -5
- package/dist/{update-BuJjTYAx.mjs → update-BXZBEeUp.mjs} +4 -4
- package/dist/{update-Br_cd74H.mjs → update-BuypOaXq.mjs} +4 -4
- package/dist/{update-ysNL-mE-.mjs → update-CgQOSuZt.mjs} +4 -4
- package/dist/{update-Bob7lvnr.mjs → update-DERsb0eO.mjs} +5 -5
- package/dist/{update-DLQygCXg.mjs → update-DQPg0_-d.mjs} +4 -4
- package/dist/{update-ETzjZl17.mjs → update-DR4WkAET.mjs} +4 -4
- package/dist/{update-DtUhmJar.mjs → update-DoQpy9SA.mjs} +4 -4
- package/dist/{update-DCvTlxUK.mjs → update-Kz4kyqY_.mjs} +5 -5
- package/dist/{update-dashcard-Du-h_8oY.mjs → update-dashcard-BJVeSGvO.mjs} +4 -4
- package/dist/{update-ZPsCSWR6.mjs → update-nwXgVNQa.mjs} +6 -6
- package/dist/{update-Co4WLVkK.mjs → update-rhfPHALN.mjs} +4 -4
- package/dist/{upgrade-CavKMkQ4.mjs → upgrade-CNrkJF6s.mjs} +2 -2
- package/dist/{uuid-BL33x41p.mjs → uuid-Dpl3ALKq.mjs} +2 -2
- package/dist/{values-DVu97Fcd.mjs → values-DMYpkoEH.mjs} +3 -3
- package/dist/{verify-BLUei79N.mjs → verify-By9ZYzx4.mjs} +1 -1
- package/dist/{wait-C0P8Qt37.mjs → wait-BzIAj8lJ.mjs} +5 -5
- package/dist/{wait-flags-Z_JC7x4L.mjs → wait-flags-DQrxnlwv.mjs} +2 -2
- package/package.json +1 -1
- package/skill-data/core/SKILL.md +1 -0
- package/dist/add-collection-Cdhj6DJb.mjs +0 -10
- package/dist/auth-D4cXDeiH.mjs +0 -19
- package/dist/card-BMN-mcxn.mjs +0 -20
- package/dist/collection-DZnA3zXr.mjs +0 -20
- package/dist/dashboard-PB_c3Irl.mjs +0 -21
- package/dist/db-q0lYg3k8.mjs +0 -22
- package/dist/document-4TwzGwl3.mjs +0 -19
- package/dist/field-Bi_O_Sdg.mjs +0 -18
- package/dist/git-sync-BOZdFF09.mjs +0 -28
- package/dist/is-dirty-B6usK-aU.mjs +0 -9
- package/dist/measure-BRzkMY5y.mjs +0 -19
- package/dist/segment-DiHHHk2a.mjs +0 -19
- package/dist/snippet-B-anQo6y.mjs +0 -19
- package/dist/table-Bnj8IBKx.mjs +0 -19
- package/dist/transform-QCDItglq.mjs +0 -25
- package/dist/transform-job-Dawm4Lag.mjs +0 -22
- package/dist/transform-tag-CN-bTSne.mjs +0 -18
- /package/dist/{delete-runtime-BhZAAvjc.mjs → delete-runtime-PzLFavb0.mjs} +0 -0
- /package/dist/{transform-job-B9pXBOwr.mjs → transform-job-C8lIS-7Q.mjs} +0 -0
- /package/dist/{transform-qczxOAzn.mjs → transform-n376akp8.mjs} +0 -0
- /package/dist/{transform-tag-BLAbrywB.mjs → transform-tag-DB46AhAj.mjs} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
-
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-D5bZ5BUX.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C1QgWHM7.mjs";
|
|
4
4
|
import { renderList } from "./capabilities-BX1rnVuH.mjs";
|
|
5
|
-
import { TransformTag, TransformTagCompact, transformTagView } from "./transform-tag-
|
|
5
|
+
import { TransformTag, TransformTagCompact, transformTagView } from "./transform-tag-DB46AhAj.mjs";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
|
|
8
8
|
//#region src/commands/transform-tag/list.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
-
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-D5bZ5BUX.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C1QgWHM7.mjs";
|
|
4
4
|
import { renderList } from "./capabilities-BX1rnVuH.mjs";
|
|
5
5
|
import { Segment, SegmentCompact, segmentView } from "./segment-B9SEv9V_.mjs";
|
|
6
6
|
import { z } from "zod";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
-
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-D5bZ5BUX.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C1QgWHM7.mjs";
|
|
4
4
|
import { renderList } from "./capabilities-BX1rnVuH.mjs";
|
|
5
5
|
import { Measure, MeasureCompact, measureView } from "./measure-JJAdFoqK.mjs";
|
|
6
6
|
import { z } from "zod";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
-
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand, parseEnum } from "./runtime-
|
|
2
|
+
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag } from "./error-D5bZ5BUX.mjs";
|
|
3
|
+
import { defineMetabaseCommand, parseEnum } from "./runtime-C1QgWHM7.mjs";
|
|
4
4
|
import { renderList } from "./capabilities-BX1rnVuH.mjs";
|
|
5
5
|
import "./field-E0IBy4Uw.mjs";
|
|
6
6
|
import "./table-qDD2kApF.mjs";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
-
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-D5bZ5BUX.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C1QgWHM7.mjs";
|
|
4
4
|
import { renderList } from "./capabilities-BX1rnVuH.mjs";
|
|
5
5
|
import "./field-E0IBy4Uw.mjs";
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
6
|
+
import { parseId } from "./parse-id-DNPeV0Iu.mjs";
|
|
7
7
|
import { Table, TableCompact, tableView } from "./table-qDD2kApF.mjs";
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
-
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-D5bZ5BUX.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C1QgWHM7.mjs";
|
|
4
4
|
import { renderList } from "./capabilities-BX1rnVuH.mjs";
|
|
5
5
|
import { Snippet, SnippetCompact, snippetView } from "./snippet-NNzqlksR.mjs";
|
|
6
6
|
import { z } from "zod";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ConfigError, errorMessage, warn } from "./command-augment-CAur0XOQ.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { DEFAULT_PROFILE, OAUTH_SCOPE, ParsedVersionSchema, ProbedUser, consumeKeychainResidualWarning, consumeKeyringDowngradeWarning, defineMetabaseCommand, discoverMetadata, exchangeCode, explicitProfileName, keyringFallbackWarning, normalizeUrl, oauthCredentialFromTokens, readEnvCredentials, registerClient, revokeOAuthCredential, tryDiscoverMetadata, writeOAuthProfile, writeProbeFailure, writeProbeResult, writeProfile } from "./runtime-
|
|
4
|
-
import { verifyAndProbe } from "./verify-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-D5bZ5BUX.mjs";
|
|
3
|
+
import { DEFAULT_PROFILE, OAUTH_SCOPE, ParsedVersionSchema, ProbedUser, consumeKeychainResidualWarning, consumeKeyringDowngradeWarning, defineMetabaseCommand, discoverMetadata, exchangeCode, explicitProfileName, keyringFallbackWarning, normalizeUrl, oauthCredentialFromTokens, readEnvCredentials, registerClient, revokeOAuthCredential, tryDiscoverMetadata, writeOAuthProfile, writeProbeFailure, writeProbeResult, writeProfile } from "./runtime-C1QgWHM7.mjs";
|
|
4
|
+
import { verifyAndProbe } from "./verify-By9ZYzx4.mjs";
|
|
5
5
|
import { renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
6
6
|
import { EMPTY_CELL, renderUserName, renderUserRole, renderVersionTag } from "./render-CkuFkWlQ.mjs";
|
|
7
7
|
import { promptPassword, promptSelect, promptText } from "./prompt-Bc_bHSD0.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { errorMessage, warn } from "./command-augment-CAur0XOQ.mjs";
|
|
2
|
-
import { outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { clearProfile, consumeKeychainResidualWarning, defineMetabaseCommand, readProfileCredential, resolveProfileName, revokeOAuthCredential } from "./runtime-
|
|
2
|
+
import { outputFlags, profileFlag } from "./error-D5bZ5BUX.mjs";
|
|
3
|
+
import { clearProfile, consumeKeychainResidualWarning, defineMetabaseCommand, readProfileCredential, resolveProfileName, revokeOAuthCredential } from "./runtime-C1QgWHM7.mjs";
|
|
4
4
|
import { renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
5
5
|
import { promptConfirm } from "./prompt-Bc_bHSD0.mjs";
|
|
6
6
|
import { z } from "zod";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { defineCommand } from "citty";
|
|
2
|
+
|
|
3
|
+
//#region src/commands/measure/index.ts
|
|
4
|
+
var measure_default = defineCommand({
|
|
5
|
+
meta: {
|
|
6
|
+
name: "measure",
|
|
7
|
+
description: "Manage Metabase measures"
|
|
8
|
+
},
|
|
9
|
+
subCommands: {
|
|
10
|
+
list: () => import("./list-DfoNv0gb.mjs").then((mod) => mod.default),
|
|
11
|
+
get: () => import("./get-DLRBq8kR.mjs").then((mod) => mod.default),
|
|
12
|
+
create: () => import("./create-D3cVDtxM.mjs").then((mod) => mod.default),
|
|
13
|
+
update: () => import("./update-BXZBEeUp.mjs").then((mod) => mod.default),
|
|
14
|
+
archive: () => import("./archive-Drt-rWvU.mjs").then((mod) => mod.default)
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
export { measure_default as default };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-D5bZ5BUX.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C1QgWHM7.mjs";
|
|
4
4
|
import { renderItem } from "./capabilities-BX1rnVuH.mjs";
|
|
5
5
|
import "./field-E0IBy4Uw.mjs";
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
6
|
+
import { parseId } from "./parse-id-DNPeV0Iu.mjs";
|
|
7
7
|
import "./table-qDD2kApF.mjs";
|
|
8
8
|
import { Database, databaseView } from "./database-BmsxuRmO.mjs";
|
|
9
9
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-D5bZ5BUX.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C1QgWHM7.mjs";
|
|
4
4
|
import { renderItem } from "./capabilities-BX1rnVuH.mjs";
|
|
5
5
|
import "./field-E0IBy4Uw.mjs";
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
6
|
+
import { parseId } from "./parse-id-DNPeV0Iu.mjs";
|
|
7
7
|
import { TableQueryMetadata, tableView } from "./table-qDD2kApF.mjs";
|
|
8
8
|
|
|
9
9
|
//#region src/commands/table/metadata.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
-
import { listEnvelopeSchema, outputFlags, wrapList } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { listEnvelopeSchema, outputFlags, wrapList } from "./error-D5bZ5BUX.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C1QgWHM7.mjs";
|
|
4
4
|
import { renderList } from "./capabilities-BX1rnVuH.mjs";
|
|
5
5
|
import { findSkillByName, loadAllSkills, loadVisibleSkills } from "./skills-CJ8g8fhQ.mjs";
|
|
6
6
|
import { z } from "zod";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TimeoutError } from "./command-augment-CAur0XOQ.mjs";
|
|
2
|
-
import { combineAborts, throwIfAborted } from "./runtime-
|
|
2
|
+
import { combineAborts, throwIfAborted } from "./runtime-C1QgWHM7.mjs";
|
|
3
3
|
import { setTimeout } from "node:timers/promises";
|
|
4
4
|
|
|
5
5
|
//#region src/runtime/poll.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { parseJsonOrPlain } from "./runtime-
|
|
2
|
-
import { pollUntil } from "./poll-
|
|
1
|
+
import { parseJsonOrPlain } from "./runtime-C1QgWHM7.mjs";
|
|
2
|
+
import { pollUntil } from "./poll-CYkX02Bm.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
|
|
5
5
|
//#region src/domain/git-sync.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChainedRequestError, ConfigError, MetabaseError } from "./command-augment-CAur0XOQ.mjs";
|
|
2
|
-
import { HttpError } from "./runtime-
|
|
2
|
+
import { HttpError } from "./runtime-C1QgWHM7.mjs";
|
|
3
3
|
import { writeJson } from "./capabilities-BX1rnVuH.mjs";
|
|
4
4
|
import { Card } from "./card-wCPcuKSi.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { ConfigError } from "./command-augment-CAur0XOQ.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-D5bZ5BUX.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C1QgWHM7.mjs";
|
|
4
|
+
import { renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
5
|
+
import { parseId } from "./parse-id-DNPeV0Iu.mjs";
|
|
6
|
+
import { Collection, CollectionCompact } from "./collection-Deiziuu2.mjs";
|
|
7
|
+
import { parseTableSelectors, tableSelectorFlags } from "./selectors-DPc2ZDdd.mjs";
|
|
8
|
+
import { z } from "zod";
|
|
9
|
+
|
|
10
|
+
//#region src/commands/table/publish.ts
|
|
11
|
+
const TablePublishResult = z.object({ target_collection: Collection.nullable() });
|
|
12
|
+
const TablePublishResultCompact = z.object({ target_collection: CollectionCompact.nullable() });
|
|
13
|
+
const tablePublishResultView = {
|
|
14
|
+
compactPick: TablePublishResultCompact,
|
|
15
|
+
tableColumns: [{
|
|
16
|
+
key: "target_collection",
|
|
17
|
+
label: "Target collection"
|
|
18
|
+
}]
|
|
19
|
+
};
|
|
20
|
+
var publish_default = defineMetabaseCommand({
|
|
21
|
+
meta: {
|
|
22
|
+
name: "publish",
|
|
23
|
+
description: "Publish tables (and their upstream dependencies) to a library collection"
|
|
24
|
+
},
|
|
25
|
+
details: "Sets the collection for each selected table and recursively for every upstream table it depends on, surfacing them as trusted data sources in the library. Select tables with --table-ids, whole databases with --db-ids, or schemas with --schemas (each schema id is \"<db-id>:<schema>\", e.g. 1:public); the filters are combined. The target must be a `library-data` collection.",
|
|
26
|
+
capabilities: {
|
|
27
|
+
minVersion: 59,
|
|
28
|
+
tokenFeature: "library"
|
|
29
|
+
},
|
|
30
|
+
args: {
|
|
31
|
+
...outputFlags,
|
|
32
|
+
...profileFlag,
|
|
33
|
+
...connectionFlags,
|
|
34
|
+
"collection-id": {
|
|
35
|
+
type: "string",
|
|
36
|
+
description: "Target library collection id"
|
|
37
|
+
},
|
|
38
|
+
...tableSelectorFlags
|
|
39
|
+
},
|
|
40
|
+
outputSchema: TablePublishResult,
|
|
41
|
+
examples: [
|
|
42
|
+
"mb table publish --collection-id 12 --table-ids 1,2,3",
|
|
43
|
+
"mb table publish --collection-id 12 --db-ids 1 --json",
|
|
44
|
+
"mb table publish --collection-id 12 --schemas 1:public,1:analytics"
|
|
45
|
+
],
|
|
46
|
+
async run({ args, ctx, getClient }) {
|
|
47
|
+
const collectionRaw = args["collection-id"];
|
|
48
|
+
if (collectionRaw === void 0 || collectionRaw === "") throw new ConfigError("provide a target library collection with --collection-id <id>");
|
|
49
|
+
const collectionId = parseId(collectionRaw, "collection id");
|
|
50
|
+
const selectors = parseTableSelectors(args);
|
|
51
|
+
const body = {
|
|
52
|
+
collection_id: collectionId,
|
|
53
|
+
...selectors
|
|
54
|
+
};
|
|
55
|
+
const client = await getClient();
|
|
56
|
+
const result = await client.requestParsed(TablePublishResult, "/api/ee/data-studio/table/publish-tables", {
|
|
57
|
+
method: "POST",
|
|
58
|
+
body
|
|
59
|
+
});
|
|
60
|
+
renderSummary(result, tablePublishResultView, summaryLine(result), ctx);
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
function summaryLine(result) {
|
|
64
|
+
const collection = result.target_collection;
|
|
65
|
+
if (collection === null) return "Published tables to the library.";
|
|
66
|
+
return `Published tables to collection ${collection.id} "${collection.name}".`;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
//#endregion
|
|
70
|
+
export { publish_default as default };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ConfigError } from "./command-augment-CAur0XOQ.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-D5bZ5BUX.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C1QgWHM7.mjs";
|
|
4
4
|
import { renderSummary, writeJson } from "./capabilities-BX1rnVuH.mjs";
|
|
5
5
|
import "./input-BXWgdKiS.mjs";
|
|
6
6
|
import "./field-E0IBy4Uw.mjs";
|
|
7
7
|
import { CardQueryResult, cardQueryView } from "./card-wCPcuKSi.mjs";
|
|
8
|
-
import { readBody } from "./body-
|
|
8
|
+
import { readBody } from "./body-B9XTTDEu.mjs";
|
|
9
9
|
import { bodyInputFlags } from "./body-flags-D7q87Btw.mjs";
|
|
10
10
|
import { assertNotLegacyEnvelopeWrappingMbql5, getQuerySchemaBundle, isMbql5Query, validateQuery } from "./validate-VawhJ5Sc.mjs";
|
|
11
11
|
import { skipValidateFlag } from "./validate-query-CSV-TTnd.mjs";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ConfigError } from "./command-augment-CAur0XOQ.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand, parseJson } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-D5bZ5BUX.mjs";
|
|
3
|
+
import { defineMetabaseCommand, parseJson } from "./runtime-C1QgWHM7.mjs";
|
|
4
4
|
import { renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
5
5
|
import "./field-E0IBy4Uw.mjs";
|
|
6
6
|
import { CardQueryResult, cardQueryView } from "./card-wCPcuKSi.mjs";
|
|
7
|
-
import { parseId } from "./parse-id-
|
|
7
|
+
import { parseId } from "./parse-id-DNPeV0Iu.mjs";
|
|
8
8
|
import { formatQueryResult } from "./query-result-L5_NrwQR.mjs";
|
|
9
9
|
import { z } from "zod";
|
|
10
10
|
import { Writable } from "node:stream";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-D5bZ5BUX.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C1QgWHM7.mjs";
|
|
4
4
|
import { renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
5
|
-
import { parseId } from "./parse-id-
|
|
6
|
-
import "./poll-
|
|
7
|
-
import "./poll-task-
|
|
8
|
-
import { SyncSettingsUpdateResult, setCollectionRemoteSynced, syncSettingsUpdateView } from "./add-collection-
|
|
5
|
+
import { parseId } from "./parse-id-DNPeV0Iu.mjs";
|
|
6
|
+
import "./poll-CYkX02Bm.mjs";
|
|
7
|
+
import "./poll-task-oXpl3wzp.mjs";
|
|
8
|
+
import { SyncSettingsUpdateResult, setCollectionRemoteSynced, syncSettingsUpdateView } from "./add-collection-CXhrMjXU.mjs";
|
|
9
9
|
|
|
10
10
|
//#region src/commands/git-sync/remove-collection.ts
|
|
11
11
|
var remove_collection_default = defineMetabaseCommand({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-D5bZ5BUX.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C1QgWHM7.mjs";
|
|
4
4
|
import { renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
5
5
|
import "./field-E0IBy4Uw.mjs";
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
6
|
+
import { parseId } from "./parse-id-DNPeV0Iu.mjs";
|
|
7
7
|
import "./table-qDD2kApF.mjs";
|
|
8
8
|
import { DatabaseSyncResult, DatabaseTaskAck, databaseSyncResultView } from "./database-BmsxuRmO.mjs";
|
|
9
9
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { TimeoutError } from "./command-augment-CAur0XOQ.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-D5bZ5BUX.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C1QgWHM7.mjs";
|
|
4
4
|
import { renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
5
|
-
import { parseId } from "./parse-id-
|
|
6
|
-
import { pollUntil } from "./poll-
|
|
7
|
-
import { parseWaitFlags, waitFlags } from "./wait-flags-
|
|
8
|
-
import { Transform, TransformRun } from "./transform-
|
|
5
|
+
import { parseId } from "./parse-id-DNPeV0Iu.mjs";
|
|
6
|
+
import { pollUntil } from "./poll-CYkX02Bm.mjs";
|
|
7
|
+
import { parseWaitFlags, waitFlags } from "./wait-flags-DQrxnlwv.mjs";
|
|
8
|
+
import { Transform, TransformRun } from "./transform-n376akp8.mjs";
|
|
9
9
|
import { z } from "zod";
|
|
10
10
|
|
|
11
11
|
//#region src/commands/transform/run.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-D5bZ5BUX.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C1QgWHM7.mjs";
|
|
4
4
|
import { renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
5
|
-
import { parseId } from "./parse-id-
|
|
5
|
+
import { parseId } from "./parse-id-DNPeV0Iu.mjs";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
|
|
8
8
|
//#region src/commands/transform-job/run.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
-
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag } from "./error-D5bZ5BUX.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C1QgWHM7.mjs";
|
|
4
4
|
import { renderList } from "./capabilities-BX1rnVuH.mjs";
|
|
5
|
-
import { parseId } from "./parse-id-
|
|
5
|
+
import { parseId } from "./parse-id-DNPeV0Iu.mjs";
|
|
6
6
|
import { collectPaginated } from "./paginate-BexjkjbY.mjs";
|
|
7
|
-
import { TransformRun, TransformRunCompact, transformRunView } from "./transform-
|
|
7
|
+
import { TransformRun, TransformRunCompact, transformRunView } from "./transform-n376akp8.mjs";
|
|
8
8
|
|
|
9
9
|
//#region src/commands/transform/runs.ts
|
|
10
10
|
const TransformRunListEnvelope = listEnvelopeSchema(TransformRunCompact);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AbortError, ConfigError, MetabaseError, NetworkError, ResponseShapeError, TimeoutError, ValidationError, errorMessage, flagConsumesValue, isNotFoundError, normalizeFlag, setMetabaseAugment, toAliasArray, warn } from "./command-augment-CAur0XOQ.mjs";
|
|
2
|
-
import { DEFAULT_MAX_BYTES, ENV_API_KEY, ENV_DISABLE_KEYRING, ENV_PROFILE, ENV_SKIP_PREFLIGHT, ENV_URL, consumeLegacyEnvWarnings, package_default, readEnv, reportError } from "./error-
|
|
2
|
+
import { DEFAULT_MAX_BYTES, ENV_API_KEY, ENV_DISABLE_KEYRING, ENV_PROFILE, ENV_SKIP_PREFLIGHT, ENV_URL, consumeLegacyEnvWarnings, package_default, readEnv, reportError } from "./error-D5bZ5BUX.mjs";
|
|
3
3
|
import { BASELINE_CAPABILITIES, isPlainObject } from "./capabilities-BX1rnVuH.mjs";
|
|
4
4
|
import { defineCommand } from "citty";
|
|
5
5
|
import { z } from "zod";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
-
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-D5bZ5BUX.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C1QgWHM7.mjs";
|
|
4
4
|
import { renderList } from "./capabilities-BX1rnVuH.mjs";
|
|
5
5
|
import "./field-E0IBy4Uw.mjs";
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
6
|
+
import { parseId } from "./parse-id-DNPeV0Iu.mjs";
|
|
7
7
|
import { Table, TableCompact, tableView } from "./table-qDD2kApF.mjs";
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
-
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-D5bZ5BUX.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C1QgWHM7.mjs";
|
|
4
4
|
import { renderList } from "./capabilities-BX1rnVuH.mjs";
|
|
5
|
-
import { parseId } from "./parse-id-
|
|
5
|
+
import { parseId } from "./parse-id-DNPeV0Iu.mjs";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
|
|
8
8
|
//#region src/commands/db/schemas.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
-
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand, parseEnumCsv } from "./runtime-
|
|
2
|
+
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag } from "./error-D5bZ5BUX.mjs";
|
|
3
|
+
import { defineMetabaseCommand, parseEnumCsv } from "./runtime-C1QgWHM7.mjs";
|
|
4
4
|
import { renderList } from "./capabilities-BX1rnVuH.mjs";
|
|
5
|
-
import { parseId } from "./parse-id-
|
|
5
|
+
import { parseId } from "./parse-id-DNPeV0Iu.mjs";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
|
|
8
8
|
//#region src/domain/search.ts
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { defineCommand } from "citty";
|
|
2
|
+
|
|
3
|
+
//#region src/commands/segment/index.ts
|
|
4
|
+
var segment_default = defineCommand({
|
|
5
|
+
meta: {
|
|
6
|
+
name: "segment",
|
|
7
|
+
description: "Manage Metabase segments"
|
|
8
|
+
},
|
|
9
|
+
subCommands: {
|
|
10
|
+
list: () => import("./list-DcjenlTM.mjs").then((mod) => mod.default),
|
|
11
|
+
get: () => import("./get-CqnCaosn.mjs").then((mod) => mod.default),
|
|
12
|
+
create: () => import("./create-fIDFkdox.mjs").then((mod) => mod.default),
|
|
13
|
+
update: () => import("./update-DR4WkAET.mjs").then((mod) => mod.default),
|
|
14
|
+
archive: () => import("./archive-Blc1dz8Z.mjs").then((mod) => mod.default)
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
export { segment_default as default };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { ConfigError } from "./command-augment-CAur0XOQ.mjs";
|
|
2
|
+
import { parseCsv } from "./runtime-C1QgWHM7.mjs";
|
|
3
|
+
import { parseId } from "./parse-id-DNPeV0Iu.mjs";
|
|
4
|
+
|
|
5
|
+
//#region src/commands/table/selectors.ts
|
|
6
|
+
const tableSelectorFlags = {
|
|
7
|
+
"table-ids": {
|
|
8
|
+
type: "string",
|
|
9
|
+
description: "Comma-separated table ids"
|
|
10
|
+
},
|
|
11
|
+
"db-ids": {
|
|
12
|
+
type: "string",
|
|
13
|
+
description: "Comma-separated database ids"
|
|
14
|
+
},
|
|
15
|
+
schemas: {
|
|
16
|
+
type: "string",
|
|
17
|
+
description: "Comma-separated schema ids, each \"<db-id>:<schema>\" (e.g. 1:public)"
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
function parseIdList(value, name) {
|
|
21
|
+
if (value === void 0) return [];
|
|
22
|
+
return parseCsv(value).map((part) => parseId(part, name));
|
|
23
|
+
}
|
|
24
|
+
function parseTableSelectors(args) {
|
|
25
|
+
const tableIds = parseIdList(args["table-ids"], "table id");
|
|
26
|
+
const databaseIds = parseIdList(args["db-ids"], "database id");
|
|
27
|
+
const schemaNames = args.schemas === void 0 ? [] : parseCsv(args.schemas);
|
|
28
|
+
const selectors = {};
|
|
29
|
+
if (tableIds.length > 0) selectors.table_ids = tableIds;
|
|
30
|
+
if (databaseIds.length > 0) selectors.database_ids = databaseIds;
|
|
31
|
+
if (schemaNames.length > 0) selectors.schema_ids = schemaNames;
|
|
32
|
+
if (Object.keys(selectors).length === 0) throw new ConfigError("provide at least one selector: --table-ids, --db-ids, or --schemas");
|
|
33
|
+
return selectors;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
//#endregion
|
|
37
|
+
export { parseTableSelectors, tableSelectorFlags };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-D5bZ5BUX.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C1QgWHM7.mjs";
|
|
4
4
|
import { formatScalar, renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
5
5
|
import "./input-BXWgdKiS.mjs";
|
|
6
|
-
import { readBody } from "./body-
|
|
6
|
+
import { readBody } from "./body-B9XTTDEu.mjs";
|
|
7
7
|
import { SettingValue, settingValueView } from "./setting-i0pugNHl.mjs";
|
|
8
8
|
import { parseSettingKey, rethrowSettingError } from "./key-C8q5oIr5.mjs";
|
|
9
9
|
import { z } from "zod";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-D5bZ5BUX.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C1QgWHM7.mjs";
|
|
4
4
|
import { renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
5
5
|
import { parseEnumFlag } from "./parse-enum-BatHQ-Gs.mjs";
|
|
6
6
|
import { z } from "zod";
|
|
@@ -7,9 +7,9 @@ var setting_default = defineCommand({
|
|
|
7
7
|
description: "Inspect and update Metabase settings"
|
|
8
8
|
},
|
|
9
9
|
subCommands: {
|
|
10
|
-
list: () => import("./list-
|
|
11
|
-
get: () => import("./get-
|
|
12
|
-
set: () => import("./set-
|
|
10
|
+
list: () => import("./list-CoRX8Ruc.mjs").then((m) => m.default),
|
|
11
|
+
get: () => import("./get-D9o38nK5.mjs").then((m) => m.default),
|
|
12
|
+
set: () => import("./set-X2N6x7pe.mjs").then((m) => m.default)
|
|
13
13
|
}
|
|
14
14
|
});
|
|
15
15
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-D5bZ5BUX.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C1QgWHM7.mjs";
|
|
4
4
|
import { renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
5
5
|
import "./input-BXWgdKiS.mjs";
|
|
6
|
-
import { readBody } from "./body-
|
|
6
|
+
import { readBody } from "./body-B9XTTDEu.mjs";
|
|
7
7
|
import { bodyInputFlags } from "./body-flags-D7q87Btw.mjs";
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
|
|
@@ -8,9 +8,9 @@ var skills_default = defineCommand({
|
|
|
8
8
|
},
|
|
9
9
|
default: "list",
|
|
10
10
|
subCommands: {
|
|
11
|
-
list: () => import("./list-
|
|
12
|
-
get: () => import("./get-
|
|
13
|
-
path: () => import("./path-
|
|
11
|
+
list: () => import("./list-Cx8JxS2C.mjs").then((m) => m.default),
|
|
12
|
+
get: () => import("./get-C-UeGtgW.mjs").then((m) => m.default),
|
|
13
|
+
path: () => import("./path-BflajM08.mjs").then((m) => m.default)
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
16
|
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { defineCommand } from "citty";
|
|
2
|
+
|
|
3
|
+
//#region src/commands/snippet/index.ts
|
|
4
|
+
var snippet_default = defineCommand({
|
|
5
|
+
meta: {
|
|
6
|
+
name: "snippet",
|
|
7
|
+
description: "Manage Metabase native query snippets"
|
|
8
|
+
},
|
|
9
|
+
subCommands: {
|
|
10
|
+
list: () => import("./list-cnqPlJgC.mjs").then((mod) => mod.default),
|
|
11
|
+
get: () => import("./get-B8etVxWD.mjs").then((mod) => mod.default),
|
|
12
|
+
create: () => import("./create-BDWthCYq.mjs").then((mod) => mod.default),
|
|
13
|
+
update: () => import("./update-BuypOaXq.mjs").then((mod) => mod.default),
|
|
14
|
+
archive: () => import("./archive-D-Ovk0-E.mjs").then((mod) => mod.default)
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
export { snippet_default as default };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ConfigError } from "./command-augment-CAur0XOQ.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-D5bZ5BUX.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C1QgWHM7.mjs";
|
|
4
4
|
import { renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
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-
|
|
5
|
+
import "./parse-id-DNPeV0Iu.mjs";
|
|
6
|
+
import "./poll-CYkX02Bm.mjs";
|
|
7
|
+
import { gitSyncWaitFlags, parseWaitFlags } from "./wait-flags-DQrxnlwv.mjs";
|
|
8
|
+
import { REMOTE_SYNC_PATHS, SyncTask, formatSyncTask, pollSyncTask, throwIfFailedTask } from "./poll-task-oXpl3wzp.mjs";
|
|
9
9
|
import { z } from "zod";
|
|
10
10
|
|
|
11
11
|
//#region src/commands/git-sync/stash.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-D5bZ5BUX.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C1QgWHM7.mjs";
|
|
4
4
|
import { renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
5
|
-
import "./poll-
|
|
6
|
-
import { REMOTE_SYNC_PATHS, SyncTask, fetchCurrentTask, fetchOptionalParsed, formatSyncTask } from "./poll-task-
|
|
7
|
-
import { IsDirtyResult } from "./is-dirty-
|
|
5
|
+
import "./poll-CYkX02Bm.mjs";
|
|
6
|
+
import { REMOTE_SYNC_PATHS, SyncTask, fetchCurrentTask, fetchOptionalParsed, formatSyncTask } from "./poll-task-oXpl3wzp.mjs";
|
|
7
|
+
import { IsDirtyResult } from "./is-dirty-D9MoFj0T.mjs";
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
|
|
10
10
|
//#region src/commands/git-sync/status.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
-
import { outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { ParsedVersionSchema, ProbedUser, ProfileAuthMethod, ProfileLastFailure, TokenFeatures, defineMetabaseCommand, displayUrl, profileAuthMethod, readProfileRecord, resolveProfileName } from "./runtime-
|
|
2
|
+
import { outputFlags, profileFlag } from "./error-D5bZ5BUX.mjs";
|
|
3
|
+
import { ParsedVersionSchema, ProbedUser, ProfileAuthMethod, ProfileLastFailure, TokenFeatures, defineMetabaseCommand, displayUrl, profileAuthMethod, readProfileRecord, resolveProfileName } from "./runtime-C1QgWHM7.mjs";
|
|
4
4
|
import { renderItem } from "./capabilities-BX1rnVuH.mjs";
|
|
5
5
|
import { renderAuthMethod, renderTimestamp, renderUserName, renderUserRole, renderVersionTag } from "./render-CkuFkWlQ.mjs";
|
|
6
6
|
import { z } from "zod";
|