@metabase/cli 0.1.0-alpha.workspaces-commands.68d980f → 0.1.0-alpha.workspaces-commands.2c53ab6
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 +12 -12
- package/dist/{add-collection-Cu4B6KXG.mjs → add-collection-CglWilCW.mjs} +3 -3
- package/dist/{add-collection-DGV1rqqR.mjs → add-collection-DJyCI-0s.mjs} +6 -6
- package/dist/{api-key-6_Q5e_K0.mjs → api-key-df2ZsJBo.mjs} +1 -1
- package/dist/{archive-DHjG2vSi.mjs → archive-CCVNS2SS.mjs} +3 -3
- package/dist/{archive-Bpf0QvqP.mjs → archive-D3reknjN.mjs} +3 -3
- package/dist/{archive-C2ziJ31w.mjs → archive-DHseQfsj.mjs} +3 -3
- package/dist/{archive-CYgtaA_I.mjs → archive-Dta_mr4o.mjs} +3 -3
- package/dist/auth-48hkspfk.mjs +19 -0
- package/dist/{body-BAdJj5HJ.mjs → body-Dhcf1O4J.mjs} +1 -1
- package/dist/{branches-DkwkHvgF.mjs → branches-DV7_2s8y.mjs} +4 -4
- package/dist/{cancel-UgDP_AM-.mjs → cancel-DNbb4CBS.mjs} +3 -3
- package/dist/{cancel-task-DCV5l_rj.mjs → cancel-task-CDjt9-vy.mjs} +4 -4
- package/dist/card-BYs0LI-2.mjs +20 -0
- package/dist/{cards-BXYJMHYy.mjs → cards-coJN4bZN.mjs} +4 -4
- package/dist/cli.mjs +22 -22
- package/dist/collection-DKHhQUaC.mjs +19 -0
- package/dist/{create-yiHTy9qd.mjs → create-2ufjukAT.mjs} +3 -3
- package/dist/{create-D4_iBwTY.mjs → create-BBYkUPJr.mjs} +3 -3
- package/dist/{create-DCAvWcNL.mjs → create-BZKCfIc9.mjs} +4 -4
- package/dist/{create-RneHGLFF.mjs → create-BjiAKAtp.mjs} +3 -3
- package/dist/{create-BUcIJ1nk.mjs → create-CssxnW-h.mjs} +3 -3
- package/dist/{create-BLwyolnm.mjs → create-CytUU9ZM.mjs} +3 -3
- package/dist/{create-DCEuLMff.mjs → create-D2H_tAy9.mjs} +4 -4
- package/dist/{create-D9zWWm9b.mjs → create-D6mskDx3.mjs} +3 -3
- package/dist/{create-n7yxR6s2.mjs → create-DVxYduNp.mjs} +3 -3
- package/dist/{create-D9CEUvL3.mjs → create-DdlYGYMQ.mjs} +3 -3
- package/dist/{create-branch-BfSrjGld.mjs → create-branch-BxdlgUF3.mjs} +4 -4
- package/dist/{credentials-BnX6KoeQ.mjs → credentials-C0XoCrdj.mjs} +5 -5
- package/dist/{current-task-C60CWYop.mjs → current-task-D4ESrhJg.mjs} +4 -4
- package/dist/{dashboard-C7MhcBfX.mjs → dashboard-CztCJxke.mjs} +10 -1
- package/dist/dashboard-Do_DrOBD.mjs +20 -0
- package/dist/{database-BkSdTiyB.mjs → database-CRiXkFXN.mjs} +3 -3
- package/dist/db-CA1COQRS.mjs +22 -0
- package/dist/{delete-nxO9ND-q.mjs → delete-CGsM3A9N.mjs} +3 -3
- package/dist/{delete-D39mHiYu.mjs → delete-dmfeaLnL.mjs} +3 -3
- package/dist/{delete-table-Dk1C3x9k.mjs → delete-table-DrLiWAcy.mjs} +3 -3
- package/dist/{deprovision-CCokm00M.mjs → deprovision-DUOEcrED.mjs} +6 -6
- package/dist/{dirty-Da9uKlQp.mjs → dirty-7iiqqjBz.mjs} +4 -4
- package/dist/{docker-En_jqSVW.mjs → docker-BZjPjatS.mjs} +4 -12
- package/dist/{eid-BQx_tnuC.mjs → eid-BroD_GP3.mjs} +1 -1
- package/dist/{export-PQ84ihYr.mjs → export-B3eYlEi7.mjs} +5 -5
- package/dist/field-DWyPAP-J.mjs +18 -0
- package/dist/{fields-BhN1M2TD.mjs → fields-DyTkwb75.mjs} +3 -3
- package/dist/{get-DQ0lm-Dx.mjs → get-A9FQMAbD.mjs} +3 -3
- package/dist/{get-CAYdsSX4.mjs → get-BE1MwBTF.mjs} +2 -2
- package/dist/{get-CbwJfVx1.mjs → get-BGWeW5cp.mjs} +3 -3
- package/dist/{get-CScnOuJ-.mjs → get-CcC1nGEb.mjs} +3 -3
- package/dist/{get-CtsZA_BB.mjs → get-DGIYvzKJ.mjs} +3 -3
- package/dist/{get-BifK1SP6.mjs → get-DHP5AeV_.mjs} +3 -3
- package/dist/{get-D64v79fP.mjs → get-DNUPiMmh.mjs} +4 -4
- package/dist/{get-DpFyct1X.mjs → get-DgIz7LEl.mjs} +3 -3
- package/dist/{get-Dopinaxx.mjs → get-DtlMXBPa.mjs} +3 -3
- package/dist/{get-D6dlsNBD.mjs → get-KrXvSLOx.mjs} +3 -3
- package/dist/{get-CaRX225l.mjs → get-T36pllqi.mjs} +2 -2
- package/dist/{get-DM2UkeKJ.mjs → get-lncPdHmT.mjs} +3 -3
- package/dist/{get-run-DpjKXCww.mjs → get-run-CAFGtvMv.mjs} +3 -3
- package/dist/{has-remote-changes-BgbCIv30.mjs → has-remote-changes-BQMJmg1p.mjs} +4 -4
- package/dist/{import-BRC4SYRj.mjs → import-yZJ4v4W7.mjs} +5 -5
- package/dist/{is-dirty-BduCa9nf.mjs → is-dirty-Bu8nOhQa.mjs} +2 -2
- package/dist/is-dirty-DmdX_Bba.mjs +10 -0
- package/dist/{items-NE7Z-vuw.mjs → items-B1c7eCtM.mjs} +3 -3
- package/dist/{license-MWU4vLvD.mjs → license-Bl7tz7XB.mjs} +3 -3
- package/dist/{list-Bgt_qxRd.mjs → list-BR1ga_lK.mjs} +2 -2
- package/dist/{list-_4_qW2nQ.mjs → list-C3BiNPb-.mjs} +2 -2
- package/dist/{list-C1wNHDPl.mjs → list-C5MvVG_k.mjs} +2 -2
- package/dist/{list--EFsidRC.mjs → list-CcKluubc.mjs} +3 -3
- package/dist/{list-D6KnlTOp.mjs → list-CiXwABFC.mjs} +2 -2
- package/dist/{list-CR1Dkcbk.mjs → list-Cs6U1iyJ.mjs} +2 -2
- package/dist/{list-C-ucaNmG.mjs → list-DKGrW6ds.mjs} +2 -2
- package/dist/{list-BMFbKnG1.mjs → list-DQdAUZNJ.mjs} +3 -3
- package/dist/{list-B_XtS5VX.mjs → list-DdzkvpfC.mjs} +2 -2
- package/dist/{list-BPC7KqBQ.mjs → list-DnVt2DI6.mjs} +2 -2
- package/dist/{list-BB9IsaT4.mjs → list-DwvTiRJM.mjs} +2 -2
- package/dist/{list-jHGjjZdC.mjs → list-b-d_WQtD.mjs} +2 -2
- package/dist/{list-DeNHJECx.mjs → list-ffNPfhjn.mjs} +2 -2
- package/dist/{login-B30jvHfe.mjs → login-DWZ3237S.mjs} +10 -3
- package/dist/{logout-bWublBcN.mjs → logout-BQQXb8Yz.mjs} +3 -3
- package/dist/{logs-DsiDIT90.mjs → logs-DmLSVBBI.mjs} +5 -5
- package/dist/measure-CHXwfh6U.mjs +19 -0
- package/dist/{metadata-DCVxSKX7.mjs → metadata-CSXl30nB.mjs} +3 -3
- package/dist/{metadata-DCFEJsKY.mjs → metadata-bbnwhok9.mjs} +3 -3
- package/dist/{package-Be4_p9f8.mjs → package-CPA0hL4E.mjs} +1 -1
- package/dist/{parse-id-DKRTKFB2.mjs → parse-id-B6lwJaSN.mjs} +1 -1
- package/dist/{parse-schemas-CtMwPgZe.mjs → parse-schemas-D-SskXW5.mjs} +1 -1
- package/dist/{poll-task-UMS6aAza.mjs → poll-task-Br9sXlAY.mjs} +2 -2
- package/dist/{poll-BXEPgd4X.mjs → poll-txMmreGz.mjs} +1 -1
- package/dist/{provision-BDtZZK84.mjs → provision-yQ_U65mn.mjs} +8 -8
- package/dist/{ps-iON5iNUT.mjs → ps-Cme4djhG.mjs} +5 -5
- package/dist/{ps-DcKt1oHS.mjs → ps-gOyo1hvO.mjs} +2 -2
- package/dist/{query-7qZ7dWnE.mjs → query-8QKziTh6.mjs} +3 -3
- package/dist/{query-DtD0dc_V.mjs → query-BEdVNMoh.mjs} +3 -3
- package/dist/{remove-UWzVKtfF.mjs → remove-CcLnrQn3.mjs} +2 -2
- package/dist/{remove-D194SUD-.mjs → remove-E-GvBZlu.mjs} +5 -5
- package/dist/{remove-collection-BUwKxMsH.mjs → remove-collection-e91EDPU0.mjs} +6 -6
- package/dist/{rescan-values-zYxt5WcO.mjs → rescan-values-DpnBq_8O.mjs} +3 -3
- package/dist/{run-DwYkAZHU.mjs → run-znsYOoVE.mjs} +5 -5
- package/dist/{runs-CeHd9FOO.mjs → runs-CUKCYtQ9.mjs} +3 -3
- package/dist/{runtime-Dlk-yyFO.mjs → runtime-BosOjtk8.mjs} +72 -5
- package/dist/{schema-tables-LZG9R38V.mjs → schema-tables-CpzG9dGB.mjs} +3 -3
- package/dist/{schemas-ZC7JrOKM.mjs → schemas-C7qPExUI.mjs} +3 -3
- package/dist/{search-StdHjR5q.mjs → search-CdZXuKMD.mjs} +3 -3
- package/dist/segment-CZueKbMG.mjs +19 -0
- package/dist/{set-Ey8zuk9j.mjs → set-B5LrZvTf.mjs} +2 -2
- package/dist/{set-CgDS1Feo.mjs → set-QLnnGXA-.mjs} +3 -3
- package/dist/{setting-D4mR5WMp.mjs → setting-VdsV1zJU.mjs} +3 -3
- package/dist/{setup-DKRzEM6a.mjs → setup-PfuxdpC2.mjs} +3 -3
- package/dist/snippet-Dt6U2B_d.mjs +19 -0
- package/dist/{start-15kcQYwC.mjs → start-CcKJAPgj.mjs} +42 -23
- package/dist/{stash-CQkpgkAr.mjs → stash-BOsZ3D2a.mjs} +5 -5
- package/dist/{status-Dg0qSJtP.mjs → status-BUqpX1A6.mjs} +2 -2
- package/dist/{status-BmYxYGZE.mjs → status-C9HOIR6B.mjs} +5 -5
- package/dist/{status-D0LTLSrI.mjs → status-m3vjBsvZ.mjs} +2 -2
- package/dist/{stop-B9M_LliY.mjs → stop-CmtMjLTX.mjs} +6 -6
- package/dist/{summary-CSGteNEX.mjs → summary-FQ1HuTaZ.mjs} +3 -3
- package/dist/sync-CGSQJVtH.mjs +28 -0
- package/dist/{sync-schema-BjGQtnol.mjs → sync-schema-toerKFPx.mjs} +3 -3
- package/dist/table-C-rXoinA.mjs +19 -0
- package/dist/transform-BYGryvCT.mjs +24 -0
- package/dist/transform-job-BPyH5JYX.mjs +19 -0
- package/dist/{translate-DRajJsf0.mjs → translate-DH9gj3A1.mjs} +3 -3
- package/dist/{tree-eunCOx9U.mjs → tree-e5lsaBMb.mjs} +2 -2
- package/dist/{update-CSsRBrV5.mjs → update-2K6P3N8w.mjs} +8 -8
- package/dist/{update-Bhfzszoc.mjs → update-BC5oAGMa.mjs} +5 -5
- package/dist/{update-CkrxPRXK.mjs → update-BcXRa34z.mjs} +4 -4
- package/dist/{update-B0bpqs4y.mjs → update-Bzorlabk.mjs} +4 -4
- package/dist/{update-BprFaiqH.mjs → update-CYDjM57D.mjs} +4 -4
- package/dist/{update-D14Sl_IP.mjs → update-Clsuv_an.mjs} +4 -4
- package/dist/{update-6BC1K7uY.mjs → update-DJZezcI8.mjs} +4 -4
- package/dist/{update-D1mHRo8M.mjs → update-DOGMjGIX.mjs} +4 -4
- package/dist/{update-C-i8drfb.mjs → update-Drz-xQbM.mjs} +4 -4
- package/dist/{update-BJk9pfiv.mjs → update-_D3IOLob.mjs} +4 -4
- package/dist/{update-dashcard-I13krLAG.mjs → update-dashcard-hd6u-wic.mjs} +5 -5
- package/dist/{url-CRyx47hL.mjs → url-w4yNSMK8.mjs} +5 -5
- package/dist/{values-BhYRwEvd.mjs → values-Bc7KrzM8.mjs} +3 -3
- package/dist/{wait-Dx7gfA8G.mjs → wait-BcS6YYo4.mjs} +1 -1
- package/dist/{wait-dqZ8MsDQ.mjs → wait-DSN55m4Q.mjs} +5 -5
- package/dist/{wait-flags-Czo_9Q__.mjs → wait-flags-CqeQ7xey.mjs} +2 -2
- package/dist/workspace-DZG1Sm5g.mjs +24 -0
- package/package.json +1 -1
- package/dist/auth-BaMPV-un.mjs +0 -19
- package/dist/card-DI78jgjG.mjs +0 -20
- package/dist/collection-BcMoZLX0.mjs +0 -19
- package/dist/dashboard-B8zj0bZS.mjs +0 -20
- package/dist/db-DG-1rI_O.mjs +0 -22
- package/dist/field-CE-2zFaL.mjs +0 -18
- package/dist/is-dirty-hMK61S1s.mjs +0 -10
- package/dist/measure-Bc9tjbVl.mjs +0 -19
- package/dist/segment-BVM0WSM7.mjs +0 -19
- package/dist/snippet-BO-gCn0H.mjs +0 -19
- package/dist/sync-_BtDG63a.mjs +0 -28
- package/dist/table-C0N9hfqm.mjs +0 -19
- package/dist/transform-BycLORsG.mjs +0 -24
- package/dist/transform-job-B_SvpPfl.mjs +0 -19
- package/dist/workspace-eQ2gxKYO.mjs +0 -24
package/README.md
CHANGED
|
@@ -1181,18 +1181,18 @@ By default `start` returns once the bundle has been consumed by the child (`stat
|
|
|
1181
1181
|
|
|
1182
1182
|
When `--repo <host-path>` is passed, the CLI bind-mounts the host directory at `/mnt/repo` inside the container and injects three settings into the workspace's `config.yml` so the child boots already wired to the repo: `remote-sync-url=file:///mnt/repo`, `remote-sync-branch=<branch>` (defaults to the current branch of the host repo, read via `git -C <path> symbolic-ref --short HEAD`; override with `--repo-branch`), and `remote-sync-type=<mode>` (defaults to `read-write`; override with `--repo-mode read-only`, which also makes the bind mount read-only). The bind mount is set at container-create time only — to add or change it after the fact, run `start --force` again with the new flags. The host path must be an existing directory; the CLI does not create or `git init` it for you.
|
|
1183
1183
|
|
|
1184
|
-
| Flag | Description
|
|
1185
|
-
| ---------------------- |
|
|
1186
|
-
| `--port <n>` | Host port (default: 3000; auto-shifts up to 100 ports if taken).
|
|
1187
|
-
| `--image <ref>` | Docker image (default: `metabase/metabase-dev:feature-workspaces-v2`).
|
|
1188
|
-
| `--wait` | Block until `/api/health` is ready. Default: return as soon as consumed.
|
|
1189
|
-
| `--timeout <ms>` |
|
|
1190
|
-
| `--no-pull` | Skip `docker pull` (useful if the image is already present).
|
|
1191
|
-
| `--no-metadata` | Skip the warehouse metadata export.
|
|
1192
|
-
| `--force` | If a container for this workspace already exists, remove it before starting.
|
|
1193
|
-
| `--repo <host-path>` | Bind-mount a host directory at `/mnt/repo` and set `remote-sync-url=file:///mnt/repo` in `config.yml`.
|
|
1194
|
-
| `--repo-branch <name>` | `remote-sync-branch` value (default: current branch of the host repo).
|
|
1195
|
-
| `--repo-mode <mode>` | `remote-sync-type`: `read-write` (default) or `read-only`. Read-only also makes the bind mount read-only.
|
|
1184
|
+
| Flag | Description |
|
|
1185
|
+
| ---------------------- | ---------------------------------------------------------------------------------------------------------------------------------- |
|
|
1186
|
+
| `--port <n>` | Host port (default: 3000; auto-shifts up to 100 ports if taken). |
|
|
1187
|
+
| `--image <ref>` | Docker image (default: `metabase/metabase-dev:feature-workspaces-v2`). |
|
|
1188
|
+
| `--wait` | Block until `/api/health` is ready. Default: return as soon as consumed. |
|
|
1189
|
+
| `--timeout <ms>` | Per-phase readiness deadline (default: 240000). Covers post-create config consumption and (with `--wait`) the `/api/health` probe. |
|
|
1190
|
+
| `--no-pull` | Skip `docker pull` (useful if the image is already present). |
|
|
1191
|
+
| `--no-metadata` | Skip the warehouse metadata export. |
|
|
1192
|
+
| `--force` | If a container for this workspace already exists, remove it before starting. |
|
|
1193
|
+
| `--repo <host-path>` | Bind-mount a host directory at `/mnt/repo` and set `remote-sync-url=file:///mnt/repo` in `config.yml`. |
|
|
1194
|
+
| `--repo-branch <name>` | `remote-sync-branch` value (default: current branch of the host repo). |
|
|
1195
|
+
| `--repo-mode <mode>` | `remote-sync-type`: `read-write` (default) or `read-only`. Read-only also makes the bind mount read-only. |
|
|
1196
1196
|
|
|
1197
1197
|
### `metabase workspace stop <id>`
|
|
1198
1198
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { renderItem } from "./render-BYWlZPEH.mjs";
|
|
2
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
3
|
-
import { parseId } from "./parse-id-
|
|
4
|
-
import { REMOTE_SYNC_PATHS } from "./poll-task-
|
|
2
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-BosOjtk8.mjs";
|
|
3
|
+
import { parseId } from "./parse-id-B6lwJaSN.mjs";
|
|
4
|
+
import { REMOTE_SYNC_PATHS } from "./poll-task-Br9sXlAY.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
|
|
7
7
|
//#region src/commands/sync/add-collection.ts
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-CPA0hL4E.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import "./render-BYWlZPEH.mjs";
|
|
4
4
|
import "./errors-C6w1eZ1F.mjs";
|
|
5
|
-
import "./runtime-
|
|
6
|
-
import "./parse-id-
|
|
7
|
-
import "./poll-task-
|
|
8
|
-
import "./poll-
|
|
9
|
-
import { SyncSettingsUpdateResult, add_collection_default, setCollectionRemoteSynced, syncSettingsUpdateView } from "./add-collection-
|
|
5
|
+
import "./runtime-BosOjtk8.mjs";
|
|
6
|
+
import "./parse-id-B6lwJaSN.mjs";
|
|
7
|
+
import "./poll-task-Br9sXlAY.mjs";
|
|
8
|
+
import "./poll-txMmreGz.mjs";
|
|
9
|
+
import { SyncSettingsUpdateResult, add_collection_default, setCollectionRemoteSynced, syncSettingsUpdateView } from "./add-collection-CglWilCW.mjs";
|
|
10
10
|
|
|
11
11
|
export { add_collection_default as default };
|
|
@@ -6,7 +6,7 @@ var api_key_default = defineCommand({
|
|
|
6
6
|
name: "api-key",
|
|
7
7
|
description: "Manage Metabase API keys"
|
|
8
8
|
},
|
|
9
|
-
subCommands: { create: () => import("./create-
|
|
9
|
+
subCommands: { create: () => import("./create-BZKCfIc9.mjs").then((mod) => mod.default) }
|
|
10
10
|
});
|
|
11
11
|
|
|
12
12
|
//#endregion
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-CPA0hL4E.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-BYWlZPEH.mjs";
|
|
4
4
|
import "./errors-C6w1eZ1F.mjs";
|
|
5
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
5
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-BosOjtk8.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-B6lwJaSN.mjs";
|
|
7
7
|
import { Measure, measureView } from "./measure-B1GKcZxO.mjs";
|
|
8
8
|
import { revisionMessageFlag } from "./revision-message-flag-BJiGjb5m.mjs";
|
|
9
9
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-CPA0hL4E.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-BYWlZPEH.mjs";
|
|
4
4
|
import "./errors-C6w1eZ1F.mjs";
|
|
5
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
5
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-BosOjtk8.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-B6lwJaSN.mjs";
|
|
7
7
|
import { Snippet, snippetView } from "./snippet-DRTklDg3.mjs";
|
|
8
8
|
|
|
9
9
|
//#region src/commands/snippet/archive.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-CPA0hL4E.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-BYWlZPEH.mjs";
|
|
4
4
|
import "./errors-C6w1eZ1F.mjs";
|
|
5
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
5
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-BosOjtk8.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-B6lwJaSN.mjs";
|
|
7
7
|
import { revisionMessageFlag } from "./revision-message-flag-BJiGjb5m.mjs";
|
|
8
8
|
import { Segment, segmentView } from "./segment-CQ5w3M_W.mjs";
|
|
9
9
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-CPA0hL4E.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-BYWlZPEH.mjs";
|
|
4
4
|
import "./errors-C6w1eZ1F.mjs";
|
|
5
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
5
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-BosOjtk8.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-B6lwJaSN.mjs";
|
|
7
7
|
import { Card, cardView } from "./card-BOGKT258.mjs";
|
|
8
8
|
|
|
9
9
|
//#region src/commands/card/archive.ts
|
|
@@ -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-DWZ3237S.mjs").then((m) => m.default),
|
|
12
|
+
status: () => import("./status-BUqpX1A6.mjs").then((m) => m.default),
|
|
13
|
+
list: () => import("./list-DwvTiRJM.mjs").then((m) => m.default),
|
|
14
|
+
logout: () => import("./logout-BQQXb8Yz.mjs").then((m) => m.default)
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
export { auth_default as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ConfigError } from "./errors-C6w1eZ1F.mjs";
|
|
2
2
|
import { readInput } from "./input-DMcm_A5s.mjs";
|
|
3
|
-
import { parseJson } from "./runtime-
|
|
3
|
+
import { parseJson } from "./runtime-BosOjtk8.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/runtime/body.ts
|
|
6
6
|
async function readBody(sources, schema) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-CPA0hL4E.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderList } from "./render-BYWlZPEH.mjs";
|
|
4
4
|
import "./errors-C6w1eZ1F.mjs";
|
|
5
|
-
import { connectionFlags, defineMetabaseCommand, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./runtime-
|
|
6
|
-
import { REMOTE_SYNC_PATHS } from "./poll-task-
|
|
7
|
-
import "./poll-
|
|
5
|
+
import { connectionFlags, defineMetabaseCommand, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./runtime-BosOjtk8.mjs";
|
|
6
|
+
import { REMOTE_SYNC_PATHS } from "./poll-task-Br9sXlAY.mjs";
|
|
7
|
+
import "./poll-txMmreGz.mjs";
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
|
|
10
10
|
//#region src/commands/sync/branches.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-CPA0hL4E.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-BYWlZPEH.mjs";
|
|
4
4
|
import "./errors-C6w1eZ1F.mjs";
|
|
5
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
5
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-BosOjtk8.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-B6lwJaSN.mjs";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
|
|
9
9
|
//#region src/commands/transform/cancel.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-CPA0hL4E.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-BYWlZPEH.mjs";
|
|
4
4
|
import "./errors-C6w1eZ1F.mjs";
|
|
5
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
6
|
-
import { REMOTE_SYNC_PATHS, SyncTask, syncTaskView } from "./poll-task-
|
|
7
|
-
import "./poll-
|
|
5
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-BosOjtk8.mjs";
|
|
6
|
+
import { REMOTE_SYNC_PATHS, SyncTask, syncTaskView } from "./poll-task-Br9sXlAY.mjs";
|
|
7
|
+
import "./poll-txMmreGz.mjs";
|
|
8
8
|
|
|
9
9
|
//#region src/commands/sync/cancel-task.ts
|
|
10
10
|
var cancel_task_default = defineMetabaseCommand({
|
|
@@ -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-C5MvVG_k.mjs").then((mod) => mod.default),
|
|
11
|
+
get: () => import("./get-DHP5AeV_.mjs").then((mod) => mod.default),
|
|
12
|
+
query: () => import("./query-BEdVNMoh.mjs").then((mod) => mod.default),
|
|
13
|
+
create: () => import("./create-BBYkUPJr.mjs").then((mod) => mod.default),
|
|
14
|
+
update: () => import("./update-Bzorlabk.mjs").then((mod) => mod.default),
|
|
15
|
+
archive: () => import("./archive-Dta_mr4o.mjs").then((mod) => mod.default)
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
//#endregion
|
|
20
|
+
export { card_default as default };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-CPA0hL4E.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderList } from "./render-BYWlZPEH.mjs";
|
|
4
4
|
import "./errors-C6w1eZ1F.mjs";
|
|
5
|
-
import { connectionFlags, defineMetabaseCommand, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./runtime-
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
7
|
-
import { DashboardDetail, DashcardCompact, dashcardView } from "./dashboard-
|
|
5
|
+
import { connectionFlags, defineMetabaseCommand, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./runtime-BosOjtk8.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-B6lwJaSN.mjs";
|
|
7
|
+
import { DashboardDetail, DashcardCompact, dashcardView } from "./dashboard-CztCJxke.mjs";
|
|
8
8
|
|
|
9
9
|
//#region src/commands/dashboard/cards.ts
|
|
10
10
|
const DashcardListEnvelope = listEnvelopeSchema(DashcardCompact);
|
package/dist/cli.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { package_default } from "./package-
|
|
2
|
+
import { package_default } from "./package-CPA0hL4E.mjs";
|
|
3
3
|
import { getMetabaseAugment } from "./command-augment-D9pI9Vbh.mjs";
|
|
4
4
|
import { defineCommand, renderUsage, runMain } from "citty";
|
|
5
5
|
|
|
@@ -11,27 +11,27 @@ const main = defineCommand({
|
|
|
11
11
|
description: package_default.description
|
|
12
12
|
},
|
|
13
13
|
subCommands: {
|
|
14
|
-
auth: () => import("./auth-
|
|
15
|
-
license: () => import("./license-
|
|
16
|
-
db: () => import("./db-
|
|
17
|
-
table: () => import("./table-
|
|
18
|
-
field: () => import("./field-
|
|
19
|
-
card: () => import("./card-
|
|
20
|
-
dashboard: () => import("./dashboard-
|
|
21
|
-
collection: () => import("./collection-
|
|
22
|
-
transform: () => import("./transform-
|
|
23
|
-
"transform-job": () => import("./transform-job-
|
|
24
|
-
setting: () => import("./setting-
|
|
25
|
-
search: () => import("./search-
|
|
26
|
-
sync: () => import("./sync-
|
|
27
|
-
workspace: () => import("./workspace-
|
|
28
|
-
setup: () => import("./setup-
|
|
29
|
-
"api-key": () => import("./api-key-
|
|
30
|
-
snippet: () => import("./snippet-
|
|
31
|
-
segment: () => import("./segment-
|
|
32
|
-
measure: () => import("./measure-
|
|
33
|
-
eid: () => import("./eid-
|
|
34
|
-
query: () => import("./query-
|
|
14
|
+
auth: () => import("./auth-48hkspfk.mjs").then((mod) => mod.default),
|
|
15
|
+
license: () => import("./license-Bl7tz7XB.mjs").then((mod) => mod.default),
|
|
16
|
+
db: () => import("./db-CA1COQRS.mjs").then((mod) => mod.default),
|
|
17
|
+
table: () => import("./table-C-rXoinA.mjs").then((mod) => mod.default),
|
|
18
|
+
field: () => import("./field-DWyPAP-J.mjs").then((mod) => mod.default),
|
|
19
|
+
card: () => import("./card-BYs0LI-2.mjs").then((mod) => mod.default),
|
|
20
|
+
dashboard: () => import("./dashboard-Do_DrOBD.mjs").then((mod) => mod.default),
|
|
21
|
+
collection: () => import("./collection-DKHhQUaC.mjs").then((mod) => mod.default),
|
|
22
|
+
transform: () => import("./transform-BYGryvCT.mjs").then((mod) => mod.default),
|
|
23
|
+
"transform-job": () => import("./transform-job-BPyH5JYX.mjs").then((mod) => mod.default),
|
|
24
|
+
setting: () => import("./setting-VdsV1zJU.mjs").then((mod) => mod.default),
|
|
25
|
+
search: () => import("./search-CdZXuKMD.mjs").then((mod) => mod.default),
|
|
26
|
+
sync: () => import("./sync-CGSQJVtH.mjs").then((mod) => mod.default),
|
|
27
|
+
workspace: () => import("./workspace-DZG1Sm5g.mjs").then((mod) => mod.default),
|
|
28
|
+
setup: () => import("./setup-PfuxdpC2.mjs").then((mod) => mod.default),
|
|
29
|
+
"api-key": () => import("./api-key-df2ZsJBo.mjs").then((mod) => mod.default),
|
|
30
|
+
snippet: () => import("./snippet-Dt6U2B_d.mjs").then((mod) => mod.default),
|
|
31
|
+
segment: () => import("./segment-CZueKbMG.mjs").then((mod) => mod.default),
|
|
32
|
+
measure: () => import("./measure-CHXwfh6U.mjs").then((mod) => mod.default),
|
|
33
|
+
eid: () => import("./eid-BroD_GP3.mjs").then((mod) => mod.default),
|
|
34
|
+
query: () => import("./query-8QKziTh6.mjs").then((mod) => mod.default),
|
|
35
35
|
__manifest: () => import("./manifest-CdAV6-YB.mjs").then((mod) => mod.createManifestCommand(main))
|
|
36
36
|
}
|
|
37
37
|
});
|
|
@@ -0,0 +1,19 @@
|
|
|
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: "Browse Metabase collections"
|
|
8
|
+
},
|
|
9
|
+
subCommands: {
|
|
10
|
+
list: () => import("./list-C3BiNPb-.mjs").then((mod) => mod.default),
|
|
11
|
+
get: () => import("./get-T36pllqi.mjs").then((mod) => mod.default),
|
|
12
|
+
items: () => import("./items-B1c7eCtM.mjs").then((mod) => mod.default),
|
|
13
|
+
tree: () => import("./tree-e5lsaBMb.mjs").then((mod) => mod.default),
|
|
14
|
+
create: () => import("./create-DVxYduNp.mjs").then((mod) => mod.default)
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
export { collection_default as default };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-CPA0hL4E.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-BYWlZPEH.mjs";
|
|
4
4
|
import "./errors-C6w1eZ1F.mjs";
|
|
5
5
|
import "./input-DMcm_A5s.mjs";
|
|
6
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
6
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-BosOjtk8.mjs";
|
|
7
|
+
import { readBody } from "./body-Dhcf1O4J.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-BK7J6Daz.mjs";
|
|
9
9
|
import { TransformJob, TransformJobCreateInput, transformJobView } from "./transform-job-DgApCViL.mjs";
|
|
10
10
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-CPA0hL4E.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-BYWlZPEH.mjs";
|
|
4
4
|
import "./errors-C6w1eZ1F.mjs";
|
|
5
5
|
import "./input-DMcm_A5s.mjs";
|
|
6
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
6
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-BosOjtk8.mjs";
|
|
7
|
+
import { readBody } from "./body-Dhcf1O4J.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-BK7J6Daz.mjs";
|
|
9
9
|
import { Card, CardCreateInput, cardView } from "./card-BOGKT258.mjs";
|
|
10
10
|
import { preflightInternalMbql5Query, skipValidateFlag } from "./validate-query-D0aAFTUs.mjs";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-CPA0hL4E.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-BYWlZPEH.mjs";
|
|
4
4
|
import "./errors-C6w1eZ1F.mjs";
|
|
5
5
|
import "./input-DMcm_A5s.mjs";
|
|
6
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
6
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-BosOjtk8.mjs";
|
|
7
|
+
import { readBody } from "./body-Dhcf1O4J.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-BK7J6Daz.mjs";
|
|
9
9
|
import { requireBothOrNeither } from "./flag-pair-Dz-mbq0z.mjs";
|
|
10
|
-
import { parseId } from "./parse-id-
|
|
10
|
+
import { parseId } from "./parse-id-B6lwJaSN.mjs";
|
|
11
11
|
import { z } from "zod";
|
|
12
12
|
|
|
13
13
|
//#region src/domain/api-key.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-CPA0hL4E.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-BYWlZPEH.mjs";
|
|
4
4
|
import "./errors-C6w1eZ1F.mjs";
|
|
5
5
|
import "./input-DMcm_A5s.mjs";
|
|
6
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
6
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-BosOjtk8.mjs";
|
|
7
|
+
import { readBody } from "./body-Dhcf1O4J.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-BK7J6Daz.mjs";
|
|
9
9
|
import { Measure, MeasureCreateInput, measureView } from "./measure-B1GKcZxO.mjs";
|
|
10
10
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-CPA0hL4E.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-BYWlZPEH.mjs";
|
|
4
4
|
import "./errors-C6w1eZ1F.mjs";
|
|
5
5
|
import "./input-DMcm_A5s.mjs";
|
|
6
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
6
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-BosOjtk8.mjs";
|
|
7
|
+
import { readBody } from "./body-Dhcf1O4J.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-BK7J6Daz.mjs";
|
|
9
9
|
import { Workspace, WorkspaceCreateInput, workspaceView } from "./workspace-D93cDL8-.mjs";
|
|
10
10
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-CPA0hL4E.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-BYWlZPEH.mjs";
|
|
4
4
|
import "./errors-C6w1eZ1F.mjs";
|
|
5
5
|
import "./input-DMcm_A5s.mjs";
|
|
6
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
6
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-BosOjtk8.mjs";
|
|
7
|
+
import { readBody } from "./body-Dhcf1O4J.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-BK7J6Daz.mjs";
|
|
9
9
|
import { preflightInternalMbql5Query, skipValidateFlag } from "./validate-query-D0aAFTUs.mjs";
|
|
10
10
|
import { Transform, TransformCreateInput, transformView } from "./transform-92odFxg-.mjs";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-CPA0hL4E.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-BYWlZPEH.mjs";
|
|
4
4
|
import "./errors-C6w1eZ1F.mjs";
|
|
5
5
|
import "./input-DMcm_A5s.mjs";
|
|
6
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
6
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-BosOjtk8.mjs";
|
|
7
|
+
import { readBody } from "./body-Dhcf1O4J.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-BK7J6Daz.mjs";
|
|
9
|
-
import { Dashboard, DashboardCreateInput, DashboardDetail, dashboardView } from "./dashboard-
|
|
9
|
+
import { Dashboard, DashboardCreateInput, DashboardDetail, dashboardView } from "./dashboard-CztCJxke.mjs";
|
|
10
10
|
|
|
11
11
|
//#region src/commands/dashboard/create.ts
|
|
12
12
|
var create_default = defineMetabaseCommand({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-CPA0hL4E.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-BYWlZPEH.mjs";
|
|
4
4
|
import "./errors-C6w1eZ1F.mjs";
|
|
5
5
|
import "./input-DMcm_A5s.mjs";
|
|
6
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
6
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-BosOjtk8.mjs";
|
|
7
|
+
import { readBody } from "./body-Dhcf1O4J.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-BK7J6Daz.mjs";
|
|
9
9
|
import { Snippet, SnippetCreateInput, snippetView } from "./snippet-DRTklDg3.mjs";
|
|
10
10
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-CPA0hL4E.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-BYWlZPEH.mjs";
|
|
4
4
|
import "./errors-C6w1eZ1F.mjs";
|
|
5
5
|
import "./input-DMcm_A5s.mjs";
|
|
6
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
6
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-BosOjtk8.mjs";
|
|
7
|
+
import { readBody } from "./body-Dhcf1O4J.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-BK7J6Daz.mjs";
|
|
9
9
|
import { Collection, CollectionCreateInput, collectionView } from "./collection-BsiGRKXh.mjs";
|
|
10
10
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-CPA0hL4E.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-BYWlZPEH.mjs";
|
|
4
4
|
import "./errors-C6w1eZ1F.mjs";
|
|
5
5
|
import "./input-DMcm_A5s.mjs";
|
|
6
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
6
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-BosOjtk8.mjs";
|
|
7
|
+
import { readBody } from "./body-Dhcf1O4J.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-BK7J6Daz.mjs";
|
|
9
9
|
import { Segment, SegmentCreateInput, segmentView } from "./segment-CQ5w3M_W.mjs";
|
|
10
10
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-CPA0hL4E.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-BYWlZPEH.mjs";
|
|
4
4
|
import { ConfigError } from "./errors-C6w1eZ1F.mjs";
|
|
5
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
6
|
-
import { REMOTE_SYNC_PATHS } from "./poll-task-
|
|
7
|
-
import "./poll-
|
|
5
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-BosOjtk8.mjs";
|
|
6
|
+
import { REMOTE_SYNC_PATHS } from "./poll-task-Br9sXlAY.mjs";
|
|
7
|
+
import "./poll-txMmreGz.mjs";
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
|
|
10
10
|
//#region src/commands/sync/create-branch.ts
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-CPA0hL4E.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-BYWlZPEH.mjs";
|
|
4
4
|
import "./errors-C6w1eZ1F.mjs";
|
|
5
|
-
import { defineMetabaseCommand, localUrl, outputFlags, parseJson } from "./runtime-
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
7
|
-
import "./poll-
|
|
8
|
-
import { checkDockerReady, readContainerCredentialsFile, requireWorkspaceContainerLocation } from "./docker-
|
|
5
|
+
import { defineMetabaseCommand, localUrl, outputFlags, parseJson } from "./runtime-BosOjtk8.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-B6lwJaSN.mjs";
|
|
7
|
+
import "./poll-txMmreGz.mjs";
|
|
8
|
+
import { checkDockerReady, readContainerCredentialsFile, requireWorkspaceContainerLocation } from "./docker-BZjPjatS.mjs";
|
|
9
9
|
import { WorkspaceCredentials } from "./workspace-credentials-D_ivv5vy.mjs";
|
|
10
10
|
import { z } from "zod";
|
|
11
11
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-CPA0hL4E.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-BYWlZPEH.mjs";
|
|
4
4
|
import "./errors-C6w1eZ1F.mjs";
|
|
5
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
6
|
-
import { SyncTaskOrIdle, fetchCurrentTask, syncTaskIdleView, syncTaskView } from "./poll-task-
|
|
7
|
-
import "./poll-
|
|
5
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-BosOjtk8.mjs";
|
|
6
|
+
import { SyncTaskOrIdle, fetchCurrentTask, syncTaskIdleView, syncTaskView } from "./poll-task-Br9sXlAY.mjs";
|
|
7
|
+
import "./poll-txMmreGz.mjs";
|
|
8
8
|
|
|
9
9
|
//#region src/commands/sync/current-task.ts
|
|
10
10
|
const CurrentTaskResult = SyncTaskOrIdle;
|
|
@@ -66,6 +66,12 @@ const DashboardTab = z.object({
|
|
|
66
66
|
position: z.number().int().optional(),
|
|
67
67
|
entity_id: z.string().nullable().optional()
|
|
68
68
|
}).loose();
|
|
69
|
+
const DashboardTabCompact = DashboardTab.pick({
|
|
70
|
+
id: true,
|
|
71
|
+
dashboard_id: true,
|
|
72
|
+
name: true,
|
|
73
|
+
position: true
|
|
74
|
+
}).strip();
|
|
69
75
|
const Dashboard = z.object({
|
|
70
76
|
id: z.number().int(),
|
|
71
77
|
name: z.string(),
|
|
@@ -93,7 +99,10 @@ const DashboardCompact = Dashboard.pick({
|
|
|
93
99
|
description: true,
|
|
94
100
|
archived: true,
|
|
95
101
|
collection_id: true
|
|
96
|
-
}).strip()
|
|
102
|
+
}).strip().extend({
|
|
103
|
+
dashcards: z.array(DashcardCompact).optional(),
|
|
104
|
+
tabs: z.array(DashboardTabCompact).optional()
|
|
105
|
+
});
|
|
97
106
|
const dashboardView = {
|
|
98
107
|
compactPick: DashboardCompact,
|
|
99
108
|
tableColumns: [
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { defineCommand } from "citty";
|
|
2
|
+
|
|
3
|
+
//#region src/commands/dashboard/index.ts
|
|
4
|
+
var dashboard_default = defineCommand({
|
|
5
|
+
meta: {
|
|
6
|
+
name: "dashboard",
|
|
7
|
+
description: "Manage Metabase dashboards"
|
|
8
|
+
},
|
|
9
|
+
subCommands: {
|
|
10
|
+
list: () => import("./list-DQdAUZNJ.mjs").then((mod) => mod.default),
|
|
11
|
+
get: () => import("./get-DNUPiMmh.mjs").then((mod) => mod.default),
|
|
12
|
+
cards: () => import("./cards-coJN4bZN.mjs").then((mod) => mod.default),
|
|
13
|
+
create: () => import("./create-D2H_tAy9.mjs").then((mod) => mod.default),
|
|
14
|
+
update: () => import("./update-BC5oAGMa.mjs").then((mod) => mod.default),
|
|
15
|
+
"update-dashcard": () => import("./update-dashcard-hd6u-wic.mjs").then((mod) => mod.default)
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
//#endregion
|
|
20
|
+
export { dashboard_default as default };
|
|
@@ -7,9 +7,9 @@ var database_default = defineCommand({
|
|
|
7
7
|
description: "Manage databases provisioned to a workspace"
|
|
8
8
|
},
|
|
9
9
|
subCommands: {
|
|
10
|
-
provision: () => import("./provision-
|
|
11
|
-
update: () => import("./update-
|
|
12
|
-
deprovision: () => import("./deprovision-
|
|
10
|
+
provision: () => import("./provision-yQ_U65mn.mjs").then((mod) => mod.default),
|
|
11
|
+
update: () => import("./update-2K6P3N8w.mjs").then((mod) => mod.default),
|
|
12
|
+
deprovision: () => import("./deprovision-DUOEcrED.mjs").then((mod) => mod.default)
|
|
13
13
|
}
|
|
14
14
|
});
|
|
15
15
|
|