@metabase/cli 0.1.6 → 0.1.7
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-C9BdVBs2.mjs +11 -0
- package/dist/{add-collection-BU8r3r2M.mjs → add-collection-DQjTlDNF.mjs} +8 -6
- package/dist/{archive-CDA0KxL8.mjs → archive-B3qiL-kK.mjs} +6 -6
- package/dist/{archive-DMPS8Kih.mjs → archive-BXzghEQX.mjs} +7 -7
- package/dist/{archive-C1enZgKV.mjs → archive-CBGKzEAl.mjs} +6 -6
- package/dist/{archive-CRhiBpPJ.mjs → archive-CuVk8iwN.mjs} +7 -7
- package/dist/{archive-lWgqiFAt.mjs → archive-DTN9tLGT.mjs} +6 -6
- package/dist/{archive-BNinrUak.mjs → archive-De8jzzq7.mjs} +7 -7
- package/dist/auth-D9eAyVoG.mjs +19 -0
- package/dist/{body-DjdFxjpg.mjs → body-tcURGnGh.mjs} +1 -1
- package/dist/{branches-B1WRfG7-.mjs → branches-CIGkjXIk.mjs} +5 -5
- package/dist/{cancel-Dl_Ho056.mjs → cancel-pPsvgJ0Z.mjs} +6 -6
- package/dist/{cancel-task-CdigdCaO.mjs → cancel-task-BLGE4UlL.mjs} +6 -6
- package/dist/card-DDDrWcDU.mjs +20 -0
- package/dist/{card-DlCAaAPq.mjs → card-ezYiriML.mjs} +1 -1
- package/dist/{cards-BGiJS675.mjs → cards-Dq3nx_9n.mjs} +5 -5
- package/dist/cli.mjs +24 -24
- package/dist/collection-DkEvCDar.mjs +20 -0
- package/dist/{create-dhxPxfF3.mjs → create-9DBTkbMq.mjs} +10 -10
- package/dist/{create-CHF313Qg.mjs → create-B1dyuL9Y.mjs} +8 -6
- package/dist/{create-BNiva__H.mjs → create-BIphz0kO.mjs} +8 -8
- package/dist/{create-BYlIju0b.mjs → create-BcgoukG4.mjs} +7 -7
- package/dist/{create-CwGtmwqm.mjs → create-BdPoSk_7.mjs} +7 -7
- package/dist/{create-Be_0Vier.mjs → create-BrUqxreg.mjs} +6 -6
- package/dist/{create-DGth_uOp.mjs → create-DHscDhRd.mjs} +7 -7
- package/dist/{create-CzzrbL0u.mjs → create-aPaUEGdr.mjs} +6 -6
- package/dist/{create-branch-DKZkoQ64.mjs → create-branch-DGoc9CUU.mjs} +6 -6
- package/dist/{create-BTcpaop_.mjs → create-w3mQg9n4.mjs} +6 -6
- package/dist/{credentials-dzeq7ckm.mjs → credentials-qryRLUed.mjs} +9 -9
- package/dist/{current-task-CCRzm0_7.mjs → current-task-DZM28rnr.mjs} +7 -7
- package/dist/dashboard-BLf1RZlk.mjs +21 -0
- package/dist/{database-lH-B3G1I.mjs → database-BXiue1in.mjs} +1 -1
- package/dist/{database-CIXwHKjK.mjs → database-Ce1gOJF7.mjs} +3 -3
- package/dist/db-CWTFe_FZ.mjs +22 -0
- package/dist/{delete-ZjnV35OJ.mjs → delete-BPaFdHZP.mjs} +7 -5
- package/dist/{delete-Dimc-2y8.mjs → delete-BrJOotpW.mjs} +7 -5
- package/dist/{delete-CM3jnAeQ.mjs → delete-FFj1xQWO.mjs} +12 -8
- package/dist/{delete-runtime-B6RQo_pw.mjs → delete-runtime-uuYbd4k2.mjs} +5 -5
- package/dist/{delete-table-agZJpivt.mjs → delete-table-CNupWUO0.mjs} +7 -5
- package/dist/{deprovision-CwxcIT3k.mjs → deprovision-BNr9fPDY.mjs} +11 -9
- package/dist/{dirty-D4d0yHqj.mjs → dirty-BCkNOY8c.mjs} +5 -5
- package/dist/{docker-Oq80q3tu.mjs → docker-Ds252Mwc.mjs} +3 -3
- package/dist/{eid-BXzaQh0o.mjs → eid-CLY5X0Uw.mjs} +10 -5
- package/dist/{error-C9S6PN3-.mjs → error-ZsFeevV2.mjs} +3 -2
- package/dist/{export-DTygoXBP.mjs → export-CgHgWW3I.mjs} +10 -9
- package/dist/{field-yomXlkvl.mjs → field-E0IBy4Uw.mjs} +12 -3
- package/dist/field-LL6W_c-c.mjs +18 -0
- package/dist/{fields-CoQi99gv.mjs → fields-RkRWU-u9.mjs} +6 -6
- package/dist/{get-C3HdQ91a.mjs → get-42tJ7BNp.mjs} +5 -5
- package/dist/{get-D3SbEQSE.mjs → get-B8l4t4Pz.mjs} +6 -6
- package/dist/{get-Bzys7vgp.mjs → get-B9kwSs6U.mjs} +5 -5
- package/dist/{get-DFxZXaKz.mjs → get-Bo4Cpd_c.mjs} +5 -5
- package/dist/{get-DSWFjy7O.mjs → get-C9O_aEGo.mjs} +5 -5
- package/dist/{get-lb7q3JYs.mjs → get-CRvbChoX.mjs} +5 -5
- package/dist/{get-C2p383Qc.mjs → get-CTDqioaj.mjs} +5 -5
- package/dist/{get-CzuzeKSe.mjs → get-CiZrZJLt.mjs} +7 -7
- package/dist/{get-Hc93A0Yz.mjs → get-CvmqPN30.mjs} +5 -5
- package/dist/{get-C_w1kvN3.mjs → get-DmzgSgrl.mjs} +6 -6
- package/dist/{get-Ddr0XLh7.mjs → get-DsqGHNHN.mjs} +5 -5
- package/dist/{get-run-B7sKdaDU.mjs → get-run-CBwcRc8E.mjs} +5 -5
- package/dist/{get-CP3Z3NiH.mjs → get-sMpa-X4E.mjs} +6 -6
- package/dist/{get-DQTZG_NP.mjs → get-y17zJMnU.mjs} +5 -5
- package/dist/git-sync-CrWTo3YX.mjs +28 -0
- package/dist/{has-remote-changes-BY10-nnE.mjs → has-remote-changes-CfRidwXT.mjs} +7 -6
- package/dist/{import-CiMz4Wz-.mjs → import-BZV0Z2KR.mjs} +11 -9
- package/dist/is-dirty-CPzOnnH6.mjs +10 -0
- package/dist/{is-dirty-BZOaryxT.mjs → is-dirty-hKcB4OH9.mjs} +5 -5
- package/dist/{items-BWfvkY-J.mjs → items-C94eW2Yd.mjs} +7 -7
- package/dist/{license-Dxarh-gG.mjs → license-B37055sr.mjs} +3 -3
- package/dist/{list-Clz5igWg.mjs → list-B0V7FeL2.mjs} +5 -5
- package/dist/{list-SOG0whQ-.mjs → list-BFlzLGlw.mjs} +4 -4
- package/dist/{list-2j7GsXsl.mjs → list-BJXaGk-z.mjs} +4 -4
- package/dist/{list-DZ8fNUoQ.mjs → list-BS_Bxejg.mjs} +6 -6
- package/dist/{list-d58BprgJ.mjs → list-BmHoYJr7.mjs} +4 -4
- package/dist/{list-D4sFiqX8.mjs → list-C-oZe1_p.mjs} +5 -5
- package/dist/{list-C3hfovHv.mjs → list-CF1pMN4S.mjs} +4 -4
- package/dist/{list-Brgh-Z2v.mjs → list-CU6sOfI-.mjs} +4 -4
- package/dist/{list-DXH7TlkU.mjs → list-CqN4gvCk.mjs} +4 -4
- package/dist/{list-zSO0DMw-.mjs → list-DUXdt0XI.mjs} +4 -4
- package/dist/{list-BI4zr8LW.mjs → list-DfDZr55C.mjs} +5 -5
- package/dist/{list--OYdUTtu.mjs → list-DrINpVLM.mjs} +4 -4
- package/dist/{list-sD5N3fGk.mjs → list-DuSoEk_J.mjs} +6 -6
- package/dist/{list-CL7eCOQE.mjs → list-HS15y_WN.mjs} +4 -4
- package/dist/{login-Bm2AnCez.mjs → login-enh9Yimb.mjs} +13 -9
- package/dist/{logout-BlyRJODO.mjs → logout-BWLPLDh8.mjs} +8 -7
- package/dist/{logs-CywPikkL.mjs → logs-Cu3QtvPs.mjs} +6 -6
- package/dist/{manifest-BBR46KFM.mjs → manifest-BNh0Lw6p.mjs} +1 -1
- package/dist/measure-CDlEPFtB.mjs +19 -0
- package/dist/{metadata-B8ZSF9LA.mjs → metadata-BTTEBWdS.mjs} +7 -7
- package/dist/{metadata-DqiI2q9q.mjs → metadata-D2TxboMm.mjs} +6 -6
- package/dist/{parse-id-lk_K-CEF.mjs → parse-id-0_tOPvfI.mjs} +1 -1
- package/dist/{parse-schemas-BqUdWUwq.mjs → parse-schemas-D-qVLl4z.mjs} +1 -1
- package/dist/{path-AEtZ3mBq.mjs → path-C8GrBdgT.mjs} +5 -5
- package/dist/{poll-DHKDpCiq.mjs → poll-4eoh5J0r.mjs} +1 -1
- package/dist/{poll-task-Cooi0lQV.mjs → poll-task-51WRdugU.mjs} +19 -3
- package/dist/{preflight-aXV5LyDs.mjs → preflight-BhsErYz3.mjs} +3 -3
- package/dist/{provision-UWcNDoDe.mjs → provision-Chf86BF0.mjs} +12 -11
- package/dist/{ps-CJU0EbrC.mjs → ps-CEYtsKBj.mjs} +4 -4
- package/dist/ps-CIDwaubS.mjs +11 -0
- package/dist/{query-BlsVNZpD.mjs → query-BBCAF-tG.mjs} +9 -8
- package/dist/{query-AaKzYnTY.mjs → query-DYVBnu9d.mjs} +9 -7
- package/dist/query-result-ABPLz6I4.mjs +19 -0
- package/dist/{remove-BFWun0e8.mjs → remove-2yInufA6.mjs} +8 -7
- package/dist/{remove-collection-CoCmrrQs.mjs → remove-collection-CBAHz0Dk.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-cfTSNQZo.mjs} +9 -9
- package/dist/{run-B4Wn43zm.mjs → run-qgdEJv-I.mjs} +14 -13
- package/dist/{runs-Bbaszr18.mjs → runs-BFIIH4GL.mjs} +6 -6
- package/dist/{runtime-Dmv5VtUK.mjs → runtime-Duawf5lE.mjs} +7 -11
- package/dist/{schema-tables-CaWinbuK.mjs → schema-tables-C2xM3dho.mjs} +6 -6
- package/dist/{schemas-DUgGpAyB.mjs → schemas-BP7xiktH.mjs} +4 -4
- package/dist/{search-BLrBXLUk.mjs → search-DYP3lOlq.mjs} +4 -4
- package/dist/segment-B6HnNGDs.mjs +19 -0
- package/dist/{set-DfGsta5O.mjs → set-DpRQqdo7.mjs} +8 -7
- package/dist/{set-B8cUbRLD.mjs → set-Tt-ioa4L.mjs} +4 -4
- package/dist/setting-DUa96KF3.mjs +17 -0
- package/dist/{setup-C9ikBRw_.mjs → setup-BPlllnim.mjs} +5 -5
- package/dist/{skills-CiN1OQ8W.mjs → skills-BkregMyb.mjs} +1 -1
- package/dist/{skills-CUHIcQS6.mjs → skills-SqbPo0BI.mjs} +3 -3
- package/dist/snippet-dJ68tGsl.mjs +19 -0
- package/dist/{start-3PX3ahjT.mjs → start-DJZA67WF.mjs} +12 -11
- package/dist/{stash-EIDcSvpF.mjs → stash-C89zNKxo.mjs} +11 -9
- package/dist/{status-95ElRAu9.mjs → status-B1EJ_jv0.mjs} +10 -7
- package/dist/{status-B0_MiZEf.mjs → status-BNvFPemM.mjs} +4 -4
- package/dist/{status-CEplmC44.mjs → status-D5wSqYV_.mjs} +4 -4
- package/dist/{stop-CQ0XGrN8.mjs → stop-5rCLmkCQ.mjs} +13 -9
- package/dist/{summary-C12LiEuJ.mjs → summary-Cihbx0Qs.mjs} +5 -5
- package/dist/{sync-schema-Ba8M3DiX.mjs → sync-schema-C3odu0ZH.mjs} +9 -9
- package/dist/table-J2f0STnB.mjs +19 -0
- package/dist/{table-C7a5V6Zn.mjs → table-qDD2kApF.mjs} +1 -1
- package/dist/transform-job-OW4SDhsQ.mjs +19 -0
- package/dist/transform-q1LYWQtW.mjs +24 -0
- package/dist/{tree-Des2ZG9d.mjs → tree-mvq9gM9w.mjs} +4 -4
- package/dist/{update-mYVnoYNV.mjs → update-BoIiuC70.mjs} +8 -8
- package/dist/{update-F6DmZncY.mjs → update-C0jP0AKT.mjs} +7 -7
- package/dist/{update-DzAN4SPj.mjs → update-CbBnHz42.mjs} +8 -8
- package/dist/{update-_QfgNa53.mjs → update-CtOo3LsX.mjs} +8 -8
- package/dist/{update-DBi5U8zb.mjs → update-DCrOQ1PW.mjs} +9 -9
- package/dist/{update-DHZubok3.mjs → update-DEZayTb4.mjs} +12 -11
- package/dist/{update-DSgceARZ.mjs → update-DwRxdflw.mjs} +7 -7
- package/dist/{update-CyIZdbIQ.mjs → update-Rr4usmCo.mjs} +7 -7
- package/dist/{update-njHe3j-s.mjs → update-VvKMnwsM.mjs} +8 -8
- package/dist/{update-dashcard-wpSjv4M7.mjs → update-dashcard-DFvIz8Qj.mjs} +7 -7
- package/dist/{update-Bx54nWEI.mjs → update-tRparnUs.mjs} +10 -10
- package/dist/{upgrade-iAuvhX-W.mjs → upgrade-D-Rl_fH9.mjs} +11 -25
- package/dist/{url-DWaT6WIZ.mjs → url-BB6jeNQj.mjs} +8 -8
- package/dist/{uuid-CMKnS8-z.mjs → uuid-BSVUk8u2.mjs} +3 -3
- package/dist/{validate-query-Cw6WE5Y8.mjs → validate-query-CYvOP8Ld.mjs} +1 -1
- package/dist/{values-BfSTAbzc.mjs → values-D1RJE4H6.mjs} +14 -6
- package/dist/{verify-D5YtTqqp.mjs → verify-A7BWfBPZ.mjs} +1 -1
- package/dist/{wait-8yV9_WIo.mjs → wait-B17I_pWy.mjs} +2 -2
- package/dist/{wait-Bv3Tsnv4.mjs → wait-DK5QDZ8n.mjs} +8 -8
- package/dist/{wait-flags-Dzq9BGQY.mjs → wait-flags-DlfbIXHw.mjs} +2 -2
- package/dist/{workspace-credentials-BXpABsNZ.mjs → workspace-credentials-8CBMQJFz.mjs} +1 -1
- package/dist/workspace-ri6r3zWo.mjs +25 -0
- package/package.json +1 -1
- 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/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
|
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
+
import "./error-ZsFeevV2.mjs";
|
|
3
|
+
import "./runtime-Duawf5lE.mjs";
|
|
4
|
+
import "./capabilities-7e9MgquN.mjs";
|
|
5
|
+
import "./render-0_GsapXa.mjs";
|
|
6
|
+
import "./parse-id-0_tOPvfI.mjs";
|
|
7
|
+
import "./poll-task-51WRdugU.mjs";
|
|
8
|
+
import "./poll-4eoh5J0r.mjs";
|
|
9
|
+
import { SyncSettingsUpdateResult, add_collection_default, setCollectionRemoteSynced, syncSettingsUpdateView } from "./add-collection-DQjTlDNF.mjs";
|
|
10
|
+
|
|
11
|
+
export { add_collection_default as default };
|
|
@@ -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-ZsFeevV2.mjs";
|
|
2
|
+
import { defineMetabaseCommand } from "./runtime-Duawf5lE.mjs";
|
|
3
|
+
import { renderSummary } from "./render-0_GsapXa.mjs";
|
|
4
|
+
import { parseId } from "./parse-id-0_tOPvfI.mjs";
|
|
5
|
+
import { REMOTE_SYNC_PATHS } from "./poll-task-51WRdugU.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
|
|
|
@@ -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-ZsFeevV2.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-Duawf5lE.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-0_tOPvfI.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-ZsFeevV2.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-Duawf5lE.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-0_tOPvfI.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-ZsFeevV2.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-Duawf5lE.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-0_tOPvfI.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-ZsFeevV2.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-Duawf5lE.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-0_tOPvfI.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-ZsFeevV2.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-Duawf5lE.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-0_tOPvfI.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,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-ZsFeevV2.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-Duawf5lE.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-0_tOPvfI.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-enh9Yimb.mjs").then((m) => m.default),
|
|
12
|
+
status: () => import("./status-BNvFPemM.mjs").then((m) => m.default),
|
|
13
|
+
list: () => import("./list-C-oZe1_p.mjs").then((m) => m.default),
|
|
14
|
+
logout: () => import("./logout-BWLPLDh8.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-Duawf5lE.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-ZsFeevV2.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-Duawf5lE.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-51WRdugU.mjs";
|
|
7
|
+
import "./poll-4eoh5J0r.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-ZsFeevV2.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-Duawf5lE.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-0_tOPvfI.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-ZsFeevV2.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-Duawf5lE.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-51WRdugU.mjs";
|
|
7
|
+
import "./poll-4eoh5J0r.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-DfDZr55C.mjs").then((mod) => mod.default),
|
|
11
|
+
get: () => import("./get-sMpa-X4E.mjs").then((mod) => mod.default),
|
|
12
|
+
query: () => import("./query-DYVBnu9d.mjs").then((mod) => mod.default),
|
|
13
|
+
create: () => import("./create-BIphz0kO.mjs").then((mod) => mod.default),
|
|
14
|
+
update: () => import("./update-DCrOQ1PW.mjs").then((mod) => mod.default),
|
|
15
|
+
archive: () => import("./archive-De8jzzq7.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-ZsFeevV2.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-Duawf5lE.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-0_tOPvfI.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-ZsFeevV2.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-D9eAyVoG.mjs").then((mod) => mod.default),
|
|
62
|
+
db: () => import("./db-CWTFe_FZ.mjs").then((mod) => mod.default),
|
|
63
|
+
table: () => import("./table-J2f0STnB.mjs").then((mod) => mod.default),
|
|
64
|
+
field: () => import("./field-LL6W_c-c.mjs").then((mod) => mod.default),
|
|
65
|
+
card: () => import("./card-DDDrWcDU.mjs").then((mod) => mod.default),
|
|
66
|
+
dashboard: () => import("./dashboard-BLf1RZlk.mjs").then((mod) => mod.default),
|
|
67
|
+
collection: () => import("./collection-DkEvCDar.mjs").then((mod) => mod.default),
|
|
68
|
+
transform: () => import("./transform-q1LYWQtW.mjs").then((mod) => mod.default),
|
|
69
|
+
"transform-job": () => import("./transform-job-OW4SDhsQ.mjs").then((mod) => mod.default),
|
|
70
|
+
setting: () => import("./setting-DUa96KF3.mjs").then((mod) => mod.default),
|
|
71
|
+
search: () => import("./search-DYP3lOlq.mjs").then((mod) => mod.default),
|
|
72
|
+
"git-sync": () => import("./git-sync-CrWTo3YX.mjs").then((mod) => mod.default),
|
|
73
|
+
workspace: () => import("./workspace-ri6r3zWo.mjs").then((mod) => mod.default),
|
|
74
|
+
setup: () => import("./setup-BPlllnim.mjs").then((mod) => mod.default),
|
|
75
|
+
snippet: () => import("./snippet-dJ68tGsl.mjs").then((mod) => mod.default),
|
|
76
|
+
segment: () => import("./segment-B6HnNGDs.mjs").then((mod) => mod.default),
|
|
77
|
+
measure: () => import("./measure-CDlEPFtB.mjs").then((mod) => mod.default),
|
|
78
|
+
eid: () => import("./eid-CLY5X0Uw.mjs").then((mod) => mod.default),
|
|
79
|
+
query: () => import("./query-BBCAF-tG.mjs").then((mod) => mod.default),
|
|
80
|
+
uuid: () => import("./uuid-BSVUk8u2.mjs").then((mod) => mod.default),
|
|
81
|
+
upgrade: () => import("./upgrade-D-Rl_fH9.mjs").then((mod) => mod.default),
|
|
82
|
+
skills: () => import("./skills-SqbPo0BI.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-CU6sOfI-.mjs").then((mod) => mod.default),
|
|
11
|
+
get: () => import("./get-CRvbChoX.mjs").then((mod) => mod.default),
|
|
12
|
+
items: () => import("./items-C94eW2Yd.mjs").then((mod) => mod.default),
|
|
13
|
+
tree: () => import("./tree-mvq9gM9w.mjs").then((mod) => mod.default),
|
|
14
|
+
create: () => import("./create-w3mQg9n4.mjs").then((mod) => mod.default),
|
|
15
|
+
archive: () => import("./archive-DTN9tLGT.mjs").then((mod) => mod.default)
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
//#endregion
|
|
20
|
+
export { collection_default as default };
|
|
@@ -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-ZsFeevV2.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-Duawf5lE.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-tcURGnGh.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-BhsErYz3.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
|
}
|
|
@@ -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-ZsFeevV2.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-Duawf5lE.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-tcURGnGh.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-D7q87Btw.mjs";
|
|
9
|
-
import { Workspace, WorkspaceCreateInput, workspaceView } from "./workspace-
|
|
9
|
+
import { Workspace, WorkspaceCreateInput, workspaceView } from "./workspace-D8HtUN0y.mjs";
|
|
10
10
|
|
|
11
11
|
//#region src/commands/workspace/create.ts
|
|
12
12
|
var create_default = defineMetabaseCommand({
|
|
@@ -44,7 +44,9 @@ var create_default = defineMetabaseCommand({
|
|
|
44
44
|
method: "POST",
|
|
45
45
|
body
|
|
46
46
|
});
|
|
47
|
-
|
|
47
|
+
const hasDatabases = (created.databases ?? []).length > 0;
|
|
48
|
+
const hint = hasDatabases ? "" : " No databases yet — run `mb workspace database provision`.";
|
|
49
|
+
renderSummary(created, workspaceView, `Created workspace ${created.id} "${created.name}".${hint}`, ctx);
|
|
48
50
|
}
|
|
49
51
|
});
|
|
50
52
|
|
|
@@ -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-ZsFeevV2.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-Duawf5lE.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-tcURGnGh.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,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-ZsFeevV2.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-Duawf5lE.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-tcURGnGh.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
|
|