@metabase/cli 0.1.6 → 0.1.8
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 +14 -14
- package/dist/{add-collection-BU8r3r2M.mjs → add-collection-CwrbKmC1.mjs} +8 -6
- package/dist/add-collection-DxtuNxeP.mjs +11 -0
- package/dist/{archive-DMPS8Kih.mjs → archive-BAjGIzhn.mjs} +7 -7
- package/dist/{archive-C1enZgKV.mjs → archive-BO3DOWI4.mjs} +6 -6
- package/dist/{archive-CRhiBpPJ.mjs → archive-BpKZsGAm.mjs} +7 -7
- package/dist/{archive-lWgqiFAt.mjs → archive-BzvqQd34.mjs} +6 -6
- package/dist/{archive-CDA0KxL8.mjs → archive-DqUtqRut.mjs} +6 -6
- package/dist/{archive-BNinrUak.mjs → archive-ZnnJc2iT.mjs} +7 -7
- package/dist/auth-B9B4pUaH.mjs +19 -0
- package/dist/{body-DjdFxjpg.mjs → body-DDYKoyMt.mjs} +1 -1
- package/dist/{branches-B1WRfG7-.mjs → branches-DjiGsjAz.mjs} +5 -5
- package/dist/{cancel-Dl_Ho056.mjs → cancel-BwtDQ2MR.mjs} +6 -6
- package/dist/{cancel-task-CdigdCaO.mjs → cancel-task-uJp18RvR.mjs} +6 -6
- package/dist/card-D54unw6r.mjs +20 -0
- package/dist/{card-DlCAaAPq.mjs → card-ezYiriML.mjs} +1 -1
- package/dist/{cards-BGiJS675.mjs → cards-z68PANDD.mjs} +5 -5
- package/dist/cli.mjs +24 -24
- package/dist/collection-B5kIKRTL.mjs +20 -0
- package/dist/{create-BYlIju0b.mjs → create-4EAGYVyp.mjs} +7 -7
- package/dist/{create-BTcpaop_.mjs → create-6XE7GYxk.mjs} +6 -6
- package/dist/{create-BNiva__H.mjs → create-7JOWFxqu.mjs} +8 -8
- package/dist/{create-dhxPxfF3.mjs → create-BzK59YlR.mjs} +10 -10
- package/dist/{create-CHF313Qg.mjs → create-C8gA-XP2.mjs} +8 -6
- package/dist/{create-DGth_uOp.mjs → create-CQ4Vg4Ge.mjs} +7 -7
- package/dist/{create-CwGtmwqm.mjs → create-DHWfmO2L.mjs} +7 -7
- package/dist/{create-CzzrbL0u.mjs → create-Dd_Gyg_F.mjs} +6 -6
- package/dist/{create-Be_0Vier.mjs → create-GVfCQU3B.mjs} +6 -6
- package/dist/{create-branch-DKZkoQ64.mjs → create-branch-CdWGiREu.mjs} +6 -6
- package/dist/{credentials-dzeq7ckm.mjs → credentials-CFA9iGZG.mjs} +9 -9
- package/dist/{current-task-CCRzm0_7.mjs → current-task-nPs-iCLi.mjs} +7 -7
- package/dist/dashboard-lw6IFfOs.mjs +21 -0
- package/dist/{database-CIXwHKjK.mjs → database-BPT6BrmF.mjs} +3 -3
- package/dist/{database-lH-B3G1I.mjs → database-BXiue1in.mjs} +1 -1
- package/dist/db-CBCj8sBg.mjs +22 -0
- package/dist/{delete-ZjnV35OJ.mjs → delete-CJqLgr6w.mjs} +7 -5
- package/dist/{delete-CM3jnAeQ.mjs → delete-CiV6f69N.mjs} +12 -8
- package/dist/{delete-Dimc-2y8.mjs → delete-Do1agSiL.mjs} +7 -5
- package/dist/{delete-runtime-B6RQo_pw.mjs → delete-runtime-uuYbd4k2.mjs} +5 -5
- package/dist/{delete-table-agZJpivt.mjs → delete-table-ZiJDpMFT.mjs} +7 -5
- package/dist/{deprovision-CwxcIT3k.mjs → deprovision-C-qEnh-P.mjs} +11 -9
- package/dist/{dirty-D4d0yHqj.mjs → dirty-BnTG7w7v.mjs} +5 -5
- package/dist/{docker-Oq80q3tu.mjs → docker-B-QQWThD.mjs} +3 -3
- package/dist/{eid-BXzaQh0o.mjs → eid-CwQ_smOD.mjs} +10 -5
- package/dist/{error-C9S6PN3-.mjs → error-CTVL5CdB.mjs} +3 -2
- package/dist/{export-DTygoXBP.mjs → export-DR2cC4rL.mjs} +10 -9
- package/dist/field-DJmQ2pul.mjs +18 -0
- package/dist/{field-yomXlkvl.mjs → field-E0IBy4Uw.mjs} +12 -3
- package/dist/{fields-CoQi99gv.mjs → fields-Ck31lDz9.mjs} +6 -6
- package/dist/{get-C3HdQ91a.mjs → get-BFJ3VBPa.mjs} +5 -5
- package/dist/{get-DSWFjy7O.mjs → get-BNKsNCcx.mjs} +5 -5
- package/dist/{get-C2p383Qc.mjs → get-BPOd0Rm8.mjs} +5 -5
- package/dist/{get-CzuzeKSe.mjs → get-BZiu-u-9.mjs} +7 -7
- package/dist/{get-Bzys7vgp.mjs → get-C71ypFQk.mjs} +5 -5
- package/dist/{get-C_w1kvN3.mjs → get-CICzGFSW.mjs} +6 -6
- package/dist/{get-CP3Z3NiH.mjs → get-CyG_P55z.mjs} +6 -6
- package/dist/{get-lb7q3JYs.mjs → get-DauAF3sm.mjs} +5 -5
- package/dist/{get-DQTZG_NP.mjs → get-DxqzDKKK.mjs} +5 -5
- package/dist/{get-D3SbEQSE.mjs → get-DyArILlF.mjs} +6 -6
- package/dist/{get-Ddr0XLh7.mjs → get-F338MOK-.mjs} +5 -5
- package/dist/{get-DFxZXaKz.mjs → get-GWRprk7k.mjs} +5 -5
- package/dist/{get-Hc93A0Yz.mjs → get-pO0wiy1e.mjs} +5 -5
- package/dist/{get-run-B7sKdaDU.mjs → get-run-DhM_PyVy.mjs} +5 -5
- package/dist/git-sync-rmjYOGFK.mjs +28 -0
- package/dist/{has-remote-changes-BY10-nnE.mjs → has-remote-changes-Ca0exJmb.mjs} +7 -6
- package/dist/{import-CiMz4Wz-.mjs → import-DjclIzGP.mjs} +11 -9
- package/dist/{is-dirty-BZOaryxT.mjs → is-dirty-Cke0a1ie.mjs} +5 -5
- package/dist/is-dirty-DFGgGLDi.mjs +10 -0
- package/dist/{items-BWfvkY-J.mjs → items-BSpapmCU.mjs} +7 -7
- package/dist/{license-Dxarh-gG.mjs → license-j0tDQLKI.mjs} +3 -3
- package/dist/{list-Brgh-Z2v.mjs → list-BI1PfPjn.mjs} +4 -4
- package/dist/{list-D4sFiqX8.mjs → list-BRXGDSMo.mjs} +5 -5
- package/dist/{list-DXH7TlkU.mjs → list-Br77Mw6U.mjs} +4 -4
- package/dist/{list-sD5N3fGk.mjs → list-Brt4oKO7.mjs} +6 -6
- package/dist/{list--OYdUTtu.mjs → list-CEE9yKNp.mjs} +4 -4
- package/dist/{list-DZ8fNUoQ.mjs → list-D1qhCQn0.mjs} +6 -6
- package/dist/{list-SOG0whQ-.mjs → list-DUyWON1F.mjs} +4 -4
- package/dist/{list-Clz5igWg.mjs → list-DWWGcUTg.mjs} +5 -5
- package/dist/{list-CL7eCOQE.mjs → list-DmO4ADQq.mjs} +4 -4
- package/dist/{list-BI4zr8LW.mjs → list-Fjjtpghb.mjs} +5 -5
- package/dist/{list-2j7GsXsl.mjs → list-V5IuMr_5.mjs} +4 -4
- package/dist/{list-C3hfovHv.mjs → list-bVlCwg8g.mjs} +4 -4
- package/dist/{list-zSO0DMw-.mjs → list-evetBTcH.mjs} +4 -4
- package/dist/{list-d58BprgJ.mjs → list-fIV-P6wP.mjs} +4 -4
- package/dist/{login-Bm2AnCez.mjs → login-BJGhZLgZ.mjs} +13 -9
- package/dist/{logout-BlyRJODO.mjs → logout-BAGLqtnV.mjs} +8 -7
- package/dist/{logs-CywPikkL.mjs → logs-jx5b_YDk.mjs} +6 -6
- package/dist/{manifest-BBR46KFM.mjs → manifest-BNh0Lw6p.mjs} +1 -1
- package/dist/measure-BfgxqewH.mjs +19 -0
- package/dist/{metadata-DqiI2q9q.mjs → metadata-B-GOcWqL.mjs} +6 -6
- package/dist/{metadata-B8ZSF9LA.mjs → metadata-DJAdsOoh.mjs} +7 -7
- package/dist/{parse-id-lk_K-CEF.mjs → parse-id-D1LTTt9L.mjs} +1 -1
- package/dist/{parse-schemas-BqUdWUwq.mjs → parse-schemas-DDK9nXuh.mjs} +1 -1
- package/dist/{path-AEtZ3mBq.mjs → path-D5kX-msX.mjs} +5 -5
- package/dist/{poll-DHKDpCiq.mjs → poll-DxpnK1wW.mjs} +1 -1
- package/dist/{poll-task-Cooi0lQV.mjs → poll-task-D8mG49IN.mjs} +19 -3
- package/dist/{preflight-aXV5LyDs.mjs → preflight-Df_FqJ6o.mjs} +3 -3
- package/dist/{provision-UWcNDoDe.mjs → provision-BJd6zO1D.mjs} +12 -11
- package/dist/ps-CpyHEvv7.mjs +11 -0
- package/dist/{ps-CJU0EbrC.mjs → ps-dEqRGeB3.mjs} +4 -4
- package/dist/{query-BlsVNZpD.mjs → query-OIuumiXN.mjs} +9 -8
- package/dist/query-result-ABPLz6I4.mjs +19 -0
- package/dist/{query-AaKzYnTY.mjs → query-zWFRDH3T.mjs} +9 -7
- package/dist/{remove-BFWun0e8.mjs → remove-BNQ1c6hB.mjs} +8 -7
- package/dist/{remove-collection-CoCmrrQs.mjs → remove-collection-BxmiXWKz.mjs} +10 -8
- package/dist/{render-CfznwleY.mjs → render-0_GsapXa.mjs} +39 -9
- package/dist/{render-OQn3iRsI.mjs → render-khznBlla.mjs} +1 -1
- package/dist/{rescan-values-C0FDsjT7.mjs → rescan-values-M7g81KIl.mjs} +9 -9
- package/dist/{run-B4Wn43zm.mjs → run-DTsx8bLb.mjs} +14 -13
- package/dist/{runs-Bbaszr18.mjs → runs-CqfJIuh_.mjs} +6 -6
- package/dist/{runtime-Dmv5VtUK.mjs → runtime-B40L_bj8.mjs} +7 -11
- package/dist/{schema-tables-CaWinbuK.mjs → schema-tables-CjBRF0_0.mjs} +6 -6
- package/dist/{schemas-DUgGpAyB.mjs → schemas-GIIbek2O.mjs} +4 -4
- package/dist/{search-BLrBXLUk.mjs → search-h78uOYec.mjs} +4 -4
- package/dist/segment-CoElN2b-.mjs +19 -0
- package/dist/{set-DfGsta5O.mjs → set-BRDxcLcQ.mjs} +8 -7
- package/dist/{set-B8cUbRLD.mjs → set-Dclba9xF.mjs} +4 -4
- package/dist/setting-mKzZJpQY.mjs +17 -0
- package/dist/{setup-C9ikBRw_.mjs → setup-WTIT2WbM.mjs} +5 -5
- package/dist/{skills-CiN1OQ8W.mjs → skills-BkregMyb.mjs} +1 -1
- package/dist/{skills-CUHIcQS6.mjs → skills-tMYd5d9v.mjs} +3 -3
- package/dist/snippet-B84H3tfp.mjs +19 -0
- package/dist/{start-3PX3ahjT.mjs → start-B7ByBicB.mjs} +12 -11
- package/dist/{stash-EIDcSvpF.mjs → stash-DxoAJzcK.mjs} +11 -9
- package/dist/{status-B0_MiZEf.mjs → status-B1dc3bbQ.mjs} +4 -4
- package/dist/{status-95ElRAu9.mjs → status-D0Ukfodl.mjs} +10 -7
- package/dist/{status-CEplmC44.mjs → status-DAzD1Cn_.mjs} +4 -4
- package/dist/{stop-CQ0XGrN8.mjs → stop-Cvexagxh.mjs} +13 -9
- package/dist/{summary-C12LiEuJ.mjs → summary-3qOMUcEX.mjs} +5 -5
- package/dist/{sync-schema-Ba8M3DiX.mjs → sync-schema-CrmVX1cy.mjs} +9 -9
- package/dist/table-B0fRQv91.mjs +19 -0
- package/dist/{table-C7a5V6Zn.mjs → table-qDD2kApF.mjs} +1 -1
- package/dist/transform-K_kp6Rdm.mjs +24 -0
- package/dist/transform-job-CuNN8zgv.mjs +19 -0
- package/dist/{tree-Des2ZG9d.mjs → tree-DsnIPFyE.mjs} +4 -4
- package/dist/{update-F6DmZncY.mjs → update-BEtl9LpG.mjs} +7 -7
- package/dist/{update-njHe3j-s.mjs → update-BRLcnSwK.mjs} +8 -8
- package/dist/{update-Bx54nWEI.mjs → update-Baya6OkO.mjs} +10 -10
- package/dist/{update-DBi5U8zb.mjs → update-BsgHRoZ8.mjs} +9 -9
- package/dist/{update-CyIZdbIQ.mjs → update-CLsqoEJ8.mjs} +7 -7
- package/dist/{update-_QfgNa53.mjs → update-CZEd_Eej.mjs} +8 -8
- package/dist/{update-mYVnoYNV.mjs → update-DPouQi4U.mjs} +8 -8
- package/dist/{update-DSgceARZ.mjs → update-DWn-nLPo.mjs} +7 -7
- package/dist/{update-DzAN4SPj.mjs → update-UaPqSfPN.mjs} +8 -8
- package/dist/{update-dashcard-wpSjv4M7.mjs → update-dashcard-DK9X91ha.mjs} +7 -7
- package/dist/{update-DHZubok3.mjs → update-hiJdbbsb.mjs} +12 -11
- package/dist/{upgrade-iAuvhX-W.mjs → upgrade-UqdvTikR.mjs} +11 -25
- package/dist/{url-DWaT6WIZ.mjs → url-LMJZRDv4.mjs} +8 -8
- package/dist/{uuid-CMKnS8-z.mjs → uuid-BWCaWG4O.mjs} +3 -3
- package/dist/{validate-query-Cw6WE5Y8.mjs → validate-query-CYvOP8Ld.mjs} +1 -1
- package/dist/{values-BfSTAbzc.mjs → values-D_wycrcr.mjs} +14 -6
- package/dist/{verify-D5YtTqqp.mjs → verify-D7hb6VMy.mjs} +1 -1
- package/dist/{wait-Bv3Tsnv4.mjs → wait-B5IpNFCG.mjs} +8 -8
- package/dist/{wait-8yV9_WIo.mjs → wait-DHjXk3jD.mjs} +2 -2
- package/dist/{wait-flags-Dzq9BGQY.mjs → wait-flags-CNIeSq0_.mjs} +2 -2
- package/dist/workspace-Bt8n3ojY.mjs +25 -0
- package/dist/{workspace-credentials-BXpABsNZ.mjs → workspace-credentials-8CBMQJFz.mjs} +1 -1
- package/package.json +1 -1
- package/skill-data/visualization/SKILL.md +158 -0
- package/skill-data/visualization/references/settings.md +414 -0
- package/dist/add-collection-C0w6ACQF.mjs +0 -11
- package/dist/auth-CzXb_zB2.mjs +0 -19
- package/dist/card-DP4rfoOi.mjs +0 -21
- package/dist/collection-tY18ezvn.mjs +0 -21
- package/dist/dashboard-ChM_Tu0l.mjs +0 -22
- package/dist/db-DrQn_i3W.mjs +0 -22
- package/dist/field-Z6Pcxf4n.mjs +0 -19
- package/dist/git-sync-CiGAad76.mjs +0 -28
- package/dist/is-dirty-Ume4oV0j.mjs +0 -10
- package/dist/measure-C44EK_xt.mjs +0 -20
- package/dist/ps-DEroLgbI.mjs +0 -11
- package/dist/segment-B3Uwwcsm.mjs +0 -20
- package/dist/setting-D2p2MA7f.mjs +0 -18
- package/dist/snippet-B7D0uWlz.mjs +0 -20
- package/dist/table-e6h8SLVX.mjs +0 -20
- package/dist/transform-BMYh1lsC.mjs +0 -25
- package/dist/transform-job-Cm7z5TfH.mjs +0 -20
- package/dist/workspace-CKLZrR7l.mjs +0 -26
- package/skill-data/viz/SKILL.md +0 -137
- package/skill-data/viz/references/settings.md +0 -312
- /package/dist/{collection-B3sPXRLs.mjs → collection-Bcy8cWYH.mjs} +0 -0
- /package/dist/{dashboard-FY5UzJ_Z.mjs → dashboard-B4bn3z6t.mjs} +0 -0
- /package/dist/{key-C2XG394c.mjs → key-vkNkH82H.mjs} +0 -0
- /package/dist/{measure-ClESGxIb.mjs → measure-Bt3InQsA.mjs} +0 -0
- /package/dist/{paginate-Dfm9eO9A.mjs → paginate-BexjkjbY.mjs} +0 -0
- /package/dist/{parse-ref-BiETXmvm.mjs → parse-ref-DKag6a6I.mjs} +0 -0
- /package/dist/{process-C7V8LJ-j.mjs → process-CM7Uu5q_.mjs} +0 -0
- /package/dist/{revision-message-flag-WmsIzUOM.mjs → revision-message-flag-DY29-cgz.mjs} +0 -0
- /package/dist/{segment-Be2v4ilr.mjs → segment-DhBmcr_E.mjs} +0 -0
- /package/dist/{setting-oL97SNeO.mjs → setting-BzCng1Ub.mjs} +0 -0
- /package/dist/{snippet-COggaWxx.mjs → snippet-bi_0XbNT.mjs} +0 -0
- /package/dist/{transform-GTW3G-01.mjs → transform-BKahefz_.mjs} +0 -0
- /package/dist/{transform-job-DeTDPMxt.mjs → transform-job-DjhoJbiV.mjs} +0 -0
- /package/dist/{workspace-BBXJczJK.mjs → workspace-D8HtUN0y.mjs} +0 -0
- /package/dist/{yaml-YTQiYJ9s.mjs → yaml-Gv6wRFMF.mjs} +0 -0
package/README.md
CHANGED
|
@@ -45,12 +45,12 @@ Credentials are stored per-profile. The default profile is named `default`. Use
|
|
|
45
45
|
|
|
46
46
|
Save credentials for a profile. On success the server is probed once — the rendered output shows the API-key user, role (`Admin`/`User`), and Metabase version, and the same values are cached in `<configDir>/profiles.json` so later commands skip re-probing. Failure of either the auth probe (`/api/user/current`) or the server probe (`/api/session/properties`) rejects the login; an existing profile keeps its last-known-good `apiKey`/`url`/`lastProbe` and gains a `lastFailure` entry.
|
|
47
47
|
|
|
48
|
-
| Flag
|
|
49
|
-
|
|
|
50
|
-
| `--url <url>`
|
|
51
|
-
| `--api-key <value>`
|
|
52
|
-
| `--profile <name
|
|
53
|
-
| `--skip-verify`
|
|
48
|
+
| Flag | Description |
|
|
49
|
+
| ------------------------ | ---------------------------------------------------------- |
|
|
50
|
+
| `--url <url>` | Metabase URL. Falls back to `METABASE_URL`, then prompts. |
|
|
51
|
+
| `--api-key <value>` | API key. Visible in shell history — pipe on stdin instead. |
|
|
52
|
+
| `--profile <name>`, `-p` | Profile to write to (default: `default`). |
|
|
53
|
+
| `--skip-verify` | Save without contacting the server (no probe, no cache). |
|
|
54
54
|
|
|
55
55
|
Resolution order for the API key: `--api-key` → piped stdin → `METABASE_API_KEY` → interactive prompt. Stdin is auto-detected when not a TTY.
|
|
56
56
|
|
|
@@ -69,10 +69,10 @@ mb auth status --json
|
|
|
69
69
|
mb auth status --profile staging
|
|
70
70
|
```
|
|
71
71
|
|
|
72
|
-
| Flag
|
|
73
|
-
|
|
|
74
|
-
| `--profile <name
|
|
75
|
-
| `--json`
|
|
72
|
+
| Flag | Description |
|
|
73
|
+
| ------------------------ | ---------------------------------------- |
|
|
74
|
+
| `--profile <name>`, `-p` | Profile to inspect (default: `default`). |
|
|
75
|
+
| `--json` | Emit JSON. Auto-enabled on non-TTY. |
|
|
76
76
|
|
|
77
77
|
### `mb auth list`
|
|
78
78
|
|
|
@@ -98,10 +98,10 @@ mb auth logout --yes
|
|
|
98
98
|
mb auth logout --profile staging --yes
|
|
99
99
|
```
|
|
100
100
|
|
|
101
|
-
| Flag
|
|
102
|
-
|
|
|
103
|
-
| `--profile <name
|
|
104
|
-
| `--yes`
|
|
101
|
+
| Flag | Description |
|
|
102
|
+
| ------------------------ | --------------------------------------------------------------------------------------------------------------------------------- |
|
|
103
|
+
| `--profile <name>`, `-p` | Profile to clear (default: `default`). |
|
|
104
|
+
| `--yes` | Skip the interactive confirmation prompt. In non-TTY contexts the prompt is skipped automatically (kubectl/gh/docker convention). |
|
|
105
105
|
|
|
106
106
|
## Transforms
|
|
107
107
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
2
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import {
|
|
4
|
-
import { parseId } from "./parse-id-
|
|
5
|
-
import { REMOTE_SYNC_PATHS } from "./poll-task-
|
|
1
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-CTVL5CdB.mjs";
|
|
2
|
+
import { defineMetabaseCommand } from "./runtime-B40L_bj8.mjs";
|
|
3
|
+
import { renderSummary } from "./render-0_GsapXa.mjs";
|
|
4
|
+
import { parseId } from "./parse-id-D1LTTt9L.mjs";
|
|
5
|
+
import { REMOTE_SYNC_PATHS } from "./poll-task-D8mG49IN.mjs";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
|
|
8
8
|
//#region src/commands/git-sync/add-collection.ts
|
|
@@ -51,7 +51,9 @@ var add_collection_default = defineMetabaseCommand({
|
|
|
51
51
|
const collectionId = parseId(args.id, "id");
|
|
52
52
|
const client = await getClient();
|
|
53
53
|
const result = await setCollectionRemoteSynced(client, collectionId, true);
|
|
54
|
-
|
|
54
|
+
const taskPart = result.task_id !== void 0 ? ` (task #${result.task_id})` : "";
|
|
55
|
+
const message = result.success ? `Collection ${collectionId} is now git-synced${taskPart}.` : `Could not update git-sync setting for collection ${collectionId}.`;
|
|
56
|
+
renderSummary(result, syncSettingsUpdateView, message, ctx);
|
|
55
57
|
}
|
|
56
58
|
});
|
|
57
59
|
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
+
import "./error-CTVL5CdB.mjs";
|
|
3
|
+
import "./runtime-B40L_bj8.mjs";
|
|
4
|
+
import "./capabilities-7e9MgquN.mjs";
|
|
5
|
+
import "./render-0_GsapXa.mjs";
|
|
6
|
+
import "./parse-id-D1LTTt9L.mjs";
|
|
7
|
+
import "./poll-task-D8mG49IN.mjs";
|
|
8
|
+
import "./poll-DxpnK1wW.mjs";
|
|
9
|
+
import { SyncSettingsUpdateResult, add_collection_default, setCollectionRemoteSynced, syncSettingsUpdateView } from "./add-collection-CwrbKmC1.mjs";
|
|
10
|
+
|
|
11
|
+
export { add_collection_default as default };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-CTVL5CdB.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-B40L_bj8.mjs";
|
|
4
4
|
import "./capabilities-7e9MgquN.mjs";
|
|
5
|
-
import {
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
7
|
-
import { revisionMessageFlag } from "./revision-message-flag-
|
|
8
|
-
import { Segment, segmentView } from "./segment-
|
|
5
|
+
import { renderSummary } from "./render-0_GsapXa.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-D1LTTt9L.mjs";
|
|
7
|
+
import { revisionMessageFlag } from "./revision-message-flag-DY29-cgz.mjs";
|
|
8
|
+
import { Segment, segmentView } from "./segment-DhBmcr_E.mjs";
|
|
9
9
|
|
|
10
10
|
//#region src/commands/segment/archive.ts
|
|
11
11
|
var archive_default = defineMetabaseCommand({
|
|
@@ -37,7 +37,7 @@ var archive_default = defineMetabaseCommand({
|
|
|
37
37
|
revision_message: args.revisionMessage
|
|
38
38
|
}
|
|
39
39
|
});
|
|
40
|
-
|
|
40
|
+
renderSummary(updated, segmentView, `Archived segment ${updated.id} "${updated.name}".`, ctx);
|
|
41
41
|
}
|
|
42
42
|
});
|
|
43
43
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-CTVL5CdB.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-B40L_bj8.mjs";
|
|
4
4
|
import "./capabilities-7e9MgquN.mjs";
|
|
5
|
-
import {
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
7
|
-
import { Snippet, snippetView } from "./snippet-
|
|
5
|
+
import { renderSummary } from "./render-0_GsapXa.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-D1LTTt9L.mjs";
|
|
7
|
+
import { Snippet, snippetView } from "./snippet-bi_0XbNT.mjs";
|
|
8
8
|
|
|
9
9
|
//#region src/commands/snippet/archive.ts
|
|
10
10
|
var archive_default = defineMetabaseCommand({
|
|
@@ -32,7 +32,7 @@ var archive_default = defineMetabaseCommand({
|
|
|
32
32
|
method: "PUT",
|
|
33
33
|
body: { archived: true }
|
|
34
34
|
});
|
|
35
|
-
|
|
35
|
+
renderSummary(updated, snippetView, `Archived snippet ${updated.id} "${updated.name}".`, ctx);
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
38
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-CTVL5CdB.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-B40L_bj8.mjs";
|
|
4
4
|
import "./capabilities-7e9MgquN.mjs";
|
|
5
|
-
import {
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
7
|
-
import { Measure, measureView } from "./measure-
|
|
8
|
-
import { revisionMessageFlag } from "./revision-message-flag-
|
|
5
|
+
import { renderSummary } from "./render-0_GsapXa.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-D1LTTt9L.mjs";
|
|
7
|
+
import { Measure, measureView } from "./measure-Bt3InQsA.mjs";
|
|
8
|
+
import { revisionMessageFlag } from "./revision-message-flag-DY29-cgz.mjs";
|
|
9
9
|
|
|
10
10
|
//#region src/commands/measure/archive.ts
|
|
11
11
|
var archive_default = defineMetabaseCommand({
|
|
@@ -37,7 +37,7 @@ var archive_default = defineMetabaseCommand({
|
|
|
37
37
|
revision_message: args.revisionMessage
|
|
38
38
|
}
|
|
39
39
|
});
|
|
40
|
-
|
|
40
|
+
renderSummary(updated, measureView, `Archived measure ${updated.id} "${updated.name}".`, ctx);
|
|
41
41
|
}
|
|
42
42
|
});
|
|
43
43
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-CTVL5CdB.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-B40L_bj8.mjs";
|
|
4
4
|
import "./capabilities-7e9MgquN.mjs";
|
|
5
|
-
import {
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
7
|
-
import { Collection, collectionView } from "./collection-
|
|
5
|
+
import { renderSummary } from "./render-0_GsapXa.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-D1LTTt9L.mjs";
|
|
7
|
+
import { Collection, collectionView } from "./collection-Bcy8cWYH.mjs";
|
|
8
8
|
|
|
9
9
|
//#region src/commands/collection/archive.ts
|
|
10
10
|
var archive_default = defineMetabaseCommand({
|
|
@@ -32,7 +32,7 @@ var archive_default = defineMetabaseCommand({
|
|
|
32
32
|
method: "PUT",
|
|
33
33
|
body: { archived: true }
|
|
34
34
|
});
|
|
35
|
-
|
|
35
|
+
renderSummary(updated, collectionView, `Archived collection ${updated.id} "${updated.name}".`, ctx);
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
38
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-CTVL5CdB.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-B40L_bj8.mjs";
|
|
4
4
|
import "./capabilities-7e9MgquN.mjs";
|
|
5
|
-
import {
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
7
|
-
import { Dashboard, dashboardView } from "./dashboard-
|
|
5
|
+
import { renderSummary } from "./render-0_GsapXa.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-D1LTTt9L.mjs";
|
|
7
|
+
import { Dashboard, dashboardView } from "./dashboard-B4bn3z6t.mjs";
|
|
8
8
|
|
|
9
9
|
//#region src/commands/dashboard/archive.ts
|
|
10
10
|
var archive_default = defineMetabaseCommand({
|
|
@@ -32,7 +32,7 @@ var archive_default = defineMetabaseCommand({
|
|
|
32
32
|
method: "PUT",
|
|
33
33
|
body: { archived: true }
|
|
34
34
|
});
|
|
35
|
-
|
|
35
|
+
renderSummary(updated, dashboardView, `Archived dashboard ${updated.id} "${updated.name}".`, ctx);
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
38
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-CTVL5CdB.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-B40L_bj8.mjs";
|
|
4
4
|
import "./capabilities-7e9MgquN.mjs";
|
|
5
|
-
import {
|
|
6
|
-
import "./field-
|
|
7
|
-
import { Card, cardView } from "./card-
|
|
8
|
-
import { parseId } from "./parse-id-
|
|
5
|
+
import { renderSummary } from "./render-0_GsapXa.mjs";
|
|
6
|
+
import "./field-E0IBy4Uw.mjs";
|
|
7
|
+
import { Card, cardView } from "./card-ezYiriML.mjs";
|
|
8
|
+
import { parseId } from "./parse-id-D1LTTt9L.mjs";
|
|
9
9
|
|
|
10
10
|
//#region src/commands/card/archive.ts
|
|
11
11
|
var archive_default = defineMetabaseCommand({
|
|
@@ -33,7 +33,7 @@ var archive_default = defineMetabaseCommand({
|
|
|
33
33
|
method: "PUT",
|
|
34
34
|
body: { archived: true }
|
|
35
35
|
});
|
|
36
|
-
|
|
36
|
+
renderSummary(updated, cardView, `Archived card ${updated.id} "${updated.name}".`, ctx);
|
|
37
37
|
}
|
|
38
38
|
});
|
|
39
39
|
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { defineCommand } from "citty";
|
|
2
|
+
|
|
3
|
+
//#region src/commands/auth/index.ts
|
|
4
|
+
var auth_default = defineCommand({
|
|
5
|
+
meta: {
|
|
6
|
+
name: "auth",
|
|
7
|
+
description: "Authenticate against a Metabase instance"
|
|
8
|
+
},
|
|
9
|
+
default: "login",
|
|
10
|
+
subCommands: {
|
|
11
|
+
login: () => import("./login-BJGhZLgZ.mjs").then((m) => m.default),
|
|
12
|
+
status: () => import("./status-B1dc3bbQ.mjs").then((m) => m.default),
|
|
13
|
+
list: () => import("./list-BRXGDSMo.mjs").then((m) => m.default),
|
|
14
|
+
logout: () => import("./logout-BAGLqtnV.mjs").then((m) => m.default)
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
export { auth_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ConfigError } from "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { parseJson } from "./runtime-
|
|
2
|
+
import { parseJson } from "./runtime-B40L_bj8.mjs";
|
|
3
3
|
import { DEFAULT_FLAG_NAME, readInput } from "./input-cMSEqISy.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/runtime/body.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-CTVL5CdB.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-B40L_bj8.mjs";
|
|
4
4
|
import "./capabilities-7e9MgquN.mjs";
|
|
5
|
-
import { renderList } from "./render-
|
|
6
|
-
import { REMOTE_SYNC_PATHS } from "./poll-task-
|
|
7
|
-
import "./poll-
|
|
5
|
+
import { renderList } from "./render-0_GsapXa.mjs";
|
|
6
|
+
import { REMOTE_SYNC_PATHS } from "./poll-task-D8mG49IN.mjs";
|
|
7
|
+
import "./poll-DxpnK1wW.mjs";
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
|
|
10
10
|
//#region src/commands/git-sync/branches.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-CTVL5CdB.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-B40L_bj8.mjs";
|
|
4
4
|
import "./capabilities-7e9MgquN.mjs";
|
|
5
|
-
import {
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
5
|
+
import { renderSummary } from "./render-0_GsapXa.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-D1LTTt9L.mjs";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
|
|
9
9
|
//#region src/commands/transform/cancel.ts
|
|
@@ -46,10 +46,10 @@ var cancel_default = defineMetabaseCommand({
|
|
|
46
46
|
method: "POST",
|
|
47
47
|
expectContentType: "binary"
|
|
48
48
|
});
|
|
49
|
-
|
|
49
|
+
renderSummary({
|
|
50
50
|
canceled: true,
|
|
51
51
|
id
|
|
52
|
-
}, transformCancelView, ctx);
|
|
52
|
+
}, transformCancelView, `Canceled the current run for transform ${id}.`, ctx);
|
|
53
53
|
}
|
|
54
54
|
});
|
|
55
55
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-CTVL5CdB.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-B40L_bj8.mjs";
|
|
4
4
|
import "./capabilities-7e9MgquN.mjs";
|
|
5
|
-
import {
|
|
6
|
-
import { REMOTE_SYNC_PATHS, SyncTask, syncTaskView } from "./poll-task-
|
|
7
|
-
import "./poll-
|
|
5
|
+
import { renderSummary } from "./render-0_GsapXa.mjs";
|
|
6
|
+
import { REMOTE_SYNC_PATHS, SyncTask, syncTaskView } from "./poll-task-D8mG49IN.mjs";
|
|
7
|
+
import "./poll-DxpnK1wW.mjs";
|
|
8
8
|
|
|
9
9
|
//#region src/commands/git-sync/cancel-task.ts
|
|
10
10
|
var cancel_task_default = defineMetabaseCommand({
|
|
@@ -26,7 +26,7 @@ var cancel_task_default = defineMetabaseCommand({
|
|
|
26
26
|
async run({ ctx, getClient }) {
|
|
27
27
|
const client = await getClient();
|
|
28
28
|
const task = await client.requestParsed(SyncTask, REMOTE_SYNC_PATHS.cancelTask, { method: "POST" });
|
|
29
|
-
|
|
29
|
+
renderSummary(task, syncTaskView, `Requested cancellation of ${task.sync_task_type} task #${task.id}.`, ctx);
|
|
30
30
|
}
|
|
31
31
|
});
|
|
32
32
|
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { defineCommand } from "citty";
|
|
2
|
+
|
|
3
|
+
//#region src/commands/card/index.ts
|
|
4
|
+
var card_default = defineCommand({
|
|
5
|
+
meta: {
|
|
6
|
+
name: "card",
|
|
7
|
+
description: "Manage Metabase cards (questions, models, metrics)"
|
|
8
|
+
},
|
|
9
|
+
subCommands: {
|
|
10
|
+
list: () => import("./list-Fjjtpghb.mjs").then((mod) => mod.default),
|
|
11
|
+
get: () => import("./get-CyG_P55z.mjs").then((mod) => mod.default),
|
|
12
|
+
query: () => import("./query-zWFRDH3T.mjs").then((mod) => mod.default),
|
|
13
|
+
create: () => import("./create-7JOWFxqu.mjs").then((mod) => mod.default),
|
|
14
|
+
update: () => import("./update-BsgHRoZ8.mjs").then((mod) => mod.default),
|
|
15
|
+
archive: () => import("./archive-ZnnJc2iT.mjs").then((mod) => mod.default)
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
//#endregion
|
|
20
|
+
export { card_default as default };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-CTVL5CdB.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-B40L_bj8.mjs";
|
|
4
4
|
import "./capabilities-7e9MgquN.mjs";
|
|
5
|
-
import { renderList } from "./render-
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
7
|
-
import { DashboardDetail, DashcardCompact, dashcardView } from "./dashboard-
|
|
5
|
+
import { renderList } from "./render-0_GsapXa.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-D1LTTt9L.mjs";
|
|
7
|
+
import { DashboardDetail, DashcardCompact, dashcardView } from "./dashboard-B4bn3z6t.mjs";
|
|
8
8
|
|
|
9
9
|
//#region src/commands/dashboard/cards.ts
|
|
10
10
|
const DashcardListEnvelope = listEnvelopeSchema(DashcardCompact);
|
package/dist/cli.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { ConfigError, flagConsumesValue, getMetabaseAugment, normalizeFlag, resolveCitty, toAliasArray } from "./command-augment-BH9qgQ5u.mjs";
|
|
3
|
-
import { connectionFlags, outputFlags, package_default, profileFlag, reportError } from "./error-
|
|
3
|
+
import { connectionFlags, outputFlags, package_default, profileFlag, reportError } from "./error-CTVL5CdB.mjs";
|
|
4
4
|
import { defineCommand, renderUsage, runMain } from "citty";
|
|
5
5
|
|
|
6
6
|
//#region src/commands/global-flags.ts
|
|
@@ -58,29 +58,29 @@ const main = defineCommand({
|
|
|
58
58
|
description: package_default.description
|
|
59
59
|
},
|
|
60
60
|
subCommands: {
|
|
61
|
-
auth: () => import("./auth-
|
|
62
|
-
db: () => import("./db-
|
|
63
|
-
table: () => import("./table-
|
|
64
|
-
field: () => import("./field-
|
|
65
|
-
card: () => import("./card-
|
|
66
|
-
dashboard: () => import("./dashboard-
|
|
67
|
-
collection: () => import("./collection-
|
|
68
|
-
transform: () => import("./transform-
|
|
69
|
-
"transform-job": () => import("./transform-job-
|
|
70
|
-
setting: () => import("./setting-
|
|
71
|
-
search: () => import("./search-
|
|
72
|
-
"git-sync": () => import("./git-sync-
|
|
73
|
-
workspace: () => import("./workspace-
|
|
74
|
-
setup: () => import("./setup-
|
|
75
|
-
snippet: () => import("./snippet-
|
|
76
|
-
segment: () => import("./segment-
|
|
77
|
-
measure: () => import("./measure-
|
|
78
|
-
eid: () => import("./eid-
|
|
79
|
-
query: () => import("./query-
|
|
80
|
-
uuid: () => import("./uuid-
|
|
81
|
-
upgrade: () => import("./upgrade-
|
|
82
|
-
skills: () => import("./skills-
|
|
83
|
-
__manifest: () => import("./manifest-
|
|
61
|
+
auth: () => import("./auth-B9B4pUaH.mjs").then((mod) => mod.default),
|
|
62
|
+
db: () => import("./db-CBCj8sBg.mjs").then((mod) => mod.default),
|
|
63
|
+
table: () => import("./table-B0fRQv91.mjs").then((mod) => mod.default),
|
|
64
|
+
field: () => import("./field-DJmQ2pul.mjs").then((mod) => mod.default),
|
|
65
|
+
card: () => import("./card-D54unw6r.mjs").then((mod) => mod.default),
|
|
66
|
+
dashboard: () => import("./dashboard-lw6IFfOs.mjs").then((mod) => mod.default),
|
|
67
|
+
collection: () => import("./collection-B5kIKRTL.mjs").then((mod) => mod.default),
|
|
68
|
+
transform: () => import("./transform-K_kp6Rdm.mjs").then((mod) => mod.default),
|
|
69
|
+
"transform-job": () => import("./transform-job-CuNN8zgv.mjs").then((mod) => mod.default),
|
|
70
|
+
setting: () => import("./setting-mKzZJpQY.mjs").then((mod) => mod.default),
|
|
71
|
+
search: () => import("./search-h78uOYec.mjs").then((mod) => mod.default),
|
|
72
|
+
"git-sync": () => import("./git-sync-rmjYOGFK.mjs").then((mod) => mod.default),
|
|
73
|
+
workspace: () => import("./workspace-Bt8n3ojY.mjs").then((mod) => mod.default),
|
|
74
|
+
setup: () => import("./setup-WTIT2WbM.mjs").then((mod) => mod.default),
|
|
75
|
+
snippet: () => import("./snippet-B84H3tfp.mjs").then((mod) => mod.default),
|
|
76
|
+
segment: () => import("./segment-CoElN2b-.mjs").then((mod) => mod.default),
|
|
77
|
+
measure: () => import("./measure-BfgxqewH.mjs").then((mod) => mod.default),
|
|
78
|
+
eid: () => import("./eid-CwQ_smOD.mjs").then((mod) => mod.default),
|
|
79
|
+
query: () => import("./query-OIuumiXN.mjs").then((mod) => mod.default),
|
|
80
|
+
uuid: () => import("./uuid-BWCaWG4O.mjs").then((mod) => mod.default),
|
|
81
|
+
upgrade: () => import("./upgrade-UqdvTikR.mjs").then((mod) => mod.default),
|
|
82
|
+
skills: () => import("./skills-tMYd5d9v.mjs").then((mod) => mod.default),
|
|
83
|
+
__manifest: () => import("./manifest-BNh0Lw6p.mjs").then((mod) => mod.createManifestCommand(main))
|
|
84
84
|
}
|
|
85
85
|
});
|
|
86
86
|
var main_default = main;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { defineCommand } from "citty";
|
|
2
|
+
|
|
3
|
+
//#region src/commands/collection/index.ts
|
|
4
|
+
var collection_default = defineCommand({
|
|
5
|
+
meta: {
|
|
6
|
+
name: "collection",
|
|
7
|
+
description: "Manage Metabase collections"
|
|
8
|
+
},
|
|
9
|
+
subCommands: {
|
|
10
|
+
list: () => import("./list-BI1PfPjn.mjs").then((mod) => mod.default),
|
|
11
|
+
get: () => import("./get-DauAF3sm.mjs").then((mod) => mod.default),
|
|
12
|
+
items: () => import("./items-BSpapmCU.mjs").then((mod) => mod.default),
|
|
13
|
+
tree: () => import("./tree-DsnIPFyE.mjs").then((mod) => mod.default),
|
|
14
|
+
create: () => import("./create-6XE7GYxk.mjs").then((mod) => mod.default),
|
|
15
|
+
archive: () => import("./archive-BzvqQd34.mjs").then((mod) => mod.default)
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
//#endregion
|
|
20
|
+
export { collection_default as default };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-CTVL5CdB.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-B40L_bj8.mjs";
|
|
4
4
|
import "./capabilities-7e9MgquN.mjs";
|
|
5
|
-
import {
|
|
5
|
+
import { renderSummary } from "./render-0_GsapXa.mjs";
|
|
6
6
|
import "./input-cMSEqISy.mjs";
|
|
7
|
-
import { readBody } from "./body-
|
|
7
|
+
import { readBody } from "./body-DDYKoyMt.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-D7q87Btw.mjs";
|
|
9
9
|
import "./validate-dPEOnOf8.mjs";
|
|
10
|
-
import { TRANSFORM_SOURCE_QUERY_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-
|
|
11
|
-
import { Transform, TransformCreateInput, transformView } from "./transform-
|
|
10
|
+
import { TRANSFORM_SOURCE_QUERY_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-CYvOP8Ld.mjs";
|
|
11
|
+
import { Transform, TransformCreateInput, transformView } from "./transform-BKahefz_.mjs";
|
|
12
12
|
|
|
13
13
|
//#region src/commands/transform/create.ts
|
|
14
14
|
var create_default = defineMetabaseCommand({
|
|
@@ -42,7 +42,7 @@ var create_default = defineMetabaseCommand({
|
|
|
42
42
|
method: "POST",
|
|
43
43
|
body
|
|
44
44
|
});
|
|
45
|
-
|
|
45
|
+
renderSummary(created, transformView, `Created transform ${created.id} "${created.name}".`, ctx);
|
|
46
46
|
}
|
|
47
47
|
});
|
|
48
48
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-CTVL5CdB.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-B40L_bj8.mjs";
|
|
4
4
|
import "./capabilities-7e9MgquN.mjs";
|
|
5
|
-
import {
|
|
5
|
+
import { renderSummary } from "./render-0_GsapXa.mjs";
|
|
6
6
|
import "./input-cMSEqISy.mjs";
|
|
7
|
-
import { readBody } from "./body-
|
|
7
|
+
import { readBody } from "./body-DDYKoyMt.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-D7q87Btw.mjs";
|
|
9
|
-
import { Collection, CollectionCreateInput, collectionView } from "./collection-
|
|
9
|
+
import { Collection, CollectionCreateInput, collectionView } from "./collection-Bcy8cWYH.mjs";
|
|
10
10
|
|
|
11
11
|
//#region src/commands/collection/create.ts
|
|
12
12
|
var create_default = defineMetabaseCommand({
|
|
@@ -37,7 +37,7 @@ var create_default = defineMetabaseCommand({
|
|
|
37
37
|
method: "POST",
|
|
38
38
|
body
|
|
39
39
|
});
|
|
40
|
-
|
|
40
|
+
renderSummary(created, collectionView, `Created collection ${created.id} "${created.name}".`, ctx);
|
|
41
41
|
}
|
|
42
42
|
});
|
|
43
43
|
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-CTVL5CdB.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-B40L_bj8.mjs";
|
|
4
4
|
import "./capabilities-7e9MgquN.mjs";
|
|
5
|
-
import {
|
|
5
|
+
import { renderSummary } from "./render-0_GsapXa.mjs";
|
|
6
6
|
import "./input-cMSEqISy.mjs";
|
|
7
|
-
import "./field-
|
|
8
|
-
import { Card, CardCreateInput, cardView } from "./card-
|
|
9
|
-
import { readBody } from "./body-
|
|
7
|
+
import "./field-E0IBy4Uw.mjs";
|
|
8
|
+
import { Card, CardCreateInput, cardView } from "./card-ezYiriML.mjs";
|
|
9
|
+
import { readBody } from "./body-DDYKoyMt.mjs";
|
|
10
10
|
import { bodyInputFlags } from "./body-flags-D7q87Btw.mjs";
|
|
11
11
|
import "./validate-dPEOnOf8.mjs";
|
|
12
|
-
import { CARD_DATASET_QUERY_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-
|
|
12
|
+
import { CARD_DATASET_QUERY_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-CYvOP8Ld.mjs";
|
|
13
13
|
|
|
14
14
|
//#region src/commands/card/create.ts
|
|
15
15
|
var create_default = defineMetabaseCommand({
|
|
@@ -44,7 +44,7 @@ var create_default = defineMetabaseCommand({
|
|
|
44
44
|
method: "POST",
|
|
45
45
|
body
|
|
46
46
|
});
|
|
47
|
-
|
|
47
|
+
renderSummary(created, cardView, `Created card ${created.id} "${created.name}".`, ctx);
|
|
48
48
|
}
|
|
49
49
|
});
|
|
50
50
|
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-CTVL5CdB.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-B40L_bj8.mjs";
|
|
4
4
|
import "./capabilities-7e9MgquN.mjs";
|
|
5
|
-
import {
|
|
5
|
+
import { renderSummary } from "./render-0_GsapXa.mjs";
|
|
6
6
|
import "./input-cMSEqISy.mjs";
|
|
7
|
-
import "./field-
|
|
8
|
-
import "./card-
|
|
9
|
-
import { readBody } from "./body-
|
|
7
|
+
import "./field-E0IBy4Uw.mjs";
|
|
8
|
+
import "./card-ezYiriML.mjs";
|
|
9
|
+
import { readBody } from "./body-DDYKoyMt.mjs";
|
|
10
10
|
import { bodyInputFlags } from "./body-flags-D7q87Btw.mjs";
|
|
11
11
|
import "./validate-dPEOnOf8.mjs";
|
|
12
|
-
import { Dashboard, DashboardCreateInput, DashboardDetail, dashboardView } from "./dashboard-
|
|
13
|
-
import { preflightDashcardCardReferences, wrapChainedDashboardWriteError } from "./preflight-
|
|
12
|
+
import { Dashboard, DashboardCreateInput, DashboardDetail, dashboardView } from "./dashboard-B4bn3z6t.mjs";
|
|
13
|
+
import { preflightDashcardCardReferences, wrapChainedDashboardWriteError } from "./preflight-Df_FqJ6o.mjs";
|
|
14
14
|
|
|
15
15
|
//#region src/commands/dashboard/create.ts
|
|
16
16
|
var create_default = defineMetabaseCommand({
|
|
@@ -46,7 +46,7 @@ var create_default = defineMetabaseCommand({
|
|
|
46
46
|
body: createOnly
|
|
47
47
|
});
|
|
48
48
|
if (dashcards === void 0 && tabs === void 0) {
|
|
49
|
-
|
|
49
|
+
renderSummary(created, dashboardView, `Created dashboard ${created.id} "${created.name}".`, ctx);
|
|
50
50
|
return;
|
|
51
51
|
}
|
|
52
52
|
try {
|
|
@@ -57,7 +57,7 @@ var create_default = defineMetabaseCommand({
|
|
|
57
57
|
tabs
|
|
58
58
|
}
|
|
59
59
|
});
|
|
60
|
-
|
|
60
|
+
renderSummary(updated, dashboardView, `Created dashboard ${updated.id} "${updated.name}".`, ctx);
|
|
61
61
|
} catch (error) {
|
|
62
62
|
throw wrapChainedDashboardWriteError(error, created.id);
|
|
63
63
|
}
|