@metabase/cli 0.1.0-alpha.workspaces-commands.68d980f → 0.1.0-alpha.workspaces-commands.80b2b17
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-BqucCiGX.mjs} +3 -3
- package/dist/{add-collection-DGV1rqqR.mjs → add-collection-DYnUVgZo.mjs} +6 -6
- package/dist/{api-key-6_Q5e_K0.mjs → api-key-DqiFwfHf.mjs} +1 -1
- package/dist/{archive-Bpf0QvqP.mjs → archive-1TGgAxcg.mjs} +3 -3
- package/dist/{archive-DHjG2vSi.mjs → archive-DG0VCVCQ.mjs} +3 -3
- package/dist/{archive-C2ziJ31w.mjs → archive-E8nahkCU.mjs} +3 -3
- package/dist/{archive-CYgtaA_I.mjs → archive-uhl-s870.mjs} +3 -3
- package/dist/auth-BwgJWXyH.mjs +19 -0
- package/dist/{body-BAdJj5HJ.mjs → body-Brsr9GPd.mjs} +1 -1
- package/dist/{branches-DkwkHvgF.mjs → branches-BV8k-tAp.mjs} +4 -4
- package/dist/{cancel-UgDP_AM-.mjs → cancel-BAuwBvUG.mjs} +3 -3
- package/dist/{cancel-task-DCV5l_rj.mjs → cancel-task-CSGWE1Xk.mjs} +4 -4
- package/dist/card-C01m8xhO.mjs +20 -0
- package/dist/{cards-BXYJMHYy.mjs → cards-szqvWxGJ.mjs} +4 -4
- package/dist/cli.mjs +22 -22
- package/dist/collection-P6ADc9R3.mjs +19 -0
- package/dist/{create-D4_iBwTY.mjs → create--vi0p8KW.mjs} +3 -3
- package/dist/{create-n7yxR6s2.mjs → create-BCRzAvM-.mjs} +3 -3
- package/dist/{create-DCAvWcNL.mjs → create-BFwMq6f7.mjs} +4 -4
- package/dist/{create-yiHTy9qd.mjs → create-By7kJgQT.mjs} +3 -3
- package/dist/{create-DCEuLMff.mjs → create-C-UY_5UO.mjs} +4 -4
- package/dist/{create-RneHGLFF.mjs → create-CG_qAdUo.mjs} +3 -3
- package/dist/{create-D9zWWm9b.mjs → create-CR7I3bWe.mjs} +3 -3
- package/dist/{create-BUcIJ1nk.mjs → create-DhwxqVwf.mjs} +3 -3
- package/dist/{create-branch-BfSrjGld.mjs → create-branch-ZnI44f-h.mjs} +4 -4
- package/dist/{create-D9CEUvL3.mjs → create-vo7uPJKP.mjs} +3 -3
- package/dist/{create-BLwyolnm.mjs → create-xsykgRhW.mjs} +3 -3
- package/dist/{credentials-BnX6KoeQ.mjs → credentials-DaHDYji4.mjs} +5 -5
- package/dist/{current-task-C60CWYop.mjs → current-task-Bu0sANO6.mjs} +4 -4
- package/dist/{dashboard-C7MhcBfX.mjs → dashboard-CztCJxke.mjs} +10 -1
- package/dist/dashboard-j8xycFUI.mjs +20 -0
- package/dist/{database-BkSdTiyB.mjs → database-CTMSbjcD.mjs} +3 -3
- package/dist/db-BHPFrKDz.mjs +22 -0
- package/dist/{delete-D39mHiYu.mjs → delete-Bhg_ZVaN.mjs} +3 -3
- package/dist/{delete-nxO9ND-q.mjs → delete-DaHvtXiY.mjs} +3 -3
- package/dist/{delete-table-Dk1C3x9k.mjs → delete-table-D9Nk1EcR.mjs} +3 -3
- package/dist/{deprovision-CCokm00M.mjs → deprovision-BUkv6QvW.mjs} +6 -6
- package/dist/{dirty-Da9uKlQp.mjs → dirty-bskqjgxM.mjs} +4 -4
- package/dist/{docker-En_jqSVW.mjs → docker-BH3ZgM8X.mjs} +3 -12
- package/dist/{eid-BQx_tnuC.mjs → eid-C-j8C4fU.mjs} +1 -1
- package/dist/{export-PQ84ihYr.mjs → export-C148vmMO.mjs} +5 -5
- package/dist/field-xPcJNejW.mjs +18 -0
- package/dist/{fields-BhN1M2TD.mjs → fields-B8buJtIm.mjs} +3 -3
- package/dist/{get-CAYdsSX4.mjs → get-4QVOFifd.mjs} +2 -2
- package/dist/{get-DM2UkeKJ.mjs → get-4v0BZc-t.mjs} +3 -3
- package/dist/{get-DpFyct1X.mjs → get-BCGqXIPq.mjs} +3 -3
- package/dist/{get-CScnOuJ-.mjs → get-CpBnUZwG.mjs} +3 -3
- package/dist/{get-D64v79fP.mjs → get-DF_gcqj0.mjs} +4 -4
- package/dist/{get-Dopinaxx.mjs → get-DSkpEq1B.mjs} +3 -3
- package/dist/{get-CbwJfVx1.mjs → get-DTvJO9pW.mjs} +3 -3
- package/dist/{get-BifK1SP6.mjs → get-DU6bgBj5.mjs} +3 -3
- package/dist/{get-DQ0lm-Dx.mjs → get-DdTCMlFK.mjs} +3 -3
- package/dist/{get-CaRX225l.mjs → get-DvZdIqEo.mjs} +2 -2
- package/dist/{get-D6dlsNBD.mjs → get-mkCpPcfT.mjs} +3 -3
- package/dist/{get-run-DpjKXCww.mjs → get-run-B9WJuQXB.mjs} +3 -3
- package/dist/{get-CtsZA_BB.mjs → get-ystbsKwy.mjs} +3 -3
- package/dist/{has-remote-changes-BgbCIv30.mjs → has-remote-changes-w3xtnKKN.mjs} +4 -4
- package/dist/{import-BRC4SYRj.mjs → import-BPYmRYty.mjs} +5 -5
- package/dist/is-dirty-DF3Xq5qO.mjs +10 -0
- package/dist/{is-dirty-BduCa9nf.mjs → is-dirty-DUbSH-Fj.mjs} +2 -2
- package/dist/{items-NE7Z-vuw.mjs → items-B7RHTH7w.mjs} +3 -3
- package/dist/{license-MWU4vLvD.mjs → license-msMkO5-a.mjs} +3 -3
- package/dist/{list-CR1Dkcbk.mjs → list-5bWQaEkJ.mjs} +2 -2
- package/dist/{list-BB9IsaT4.mjs → list-6zA_S9iX.mjs} +2 -2
- package/dist/{list-C-ucaNmG.mjs → list-BD9Jmswp.mjs} +2 -2
- package/dist/{list-jHGjjZdC.mjs → list-BFc86CqB.mjs} +2 -2
- package/dist/{list-Bgt_qxRd.mjs → list-BY6QmcNt.mjs} +2 -2
- package/dist/{list-B_XtS5VX.mjs → list-BxFVxGJK.mjs} +2 -2
- package/dist/{list-DeNHJECx.mjs → list-CLR3hoKB.mjs} +2 -2
- package/dist/{list-BPC7KqBQ.mjs → list-ChLXLMJC.mjs} +2 -2
- package/dist/{list-BMFbKnG1.mjs → list-DHnoy9Ev.mjs} +3 -3
- package/dist/{list-C1wNHDPl.mjs → list-DIHwUIWc.mjs} +2 -2
- package/dist/{list--EFsidRC.mjs → list-DaaVEqTW.mjs} +3 -3
- package/dist/{list-D6KnlTOp.mjs → list-DjVp_1u5.mjs} +2 -2
- package/dist/{list-_4_qW2nQ.mjs → list-Y7rBS4VK.mjs} +2 -2
- package/dist/{login-B30jvHfe.mjs → login-CmF_pjd2.mjs} +10 -3
- package/dist/{logout-bWublBcN.mjs → logout-DALwZk8q.mjs} +3 -3
- package/dist/{logs-DsiDIT90.mjs → logs-CzpMbpFk.mjs} +5 -5
- package/dist/measure-Cx8PcNRI.mjs +19 -0
- package/dist/{metadata-DCVxSKX7.mjs → metadata-D0ggtGp6.mjs} +3 -3
- package/dist/{metadata-DCFEJsKY.mjs → metadata-D5ZVNh69.mjs} +3 -3
- package/dist/{package-Be4_p9f8.mjs → package-CTWKbRR5.mjs} +1 -1
- package/dist/{parse-id-DKRTKFB2.mjs → parse-id-Ca6bGAcg.mjs} +1 -1
- package/dist/{parse-schemas-CtMwPgZe.mjs → parse-schemas-uQAt-gDD.mjs} +1 -1
- package/dist/{poll-BXEPgd4X.mjs → poll-Cn1Nr5Pl.mjs} +1 -1
- package/dist/{poll-task-UMS6aAza.mjs → poll-task-BjJqLBll.mjs} +2 -2
- package/dist/{provision-BDtZZK84.mjs → provision-DYh9vESV.mjs} +8 -8
- package/dist/{ps-DcKt1oHS.mjs → ps-BUonSMn-.mjs} +2 -2
- package/dist/{ps-iON5iNUT.mjs → ps-C2etyNAz.mjs} +5 -5
- package/dist/{query-DtD0dc_V.mjs → query-1DBC2Z68.mjs} +3 -3
- package/dist/{query-7qZ7dWnE.mjs → query-kx5oNHCU.mjs} +3 -3
- package/dist/{remove-D194SUD-.mjs → remove-BG7zWERm.mjs} +5 -5
- package/dist/{remove-UWzVKtfF.mjs → remove-DHUAqV27.mjs} +2 -2
- package/dist/{remove-collection-BUwKxMsH.mjs → remove-collection-D9vlLH3f.mjs} +6 -6
- package/dist/{rescan-values-zYxt5WcO.mjs → rescan-values-Dvqkfe9U.mjs} +3 -3
- package/dist/{run-DwYkAZHU.mjs → run-w_n6pESZ.mjs} +5 -5
- package/dist/{runs-CeHd9FOO.mjs → runs-BTZGIWfv.mjs} +3 -3
- package/dist/{runtime-Dlk-yyFO.mjs → runtime-C3pZKYWJ.mjs} +72 -5
- package/dist/{schema-tables-LZG9R38V.mjs → schema-tables-_xH9x_yJ.mjs} +3 -3
- package/dist/{schemas-ZC7JrOKM.mjs → schemas-qK9k1t5x.mjs} +3 -3
- package/dist/{search-StdHjR5q.mjs → search-D_uT_dIh.mjs} +3 -3
- package/dist/segment-Dx6-fvSJ.mjs +19 -0
- package/dist/{set-Ey8zuk9j.mjs → set-CXfpvjWh.mjs} +2 -2
- package/dist/{set-CgDS1Feo.mjs → set-Du-INOmN.mjs} +3 -3
- package/dist/{setting-D4mR5WMp.mjs → setting-zXeJEuKW.mjs} +3 -3
- package/dist/{setup-DKRzEM6a.mjs → setup-BeGXrMCK.mjs} +3 -3
- package/dist/snippet-BGE_y5l0.mjs +19 -0
- package/dist/{start-15kcQYwC.mjs → start-CemnHYMT.mjs} +42 -23
- package/dist/{stash-CQkpgkAr.mjs → stash-B4iqDei9.mjs} +5 -5
- package/dist/{status-BmYxYGZE.mjs → status-BU6KBkX4.mjs} +5 -5
- package/dist/{status-D0LTLSrI.mjs → status-CfwmzKep.mjs} +2 -2
- package/dist/{status-Dg0qSJtP.mjs → status-rZUhzHtx.mjs} +2 -2
- package/dist/{stop-B9M_LliY.mjs → stop-CRvnlAXn.mjs} +6 -6
- package/dist/{summary-CSGteNEX.mjs → summary-CaatzK3v.mjs} +3 -3
- package/dist/sync-Bx9Iy66T.mjs +28 -0
- package/dist/{sync-schema-BjGQtnol.mjs → sync-schema-DhLi3v8y.mjs} +3 -3
- package/dist/table-iRHsX6DM.mjs +19 -0
- package/dist/transform-DbE5u-t0.mjs +24 -0
- package/dist/transform-job-SWvb21qd.mjs +19 -0
- package/dist/{translate-DRajJsf0.mjs → translate-23bZkSH8.mjs} +3 -3
- package/dist/{tree-eunCOx9U.mjs → tree-B-X7i4bS.mjs} +2 -2
- package/dist/{update-BprFaiqH.mjs → update-BWSckjxb.mjs} +4 -4
- package/dist/{update-CkrxPRXK.mjs → update-B_CgvuPe.mjs} +4 -4
- package/dist/{update-Bhfzszoc.mjs → update-BqK9kPjo.mjs} +5 -5
- package/dist/{update-D1mHRo8M.mjs → update-CrPaxzNT.mjs} +4 -4
- package/dist/{update-CSsRBrV5.mjs → update-Cvu0W1Gc.mjs} +8 -8
- package/dist/{update-B0bpqs4y.mjs → update-DUrtN9gl.mjs} +4 -4
- package/dist/{update-6BC1K7uY.mjs → update-Dttkbveb.mjs} +4 -4
- package/dist/{update-D14Sl_IP.mjs → update-Dy-j9Scf.mjs} +4 -4
- package/dist/{update-dashcard-I13krLAG.mjs → update-dashcard-DczxuWJ6.mjs} +5 -5
- package/dist/{update-C-i8drfb.mjs → update-uBgZZAhv.mjs} +4 -4
- package/dist/{update-BJk9pfiv.mjs → update-y5rpTFYD.mjs} +4 -4
- package/dist/{url-CRyx47hL.mjs → url-B3Gp2vZx.mjs} +5 -5
- package/dist/{values-BhYRwEvd.mjs → values-B1VY8N-9.mjs} +3 -3
- package/dist/{wait-dqZ8MsDQ.mjs → wait-8cMbKe5F.mjs} +5 -5
- package/dist/{wait-Dx7gfA8G.mjs → wait-Bd5-zU25.mjs} +1 -1
- package/dist/{wait-flags-Czo_9Q__.mjs → wait-flags-D-t7OkHC.mjs} +2 -2
- package/dist/workspace-CNkKAM__.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-C3pZKYWJ.mjs";
|
|
3
|
+
import { parseId } from "./parse-id-Ca6bGAcg.mjs";
|
|
4
|
+
import { REMOTE_SYNC_PATHS } from "./poll-task-BjJqLBll.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-CTWKbRR5.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-C3pZKYWJ.mjs";
|
|
6
|
+
import "./parse-id-Ca6bGAcg.mjs";
|
|
7
|
+
import "./poll-task-BjJqLBll.mjs";
|
|
8
|
+
import "./poll-Cn1Nr5Pl.mjs";
|
|
9
|
+
import { SyncSettingsUpdateResult, add_collection_default, setCollectionRemoteSynced, syncSettingsUpdateView } from "./add-collection-BqucCiGX.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-BFwMq6f7.mjs").then((mod) => mod.default) }
|
|
10
10
|
});
|
|
11
11
|
|
|
12
12
|
//#endregion
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-CTWKbRR5.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-C3pZKYWJ.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-Ca6bGAcg.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-CTWKbRR5.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-C3pZKYWJ.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-Ca6bGAcg.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-CTWKbRR5.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-C3pZKYWJ.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-Ca6bGAcg.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-CTWKbRR5.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-C3pZKYWJ.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-Ca6bGAcg.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-CmF_pjd2.mjs").then((m) => m.default),
|
|
12
|
+
status: () => import("./status-rZUhzHtx.mjs").then((m) => m.default),
|
|
13
|
+
list: () => import("./list-6zA_S9iX.mjs").then((m) => m.default),
|
|
14
|
+
logout: () => import("./logout-DALwZk8q.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-C3pZKYWJ.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-CTWKbRR5.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-C3pZKYWJ.mjs";
|
|
6
|
+
import { REMOTE_SYNC_PATHS } from "./poll-task-BjJqLBll.mjs";
|
|
7
|
+
import "./poll-Cn1Nr5Pl.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-CTWKbRR5.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-C3pZKYWJ.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-Ca6bGAcg.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-CTWKbRR5.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-C3pZKYWJ.mjs";
|
|
6
|
+
import { REMOTE_SYNC_PATHS, SyncTask, syncTaskView } from "./poll-task-BjJqLBll.mjs";
|
|
7
|
+
import "./poll-Cn1Nr5Pl.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-DIHwUIWc.mjs").then((mod) => mod.default),
|
|
11
|
+
get: () => import("./get-DU6bgBj5.mjs").then((mod) => mod.default),
|
|
12
|
+
query: () => import("./query-1DBC2Z68.mjs").then((mod) => mod.default),
|
|
13
|
+
create: () => import("./create--vi0p8KW.mjs").then((mod) => mod.default),
|
|
14
|
+
update: () => import("./update-DUrtN9gl.mjs").then((mod) => mod.default),
|
|
15
|
+
archive: () => import("./archive-uhl-s870.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-CTWKbRR5.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-C3pZKYWJ.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-Ca6bGAcg.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-CTWKbRR5.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-BwgJWXyH.mjs").then((mod) => mod.default),
|
|
15
|
+
license: () => import("./license-msMkO5-a.mjs").then((mod) => mod.default),
|
|
16
|
+
db: () => import("./db-BHPFrKDz.mjs").then((mod) => mod.default),
|
|
17
|
+
table: () => import("./table-iRHsX6DM.mjs").then((mod) => mod.default),
|
|
18
|
+
field: () => import("./field-xPcJNejW.mjs").then((mod) => mod.default),
|
|
19
|
+
card: () => import("./card-C01m8xhO.mjs").then((mod) => mod.default),
|
|
20
|
+
dashboard: () => import("./dashboard-j8xycFUI.mjs").then((mod) => mod.default),
|
|
21
|
+
collection: () => import("./collection-P6ADc9R3.mjs").then((mod) => mod.default),
|
|
22
|
+
transform: () => import("./transform-DbE5u-t0.mjs").then((mod) => mod.default),
|
|
23
|
+
"transform-job": () => import("./transform-job-SWvb21qd.mjs").then((mod) => mod.default),
|
|
24
|
+
setting: () => import("./setting-zXeJEuKW.mjs").then((mod) => mod.default),
|
|
25
|
+
search: () => import("./search-D_uT_dIh.mjs").then((mod) => mod.default),
|
|
26
|
+
sync: () => import("./sync-Bx9Iy66T.mjs").then((mod) => mod.default),
|
|
27
|
+
workspace: () => import("./workspace-CNkKAM__.mjs").then((mod) => mod.default),
|
|
28
|
+
setup: () => import("./setup-BeGXrMCK.mjs").then((mod) => mod.default),
|
|
29
|
+
"api-key": () => import("./api-key-DqiFwfHf.mjs").then((mod) => mod.default),
|
|
30
|
+
snippet: () => import("./snippet-BGE_y5l0.mjs").then((mod) => mod.default),
|
|
31
|
+
segment: () => import("./segment-Dx6-fvSJ.mjs").then((mod) => mod.default),
|
|
32
|
+
measure: () => import("./measure-Cx8PcNRI.mjs").then((mod) => mod.default),
|
|
33
|
+
eid: () => import("./eid-C-j8C4fU.mjs").then((mod) => mod.default),
|
|
34
|
+
query: () => import("./query-kx5oNHCU.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-Y7rBS4VK.mjs").then((mod) => mod.default),
|
|
11
|
+
get: () => import("./get-DvZdIqEo.mjs").then((mod) => mod.default),
|
|
12
|
+
items: () => import("./items-B7RHTH7w.mjs").then((mod) => mod.default),
|
|
13
|
+
tree: () => import("./tree-B-X7i4bS.mjs").then((mod) => mod.default),
|
|
14
|
+
create: () => import("./create-BCRzAvM-.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-CTWKbRR5.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-C3pZKYWJ.mjs";
|
|
7
|
+
import { readBody } from "./body-Brsr9GPd.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,10 +1,10 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-CTWKbRR5.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-C3pZKYWJ.mjs";
|
|
7
|
+
import { readBody } from "./body-Brsr9GPd.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-BK7J6Daz.mjs";
|
|
9
9
|
import { Collection, CollectionCreateInput, collectionView } from "./collection-BsiGRKXh.mjs";
|
|
10
10
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-CTWKbRR5.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-C3pZKYWJ.mjs";
|
|
7
|
+
import { readBody } from "./body-Brsr9GPd.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-Ca6bGAcg.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-CTWKbRR5.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-C3pZKYWJ.mjs";
|
|
7
|
+
import { readBody } from "./body-Brsr9GPd.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-BK7J6Daz.mjs";
|
|
9
9
|
import { TransformJob, TransformJobCreateInput, transformJobView } from "./transform-job-DgApCViL.mjs";
|
|
10
10
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-CTWKbRR5.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-C3pZKYWJ.mjs";
|
|
7
|
+
import { readBody } from "./body-Brsr9GPd.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-CTWKbRR5.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-C3pZKYWJ.mjs";
|
|
7
|
+
import { readBody } from "./body-Brsr9GPd.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-CTWKbRR5.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-C3pZKYWJ.mjs";
|
|
7
|
+
import { readBody } from "./body-Brsr9GPd.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-CTWKbRR5.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-C3pZKYWJ.mjs";
|
|
7
|
+
import { readBody } from "./body-Brsr9GPd.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-CTWKbRR5.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-C3pZKYWJ.mjs";
|
|
6
|
+
import { REMOTE_SYNC_PATHS } from "./poll-task-BjJqLBll.mjs";
|
|
7
|
+
import "./poll-Cn1Nr5Pl.mjs";
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
|
|
10
10
|
//#region src/commands/sync/create-branch.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-CTWKbRR5.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-C3pZKYWJ.mjs";
|
|
7
|
+
import { readBody } from "./body-Brsr9GPd.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-CTWKbRR5.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-C3pZKYWJ.mjs";
|
|
7
|
+
import { readBody } from "./body-Brsr9GPd.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,11 +1,11 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-CTWKbRR5.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-C3pZKYWJ.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-Ca6bGAcg.mjs";
|
|
7
|
+
import "./poll-Cn1Nr5Pl.mjs";
|
|
8
|
+
import { checkDockerReady, readContainerCredentialsFile, requireWorkspaceContainerLocation } from "./docker-BH3ZgM8X.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-CTWKbRR5.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-C3pZKYWJ.mjs";
|
|
6
|
+
import { SyncTaskOrIdle, fetchCurrentTask, syncTaskIdleView, syncTaskView } from "./poll-task-BjJqLBll.mjs";
|
|
7
|
+
import "./poll-Cn1Nr5Pl.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-DHnoy9Ev.mjs").then((mod) => mod.default),
|
|
11
|
+
get: () => import("./get-DF_gcqj0.mjs").then((mod) => mod.default),
|
|
12
|
+
cards: () => import("./cards-szqvWxGJ.mjs").then((mod) => mod.default),
|
|
13
|
+
create: () => import("./create-C-UY_5UO.mjs").then((mod) => mod.default),
|
|
14
|
+
update: () => import("./update-BqK9kPjo.mjs").then((mod) => mod.default),
|
|
15
|
+
"update-dashcard": () => import("./update-dashcard-DczxuWJ6.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-DYh9vESV.mjs").then((mod) => mod.default),
|
|
11
|
+
update: () => import("./update-Cvu0W1Gc.mjs").then((mod) => mod.default),
|
|
12
|
+
deprovision: () => import("./deprovision-BUkv6QvW.mjs").then((mod) => mod.default)
|
|
13
13
|
}
|
|
14
14
|
});
|
|
15
15
|
|