@metabase/cli 0.1.12 → 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-DEME4IOy.mjs → add-collection-BQsx2Q-S.mjs} +5 -5
- package/dist/add-collection-BiBKEHwz.mjs +10 -0
- package/dist/{archive-BtDvBsr8.mjs → archive-BP53zrzs.mjs} +6 -6
- package/dist/{archive-Dc-FwNZm.mjs → archive-BS4U2_gi.mjs} +7 -7
- package/dist/{archive-DUlrUlok.mjs → archive-BrYMa87Z.mjs} +6 -6
- package/dist/{archive-CMeTr8jv.mjs → archive-D7qtYihp.mjs} +6 -6
- package/dist/{archive-BFk-oupo.mjs → archive-Dt5zuiwu.mjs} +6 -6
- package/dist/{archive-BNioNJtG.mjs → archive-FLrOqODN.mjs} +7 -7
- package/dist/{archive-MTTQv3wR.mjs → archive-H8wBIt8q.mjs} +7 -7
- package/dist/auth-DWA7DSo9.mjs +19 -0
- package/dist/{body-89w3r7In.mjs → body-3vzTm8Jj.mjs} +3 -3
- package/dist/{branches-DuVKH8Ye.mjs → branches-Lr1cCUdg.mjs} +6 -6
- package/dist/{cancel-BEMQKVuR.mjs → cancel-Br3FHyDR.mjs} +5 -5
- package/dist/{cancel-task-D2mSPFXO.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-L9jksUMD.mjs → cards-D-AkjCxr.mjs} +6 -6
- package/dist/cli.mjs +25 -25
- package/dist/collection-DIUWkVFY.mjs +20 -0
- package/dist/{collection-namespace-w26SavJH.mjs → collection-namespace-BQ_ebqOP.mjs} +2 -2
- package/dist/{command-augment-BH9qgQ5u.mjs → command-augment-CAur0XOQ.mjs} +13 -2
- package/dist/{create-D6QqOX6u.mjs → create-BpAak62U.mjs} +9 -9
- package/dist/{create-Dew3rKsR.mjs → create-C1xYECl-.mjs} +8 -8
- package/dist/{create-Cxg_h8Kf.mjs → create-CDL9WHiR.mjs} +10 -10
- package/dist/{create-8hMjPz7j.mjs → create-CcZEV9xx.mjs} +8 -8
- package/dist/{create-DoeqRVmx.mjs → create-DHUhRzcV.mjs} +11 -11
- package/dist/{create-Bu9Jayck.mjs → create-DUdkitlQ.mjs} +12 -12
- package/dist/{create-zEq4ZJAT.mjs → create-Dx1SDXyQ.mjs} +8 -8
- package/dist/{create-branch-C5P2y8U5.mjs → create-branch-BvZKizC4.mjs} +6 -6
- package/dist/{create-C3b3MoIN.mjs → create-ux0yPpq1.mjs} +10 -10
- package/dist/{create-DCYc032c.mjs → create-y4j2I1aH.mjs} +11 -11
- package/dist/{current-task-uD4QO5bM.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-DGaNAFdQ.mjs → delete-CW3cEHlr.mjs} +7 -7
- package/dist/{delete-Bftif2R3.mjs → delete-DFWjBpzl.mjs} +7 -7
- package/dist/{delete-runtime-CjFc69tS.mjs → delete-runtime-BhZAAvjc.mjs} +3 -3
- package/dist/{delete-table-C0qxP6FE.mjs → delete-table-Wa0yRsnM.mjs} +7 -7
- package/dist/{dirty-CZZLpWt1.mjs → dirty-CKcGYIpv.mjs} +6 -6
- package/dist/document-CRuag6F5.mjs +19 -0
- package/dist/{eid-C8xTmR8e.mjs → eid-m44hs7Ul.mjs} +7 -7
- package/dist/{error-BGH4gxGN.mjs → error-DR_i1hxJ.mjs} +40 -5
- package/dist/{export-DWdjnBKo.mjs → export-8C4F9pYn.mjs} +8 -8
- package/dist/field-CuabjsR7.mjs +18 -0
- package/dist/{fields-Cq08PQec.mjs → fields-hXrRjf7e.mjs} +7 -7
- package/dist/{get-8nAjRL2H.mjs → get-3zFOkcl_.mjs} +7 -7
- package/dist/{get-BaKKF50e.mjs → get-8r-_QuSr.mjs} +6 -6
- package/dist/{get-ug26gcOI.mjs → get-9MCrsgTf.mjs} +8 -8
- package/dist/{get-Bbij6RjC.mjs → get-BjCQctuS.mjs} +6 -6
- package/dist/{get-Bcr_5fAb.mjs → get-BlNLGR-F.mjs} +6 -6
- package/dist/{get-Rqz7UHv1.mjs → get-BxgSKzca.mjs} +6 -6
- package/dist/{get-f5ENeUNw.mjs → get-C7EKJGTP.mjs} +6 -6
- package/dist/{get-DHPN1716.mjs → get-Cit5liJv.mjs} +7 -7
- package/dist/{get-DzLAmSKd.mjs → get-CqU4xVSg.mjs} +5 -5
- package/dist/{get-B2vGW7Aw.mjs → get-CvLECgtm.mjs} +6 -6
- package/dist/{get-DtKv-gl3.mjs → get-D7WUNQYY.mjs} +6 -6
- package/dist/{get-7IhxPyE_.mjs → get-DWg3riaY.mjs} +6 -6
- package/dist/{get-Cr8oz_jr.mjs → get-cjqlMKF5.mjs} +6 -6
- package/dist/{get-run-DhbHXaZE.mjs → get-run-CTDPEDcU.mjs} +6 -6
- package/dist/{get-B_BJ10pV.mjs → get-xVPjvf7O.mjs} +6 -6
- package/dist/git-sync-CKsGGVOm.mjs +28 -0
- package/dist/{has-remote-changes-CTLh3WjZ.mjs → has-remote-changes-DYo4PQfC.mjs} +6 -6
- package/dist/{import-XakIQfRp.mjs → import-Cwd-_wYv.mjs} +8 -8
- package/dist/{input-BZwm4yby.mjs → input-BXWgdKiS.mjs} +1 -1
- package/dist/{is-dirty-DkOOyjsZ.mjs → is-dirty-HynZex-f.mjs} +4 -4
- package/dist/is-dirty-Mkgi21bq.mjs +9 -0
- package/dist/{items-DC985V8K.mjs → items-D4pSBGxR.mjs} +8 -8
- package/dist/{key-y4TtxKwU.mjs → key-C8q5oIr5.mjs} +1 -1
- package/dist/{list-CEbMS6g3.mjs → list-B2QX8BZ3.mjs} +5 -5
- package/dist/{list-CIEI8XK_.mjs → list-Bqy3rN6k.mjs} +5 -5
- package/dist/{list-Df4MhR2A.mjs → list-CI1WQ8U3.mjs} +7 -7
- package/dist/{list-xfmTxHNu.mjs → list-Ctze3nfU.mjs} +5 -5
- package/dist/{list-Cnb9mQdd.mjs → list-D-Ms9fhd.mjs} +7 -7
- package/dist/{list-gy64AAWO.mjs → list-D3BBrpoQ.mjs} +5 -5
- package/dist/{list-STlBcPs8.mjs → list-D7o0DOZe.mjs} +5 -5
- package/dist/{list-CyIgwqFB.mjs → list-DBjOFesD.mjs} +6 -6
- package/dist/{list-B83-hnq5.mjs → list-DMZumpNv.mjs} +5 -5
- package/dist/{list-PYNFVJGM.mjs → list-De2qX1w8.mjs} +7 -7
- package/dist/{list-CtAFlkLe.mjs → list-ET066OdN.mjs} +5 -5
- package/dist/{list-BtNboYpZ.mjs → list-F0BQNbaZ.mjs} +25 -18
- package/dist/{list-OGkVAG6b.mjs → list-XgdM17ix.mjs} +6 -6
- package/dist/{list-DfPwBQrZ.mjs → list-_xdr1WKh.mjs} +5 -5
- package/dist/login-BHDdLJzw.mjs +453 -0
- package/dist/{logout-BUgUTFol.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-Dwkcsa1c.mjs → metadata-D23RdbEZ.mjs} +8 -8
- package/dist/{metadata-B1EmV1l5.mjs → metadata-a_N6Sx30.mjs} +7 -7
- package/dist/{parse-enum-Dr7ACrTR.mjs → parse-enum-BatHQ-Gs.mjs} +1 -1
- package/dist/{parse-id-sKNP6yu5.mjs → parse-id-B1BlAunl.mjs} +1 -1
- package/dist/{parse-ref-BiETXmvm.mjs → parse-ref-CZr1bYIl.mjs} +1 -1
- package/dist/{path-BZJR7YLR.mjs → path-FSfPscAQ.mjs} +5 -5
- package/dist/{poll-Cyw-dQi4.mjs → poll-Dl5Zv4Ed.mjs} +2 -2
- package/dist/{poll-task-BG0oVnfZ.mjs → poll-task-BoRK94WQ.mjs} +2 -2
- package/dist/{preflight-BjR63JnX.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-C2xqnz24.mjs → query-CSvpJssD.mjs} +8 -8
- package/dist/{query-result-B4kTRid7.mjs → query-result-L5_NrwQR.mjs} +1 -1
- package/dist/{query-Dk55Wp2p.mjs → query-yZ9HeaGp.mjs} +12 -12
- package/dist/{remove-collection-DbVNWGyb.mjs → remove-collection-CV7ssevw.mjs} +8 -8
- package/dist/{render-BQHJhSP1.mjs → render-CkuFkWlQ.mjs} +6 -1
- package/dist/{rescan-values-CuLQ9UHP.mjs → rescan-values-CMeOv6yx.mjs} +8 -8
- package/dist/{run-PDN33QjN.mjs → run-CIJOYXor.mjs} +8 -8
- package/dist/{runs-B9T-7lei.mjs → runs--CzbmfPg.mjs} +7 -7
- package/dist/{runtime-DgHh4T6t.mjs → runtime-DJTGfiKO.mjs} +591 -123
- package/dist/{schema-tables-DjmNwrlT.mjs → schema-tables-BII9pHR8.mjs} +7 -7
- package/dist/{schemas-CWL8gv1C.mjs → schemas-BzxVz71I.mjs} +5 -5
- package/dist/{search-D7JzmvfR.mjs → search-CjJZdaM0.mjs} +5 -5
- package/dist/segment-dkO4Ualw.mjs +19 -0
- package/dist/{set-C0dCLnUA.mjs → set-Ds_brNWu.mjs} +8 -8
- package/dist/{setting-Licy7ZSs.mjs → setting-YDJRWd1m.mjs} +3 -3
- package/dist/{setup-BL4fqxoU.mjs → setup-DJb-NgSM.mjs} +7 -7
- package/dist/{skills-CY_FmaPo.mjs → skills-CJ8g8fhQ.mjs} +1 -1
- package/dist/{skills-Cn8FMCxG.mjs → skills-Dn-kn8Wj.mjs} +3 -3
- package/dist/snippet-DqTiC73e.mjs +19 -0
- package/dist/{stash-SGod4B8-.mjs → stash-DGujowmx.mjs} +8 -8
- package/dist/{status-CvUuZVvC.mjs → status-3-Tl07gu.mjs} +14 -6
- package/dist/{status-BCb5iCsQ.mjs → status-Cx0TIn1I.mjs} +7 -7
- package/dist/{summary-qaTPTLWs.mjs → summary-CT-xFvnX.mjs} +6 -6
- package/dist/{sync-schema-CjjAYTbO.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-C0MFcweC.mjs → tree-CLUxXw-Z.mjs} +5 -5
- package/dist/{update-DCR0wFNl.mjs → update-6IuvkFCk.mjs} +11 -11
- package/dist/{update-CHUUY-IB.mjs → update-BeH_S7h9.mjs} +9 -9
- package/dist/{update-BqsGGrzx.mjs → update-BfNmqvuN.mjs} +13 -13
- package/dist/{update-BImaz9vj.mjs → update-C_Ui5qPU.mjs} +12 -12
- package/dist/{update-CJASCsG4.mjs → update-DD5Q37bz.mjs} +9 -9
- package/dist/{update-Dty6LvU2.mjs → update-DdqzxPIr.mjs} +12 -12
- package/dist/{update-BTzsE8GU.mjs → update-DpCv5Mdo.mjs} +9 -9
- package/dist/{update-BUoWwmQV.mjs → update-I0t_6Mni.mjs} +9 -9
- package/dist/{update-vk_M0eOR.mjs → update-Z_LMzsiz.mjs} +11 -11
- package/dist/{update-dashcard-BkJaVVvf.mjs → update-dashcard-Bl3wbB8-.mjs} +9 -9
- package/dist/{update-qoP7hZTg.mjs → update-tQvEYuzD.mjs} +10 -10
- package/dist/{upgrade-TdaiAYbH.mjs → upgrade-r2ZlfstE.mjs} +6 -34
- package/dist/{uuid-BeUz8VpP.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-DR-3HcK6.mjs → values-DuNE6Jxc.mjs} +6 -6
- package/dist/{verify-D2uBlvmt.mjs → verify-D_yq68-R.mjs} +5 -5
- package/dist/{wait-FAnqO-LT.mjs → wait-CoDzO37B.mjs} +7 -7
- package/dist/{wait-flags-B5BI_xob.mjs → wait-flags-BxUfF5zy.mjs} +2 -2
- package/package.json +1 -1
- package/dist/add-collection-BPtBMh8Y.mjs +0 -10
- package/dist/auth-CjFnuPe9.mjs +0 -19
- package/dist/card-DoDpwR4t.mjs +0 -20
- package/dist/collection-CF-1RIPY.mjs +0 -20
- package/dist/dashboard-C5zTX345.mjs +0 -21
- package/dist/db-4y5Z1CQw.mjs +0 -22
- package/dist/document-97l9Non_.mjs +0 -19
- package/dist/field-BwUTrelF.mjs +0 -18
- package/dist/git-sync-JIMEYW-E.mjs +0 -28
- package/dist/is-dirty-4gf8ujws.mjs +0 -9
- package/dist/login-C0VFlX8y.mjs +0 -180
- package/dist/measure-BmcmxRQ3.mjs +0 -19
- package/dist/segment-DrZNuxsM.mjs +0 -19
- package/dist/snippet-C5_4nPGj.mjs +0 -19
- package/dist/table-DK1B8Hzq.mjs +0 -19
- package/dist/transform-Dh5746zH.mjs +0 -24
- package/dist/transform-job-D0nRGPYN.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,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 { Segment, 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 { renderItem } from "./capabilities-BX1rnVuH.mjs";
|
|
5
|
+
import { parseId } from "./parse-id-B1BlAunl.mjs";
|
|
6
|
+
import { Segment, segmentView } from "./segment-B9SEv9V_.mjs";
|
|
7
7
|
|
|
8
8
|
//#region src/commands/segment/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 { parseId } from "./parse-id-
|
|
6
|
-
import { TransformJob, transformJobView } from "./transform-job-
|
|
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 { TransformJob, transformJobView } from "./transform-job-B9pXBOwr.mjs";
|
|
7
7
|
|
|
8
8
|
//#region src/commands/transform-job/get.ts
|
|
9
9
|
var get_default = defineMetabaseCommand({
|
|
@@ -1,10 +1,10 @@
|
|
|
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, TableQueryMetadata, tableView } from "./table-
|
|
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, TableQueryMetadata, tableView } from "./table-qDD2kApF.mjs";
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
|
|
10
10
|
//#region src/commands/table/get.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ConfigError } from "./command-augment-
|
|
2
|
-
import { listEnvelopeSchema, outputFlags, wrapList } from "./error-
|
|
3
|
-
import { defineMetabaseCommand, parseCsv } from "./runtime-
|
|
4
|
-
import { renderList, writeText } from "./capabilities-
|
|
5
|
-
import { SkillContent, loadAllSkills, loadVisibleSkills, readSkillContent, selectSkillsByNames } from "./skills-
|
|
1
|
+
import { ConfigError } from "./command-augment-CAur0XOQ.mjs";
|
|
2
|
+
import { listEnvelopeSchema, outputFlags, wrapList } from "./error-DR_i1hxJ.mjs";
|
|
3
|
+
import { defineMetabaseCommand, parseCsv } from "./runtime-DJTGfiKO.mjs";
|
|
4
|
+
import { renderList, writeText } from "./capabilities-BX1rnVuH.mjs";
|
|
5
|
+
import { SkillContent, loadAllSkills, loadVisibleSkills, readSkillContent, selectSkillsByNames } from "./skills-CJ8g8fhQ.mjs";
|
|
6
6
|
|
|
7
7
|
//#region src/commands/skills/get.ts
|
|
8
8
|
const SkillGetEnvelope = listEnvelopeSchema(SkillContent);
|
|
@@ -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 { DashboardDetail, dashboardView } from "./dashboard-
|
|
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 { DashboardDetail, dashboardView } from "./dashboard-B4bn3z6t.mjs";
|
|
7
7
|
|
|
8
8
|
//#region src/commands/dashboard/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 { parseId } from "./parse-id-
|
|
6
|
-
import { Measure, 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 { renderItem } from "./capabilities-BX1rnVuH.mjs";
|
|
5
|
+
import { parseId } from "./parse-id-B1BlAunl.mjs";
|
|
6
|
+
import { Measure, measureView } from "./measure-JJAdFoqK.mjs";
|
|
7
7
|
|
|
8
8
|
//#region src/commands/measure/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, parseJsonOrPlain } from "./runtime-
|
|
4
|
-
import { formatScalar, renderSummary } from "./capabilities-
|
|
5
|
-
import { SettingValue, settingValueView } from "./setting-
|
|
6
|
-
import { parseSettingKey, rethrowSettingError } from "./key-
|
|
1
|
+
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-DR_i1hxJ.mjs";
|
|
3
|
+
import { defineMetabaseCommand, parseJsonOrPlain } from "./runtime-DJTGfiKO.mjs";
|
|
4
|
+
import { formatScalar, renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
5
|
+
import { SettingValue, settingValueView } from "./setting-i0pugNHl.mjs";
|
|
6
|
+
import { parseSettingKey, rethrowSettingError } from "./key-C8q5oIr5.mjs";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
|
|
9
9
|
//#region src/commands/setting/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 { parseId } from "./parse-id-
|
|
6
|
-
import { Transform, transformView } from "./transform
|
|
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 { Transform, transformView } from "./transform-qczxOAzn.mjs";
|
|
7
7
|
|
|
8
8
|
//#region src/commands/transform/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 { parseId } from "./parse-id-
|
|
6
|
-
import { TransformRun, transformRunView } from "./transform
|
|
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 { TransformRun, transformRunView } from "./transform-qczxOAzn.mjs";
|
|
7
7
|
|
|
8
8
|
//#region src/commands/transform/get-run.ts
|
|
9
9
|
var get_run_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 { Document, 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 { renderItem } from "./capabilities-BX1rnVuH.mjs";
|
|
5
|
+
import { parseId } from "./parse-id-B1BlAunl.mjs";
|
|
6
|
+
import { Document, documentView } from "./document-qfwR0r63.mjs";
|
|
7
7
|
|
|
8
8
|
//#region src/commands/document/get.ts
|
|
9
9
|
var get_default = defineMetabaseCommand({
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { defineCommand } from "citty";
|
|
2
|
+
|
|
3
|
+
//#region src/commands/git-sync/index.ts
|
|
4
|
+
var git_sync_default = defineCommand({
|
|
5
|
+
meta: {
|
|
6
|
+
name: "git-sync",
|
|
7
|
+
description: "Sync Metabase content with a git remote"
|
|
8
|
+
},
|
|
9
|
+
subCommands: {
|
|
10
|
+
status: () => import("./status-Cx0TIn1I.mjs").then((mod) => mod.default),
|
|
11
|
+
"is-dirty": () => import("./is-dirty-Mkgi21bq.mjs").then((mod) => mod.default),
|
|
12
|
+
"has-remote-changes": () => import("./has-remote-changes-DYo4PQfC.mjs").then((mod) => mod.default),
|
|
13
|
+
dirty: () => import("./dirty-CKcGYIpv.mjs").then((mod) => mod.default),
|
|
14
|
+
"current-task": () => import("./current-task-DaWn0DYt.mjs").then((mod) => mod.default),
|
|
15
|
+
"cancel-task": () => import("./cancel-task-BXgeq3MH.mjs").then((mod) => mod.default),
|
|
16
|
+
wait: () => import("./wait-CoDzO37B.mjs").then((mod) => mod.default),
|
|
17
|
+
import: () => import("./import-Cwd-_wYv.mjs").then((mod) => mod.default),
|
|
18
|
+
export: () => import("./export-8C4F9pYn.mjs").then((mod) => mod.default),
|
|
19
|
+
stash: () => import("./stash-DGujowmx.mjs").then((mod) => mod.default),
|
|
20
|
+
branches: () => import("./branches-Lr1cCUdg.mjs").then((mod) => mod.default),
|
|
21
|
+
"create-branch": () => import("./create-branch-BvZKizC4.mjs").then((mod) => mod.default),
|
|
22
|
+
"add-collection": () => import("./add-collection-BiBKEHwz.mjs").then((mod) => mod.default),
|
|
23
|
+
"remove-collection": () => import("./remove-collection-CV7ssevw.mjs").then((mod) => mod.default)
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
//#endregion
|
|
28
|
+
export { git_sync_default as default };
|
|
@@ -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 { REMOTE_SYNC_PATHS } 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 { REMOTE_SYNC_PATHS } from "./poll-task-BoRK94WQ.mjs";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
|
|
9
9
|
//#region src/commands/git-sync/has-remote-changes.ts
|
|
@@ -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 "./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 "./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/import.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
2
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { renderSummary } from "./capabilities-
|
|
4
|
-
import { REMOTE_SYNC_PATHS } from "./poll-task-
|
|
1
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-DR_i1hxJ.mjs";
|
|
2
|
+
import { defineMetabaseCommand } from "./runtime-DJTGfiKO.mjs";
|
|
3
|
+
import { renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
4
|
+
import { REMOTE_SYNC_PATHS } from "./poll-task-BoRK94WQ.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
|
|
7
7
|
//#region src/commands/git-sync/is-dirty.ts
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
+
import "./error-DR_i1hxJ.mjs";
|
|
3
|
+
import "./runtime-DJTGfiKO.mjs";
|
|
4
|
+
import "./capabilities-BX1rnVuH.mjs";
|
|
5
|
+
import "./poll-Dl5Zv4Ed.mjs";
|
|
6
|
+
import "./poll-task-BoRK94WQ.mjs";
|
|
7
|
+
import { IsDirtyResult, is_dirty_default } from "./is-dirty-HynZex-f.mjs";
|
|
8
|
+
|
|
9
|
+
export { is_dirty_default as default };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import "./command-augment-
|
|
2
|
-
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand, parseEnum, parseEnumCsv } from "./runtime-
|
|
4
|
-
import { renderList } from "./capabilities-
|
|
5
|
-
import { parseId } from "./parse-id-
|
|
6
|
-
import { COLLECTION_ITEM_FILTER_MODELS, COLLECTION_PINNED_STATES, CollectionItem, CollectionItemCompact, CollectionItemFilterModel, CollectionPinnedState, collectionItemView } from "./collection-
|
|
7
|
-
import { parseCollectionRef } from "./parse-ref-
|
|
8
|
-
import { collectPaginated } from "./paginate-
|
|
1
|
+
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
+
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag } from "./error-DR_i1hxJ.mjs";
|
|
3
|
+
import { defineMetabaseCommand, parseEnum, parseEnumCsv } from "./runtime-DJTGfiKO.mjs";
|
|
4
|
+
import { renderList } from "./capabilities-BX1rnVuH.mjs";
|
|
5
|
+
import { parseId } from "./parse-id-B1BlAunl.mjs";
|
|
6
|
+
import { COLLECTION_ITEM_FILTER_MODELS, COLLECTION_PINNED_STATES, CollectionItem, CollectionItemCompact, CollectionItemFilterModel, CollectionPinnedState, collectionItemView } from "./collection-Deiziuu2.mjs";
|
|
7
|
+
import { parseCollectionRef } from "./parse-ref-CZr1bYIl.mjs";
|
|
8
|
+
import { collectPaginated } from "./paginate-BexjkjbY.mjs";
|
|
9
9
|
|
|
10
10
|
//#region src/commands/collection/items.ts
|
|
11
11
|
const CollectionItemListEnvelope = listEnvelopeSchema(CollectionItemCompact);
|
|
@@ -1,8 +1,8 @@
|
|
|
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 { Snippet, SnippetCompact, snippetView } from "./snippet-
|
|
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 { Snippet, SnippetCompact, snippetView } from "./snippet-NNzqlksR.mjs";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
|
|
8
8
|
//#region src/commands/snippet/list.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
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 { Measure, MeasureCompact, measureView } from "./measure-
|
|
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 { Measure, MeasureCompact, measureView } from "./measure-JJAdFoqK.mjs";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
|
|
8
8
|
//#region src/commands/measure/list.ts
|
|
@@ -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 "./field-
|
|
6
|
-
import { Card, CardCompact, cardView } from "./card-
|
|
7
|
-
import { parseEnumFlag } from "./parse-enum-
|
|
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 "./field-E0IBy4Uw.mjs";
|
|
6
|
+
import { Card, CardCompact, cardView } from "./card-wCPcuKSi.mjs";
|
|
7
|
+
import { parseEnumFlag } from "./parse-enum-BatHQ-Gs.mjs";
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
|
|
10
10
|
//#region src/commands/card/list.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
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 { TransformJob, TransformJobCompact, transformJobView } from "./transform-job-
|
|
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 { TransformJob, TransformJobCompact, transformJobView } from "./transform-job-B9pXBOwr.mjs";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
|
|
8
8
|
//#region src/commands/transform-job/list.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "./command-augment-
|
|
2
|
-
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand, parseEnum } from "./runtime-
|
|
4
|
-
import { renderList } from "./capabilities-
|
|
5
|
-
import "./field-
|
|
6
|
-
import "./table-
|
|
7
|
-
import { Database, DatabaseCompact, databaseView } from "./database-
|
|
1
|
+
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
+
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag } from "./error-DR_i1hxJ.mjs";
|
|
3
|
+
import { defineMetabaseCommand, parseEnum } from "./runtime-DJTGfiKO.mjs";
|
|
4
|
+
import { renderList } from "./capabilities-BX1rnVuH.mjs";
|
|
5
|
+
import "./field-E0IBy4Uw.mjs";
|
|
6
|
+
import "./table-qDD2kApF.mjs";
|
|
7
|
+
import { Database, DatabaseCompact, databaseView } from "./database-BmsxuRmO.mjs";
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
|
|
10
10
|
//#region src/commands/db/list.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "./command-augment-
|
|
2
|
-
import { listEnvelopeSchema, outputFlags, wrapList } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import { renderList } from "./capabilities-
|
|
5
|
-
import { loadVisibleSkills } from "./skills-
|
|
1
|
+
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
+
import { listEnvelopeSchema, outputFlags, wrapList } from "./error-DR_i1hxJ.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-DJTGfiKO.mjs";
|
|
4
|
+
import { renderList } from "./capabilities-BX1rnVuH.mjs";
|
|
5
|
+
import { loadVisibleSkills } from "./skills-CJ8g8fhQ.mjs";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
|
|
8
8
|
//#region src/commands/skills/list.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
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 { Segment, SegmentCompact, segmentView } from "./segment-
|
|
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 { Segment, SegmentCompact, segmentView } from "./segment-B9SEv9V_.mjs";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
|
|
8
8
|
//#region src/commands/segment/list.ts
|
|
@@ -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 { parseEnumFlag } from "./parse-enum-
|
|
6
|
-
import { Collection, CollectionCompact, collectionView } from "./collection-
|
|
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 { parseEnumFlag } from "./parse-enum-BatHQ-Gs.mjs";
|
|
6
|
+
import { Collection, CollectionCompact, collectionView } from "./collection-Deiziuu2.mjs";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
|
|
9
9
|
//#region src/commands/collection/list.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
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 { Setting, SettingCompact, settingView } from "./setting-
|
|
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 { Setting, SettingCompact, settingView } from "./setting-i0pugNHl.mjs";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
|
|
8
8
|
//#region src/commands/setting/list.ts
|
|
@@ -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 "./field-
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
7
|
-
import { Table, TableCompact, tableView } 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 "./field-E0IBy4Uw.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-B1BlAunl.mjs";
|
|
7
|
+
import { Table, TableCompact, tableView } from "./table-qDD2kApF.mjs";
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
|
|
10
10
|
//#region src/commands/table/list.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
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 { Document, DocumentCompact, documentView } from "./document-
|
|
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 { Document, DocumentCompact, documentView } from "./document-qfwR0r63.mjs";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
|
|
8
8
|
//#region src/commands/document/list.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "./command-augment-
|
|
2
|
-
import { listEnvelopeSchema, outputFlags, wrapList } from "./error-
|
|
3
|
-
import { ParsedVersionSchema, ProbedUser, ProfileLastFailure, TokenFeatures, defineMetabaseCommand, listProfileRecords,
|
|
4
|
-
import { verifyAndProbe } from "./verify-
|
|
5
|
-
import { renderList
|
|
6
|
-
import { renderTimestamp, renderUserRole, renderVersionTag } from "./render-
|
|
1
|
+
import { warn } from "./command-augment-CAur0XOQ.mjs";
|
|
2
|
+
import { listEnvelopeSchema, outputFlags, wrapList } from "./error-DR_i1hxJ.mjs";
|
|
3
|
+
import { ParsedVersionSchema, ProbedUser, ProfileAuthMethod, ProfileLastFailure, TokenFeatures, createCredentialRefresher, defineMetabaseCommand, displayUrl, listProfileRecords, profileAuthMethod, resolveRecordCredential, writeProbeFailure, writeProbeResult } from "./runtime-DJTGfiKO.mjs";
|
|
4
|
+
import { verifyAndProbe } from "./verify-D_yq68-R.mjs";
|
|
5
|
+
import { renderList } from "./capabilities-BX1rnVuH.mjs";
|
|
6
|
+
import { renderAuthMethod, renderTimestamp, renderUserRole, renderVersionTag } from "./render-CkuFkWlQ.mjs";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
|
|
9
9
|
//#region src/commands/auth/list.ts
|
|
@@ -17,6 +17,7 @@ const AuthProfileStatus = z.enum([
|
|
|
17
17
|
const AuthProfile = z.object({
|
|
18
18
|
profile: z.string(),
|
|
19
19
|
url: z.string(),
|
|
20
|
+
method: ProfileAuthMethod,
|
|
20
21
|
authenticated: z.boolean(),
|
|
21
22
|
status: AuthProfileStatus,
|
|
22
23
|
user: ProbedUser.nullable(),
|
|
@@ -44,6 +45,11 @@ const authProfileView = {
|
|
|
44
45
|
key: "url",
|
|
45
46
|
label: "URL"
|
|
46
47
|
},
|
|
48
|
+
{
|
|
49
|
+
key: "method",
|
|
50
|
+
label: "Auth",
|
|
51
|
+
format: (value) => renderAuthMethod(value)
|
|
52
|
+
},
|
|
47
53
|
{
|
|
48
54
|
key: "status",
|
|
49
55
|
label: "Status",
|
|
@@ -81,24 +87,23 @@ var list_default = defineMetabaseCommand({
|
|
|
81
87
|
examples: ["mb auth list", "mb auth list --json"],
|
|
82
88
|
async run({ ctx }) {
|
|
83
89
|
const records = await listProfileRecords();
|
|
84
|
-
const verifications = await Promise.all(records.map(verifyOne));
|
|
85
90
|
const items = [];
|
|
86
|
-
for (const
|
|
91
|
+
for (const record of records) items.push(await persistAndProject(await verifyOne(record)));
|
|
87
92
|
renderList(wrapList(items), authProfileView, ctx);
|
|
88
93
|
for (const item of items) if (item.status === "auth-failed" && item.lastFailure !== null) warn(`${item.profile}: ${item.lastFailure.reason}. Run \`mb auth login --profile ${item.profile}\` to update the token.`);
|
|
89
94
|
}
|
|
90
95
|
});
|
|
91
96
|
async function verifyOne(record) {
|
|
92
|
-
const
|
|
93
|
-
if (
|
|
97
|
+
const resolved = resolveRecordCredential(record);
|
|
98
|
+
if (resolved === null) return {
|
|
94
99
|
record,
|
|
95
100
|
url: record.url,
|
|
96
101
|
verification: { kind: "no-creds" }
|
|
97
102
|
};
|
|
98
|
-
const result = await verifyAndProbe(
|
|
103
|
+
const result = await verifyAndProbe(resolved.url, resolved.credential, createCredentialRefresher(record.name));
|
|
99
104
|
if (result.ok) return {
|
|
100
105
|
record,
|
|
101
|
-
url:
|
|
106
|
+
url: resolved.url,
|
|
102
107
|
verification: {
|
|
103
108
|
kind: "success",
|
|
104
109
|
user: result.user,
|
|
@@ -107,7 +112,7 @@ async function verifyOne(record) {
|
|
|
107
112
|
};
|
|
108
113
|
return {
|
|
109
114
|
record,
|
|
110
|
-
url:
|
|
115
|
+
url: resolved.url,
|
|
111
116
|
verification: {
|
|
112
117
|
kind: "failure",
|
|
113
118
|
failure: result
|
|
@@ -123,7 +128,7 @@ async function persistAndProject(entry) {
|
|
|
123
128
|
server: verification.server
|
|
124
129
|
});
|
|
125
130
|
if (probe === null) return toJson(record, "not-probed");
|
|
126
|
-
return projectSuccess(record
|
|
131
|
+
return projectSuccess(record, url, probe);
|
|
127
132
|
}
|
|
128
133
|
const failure = await writeProbeFailure(record.name, {
|
|
129
134
|
kind: verification.failure.kind,
|
|
@@ -135,10 +140,11 @@ async function persistAndProject(entry) {
|
|
|
135
140
|
lastFailure: failure
|
|
136
141
|
}, statusFromVerification(verification.failure));
|
|
137
142
|
}
|
|
138
|
-
function projectSuccess(
|
|
143
|
+
function projectSuccess(record, url, probe) {
|
|
139
144
|
return {
|
|
140
|
-
profile: name,
|
|
141
|
-
url:
|
|
145
|
+
profile: record.name,
|
|
146
|
+
url: displayUrl(url),
|
|
147
|
+
method: profileAuthMethod(record),
|
|
142
148
|
authenticated: true,
|
|
143
149
|
status: "ok",
|
|
144
150
|
user: probe.user,
|
|
@@ -152,7 +158,8 @@ function toJson(record, status) {
|
|
|
152
158
|
const probe = record.lastProbe;
|
|
153
159
|
return {
|
|
154
160
|
profile: record.name,
|
|
155
|
-
url:
|
|
161
|
+
url: displayUrl(record.url),
|
|
162
|
+
method: profileAuthMethod(record),
|
|
156
163
|
authenticated: status === "ok",
|
|
157
164
|
status,
|
|
158
165
|
user: probe?.user ?? null,
|
|
@@ -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 { parseEnumFlag } from "./parse-enum-
|
|
6
|
-
import { Dashboard, DashboardCompact, dashboardView } from "./dashboard-
|
|
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 { parseEnumFlag } from "./parse-enum-BatHQ-Gs.mjs";
|
|
6
|
+
import { Dashboard, DashboardCompact, dashboardView } from "./dashboard-B4bn3z6t.mjs";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
|
|
9
9
|
//#region src/commands/dashboard/list.ts
|