@metabase/cli 0.1.0-alpha.workspaces-commands.9af92d7 → 0.1.0-alpha.workspaces-commands.66774cc
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 +66 -31
- package/dist/{api-key-U35bYysN.mjs → api-key-Cy87ZD6J.mjs} +1 -1
- package/dist/{archive-t98qQCTg.mjs → archive-CYnqV6se.mjs} +5 -5
- package/dist/auth-B4W4K7j-.mjs +19 -0
- package/dist/{body-qjVMvNjF.mjs → body-CGoWst5q.mjs} +2 -2
- package/dist/{branches-GR_uFakd.mjs → branches-CLNtwBB2.mjs} +5 -5
- package/dist/{cancel-task-Bx4unmzB.mjs → cancel-task-DqdP2_8k.mjs} +5 -5
- package/dist/{card-2XdaHHSS.mjs → card-BOGKT258.mjs} +22 -1
- package/dist/card-drxclrvk.mjs +20 -0
- package/dist/{cards-CvXNClLR.mjs → cards-Bslh-gVE.mjs} +5 -5
- package/dist/cli.mjs +28 -20
- package/dist/{create-CT8GaHhd.mjs → create-CDa7ycuY.mjs} +22 -9
- package/dist/{create-78zUdOrE.mjs → create-DX5ZlJVx.mjs} +7 -7
- package/dist/{create-klUmZ4qb.mjs → create-Dfk-Cwra.mjs} +6 -6
- package/dist/{create-DRSgnSTg.mjs → create-MW9yGet7.mjs} +6 -6
- package/dist/{create-DOsPeHvv.mjs → create-O5_huJxw.mjs} +7 -7
- package/dist/{create-branch-95PKGg4J.mjs → create-branch-Di9ux42t.mjs} +5 -5
- package/dist/{create-A8ixnCEp.mjs → create-cAHtZgGR.mjs} +6 -6
- package/dist/{credentials-h6gwy6KC.mjs → credentials-CmfhxT15.mjs} +7 -7
- package/dist/{current-task-CKTHTDJ-.mjs → current-task-BT63IEqN.mjs} +5 -5
- package/dist/dashboard-DZvXencG.mjs +20 -0
- package/dist/{dashboard-DVCLGg3X.mjs → dashboard-nYIzB6gy.mjs} +3 -1
- package/dist/{database-VBWFKoFw.mjs → database-Zcv6o9HD.mjs} +3 -3
- package/dist/{db-BNIiulL8.mjs → db-CxjyjJjE.mjs} +2 -2
- package/dist/{delete-Dgw7tuwF.mjs → delete-BOqKxL9h.mjs} +6 -6
- package/dist/{delete-SpvnjwpH.mjs → delete-C5R9Ovcn.mjs} +6 -6
- package/dist/{delete-runtime-ZDxlvZa6.mjs → delete-runtime-BIDRhI6e.mjs} +3 -5
- package/dist/{delete-table-BXmFReAx.mjs → delete-table-CHwD8KMd.mjs} +6 -6
- package/dist/{deprovision-Cay-ixJs.mjs → deprovision-AMoA4GJ-.mjs} +10 -10
- package/dist/{dirty-CNjg0YSW.mjs → dirty-DGu-zGzj.mjs} +5 -5
- package/dist/{docker-D2GAMpHR.mjs → docker-JpSqfyrV.mjs} +22 -8
- package/dist/{eid-CLOyMi0C.mjs → eid-DOpqY6Xr.mjs} +1 -1
- package/dist/{export-D2PP3RlE.mjs → export-CM4xVQtO.mjs} +25 -20
- package/dist/{field-D9nztsQP.mjs → field-CvvYmcqL.mjs} +1 -1
- package/dist/{get-DtsLPlhf.mjs → get-B2gUIWWn.mjs} +5 -5
- package/dist/{get-CW0uHmFb.mjs → get-BCftPMeY.mjs} +5 -5
- package/dist/{get-BzfjbJ1f.mjs → get-BLDZmnI6.mjs} +6 -6
- package/dist/{get-Bc0yqaS1.mjs → get-B_TDKynl.mjs} +5 -5
- package/dist/{get-B32KbqqV.mjs → get-Bb0zpzfP.mjs} +5 -5
- package/dist/{get-qXYTmiCW.mjs → get-BmNatkw0.mjs} +5 -5
- package/dist/{get-gZ5sQoS9.mjs → get-C9hLsWZN.mjs} +6 -6
- package/dist/{get-B6PHgITW.mjs → get-CadG65Mw.mjs} +5 -5
- package/dist/{has-remote-changes-BjdywTVP.mjs → has-remote-changes-jcUyn4BL.mjs} +5 -5
- package/dist/{import-CVOFq6HN.mjs → import-DwxLbBqY.mjs} +6 -6
- package/dist/{input-DkgCMNA9.mjs → input-DMcm_A5s.mjs} +1 -0
- package/dist/{is-dirty-DgxNJz79.mjs → is-dirty-Bft_2Beg.mjs} +3 -3
- package/dist/is-dirty-DfpvMy-Z.mjs +10 -0
- package/dist/{license-B2eNHmdg.mjs → license-CEf37q8h.mjs} +3 -3
- package/dist/{list-AcUuhDxS.mjs → list-B-etmnDB.mjs} +4 -4
- package/dist/{list-B6LmdzL6.mjs → list-C4mEhTuI.mjs} +4 -4
- package/dist/{list-Cw0Geehz.mjs → list-C9__j3X6.mjs} +4 -4
- package/dist/{list-CW20Zfq-.mjs → list-D79qqG6n.mjs} +4 -4
- package/dist/{list-DEW7ZHzy.mjs → list-WabdLE4S.mjs} +4 -4
- package/dist/list-X1BvRpvu.mjs +55 -0
- package/dist/{list-B0durHcU.mjs → list-YEYFjczS.mjs} +4 -4
- package/dist/{list-B9ppD-U5.mjs → list-lMXe0ihm.mjs} +4 -4
- package/dist/{list-bSb_Y5k9.mjs → list-wflhJJRp.mjs} +6 -6
- package/dist/{login-ChQ9J6Ne.mjs → login-BvZe_SH8.mjs} +5 -5
- package/dist/{logout-Cit2O74l.mjs → logout-DS_iumfz.mjs} +6 -7
- package/dist/{logs-Ca_YA7A6.mjs → logs-B-UEyFH2.mjs} +5 -5
- package/dist/{manifest-IMg51yb7.mjs → manifest-QVMj24rH.mjs} +1 -1
- package/dist/{package-CVNZnqz9.mjs → package-DHwFgisf.mjs} +1 -1
- package/dist/{parse-id-YyyUbzvS.mjs → parse-id-BVuB-dYb.mjs} +1 -1
- package/dist/{poll-CxWRi3iY.mjs → poll-BkPMyRGr.mjs} +1 -1
- package/dist/{poll-task-DdXgrDJf.mjs → poll-task-8OfFZFlk.mjs} +3 -3
- package/dist/{provision-CV30W4mk.mjs → provision-9JcwXfaO.mjs} +10 -10
- package/dist/{ps-BR36xoRT.mjs → ps-BtV5q-v0.mjs} +3 -3
- package/dist/ps-CA2yc6af.mjs +10 -0
- package/dist/{query-Dnlo_5UK.mjs → query-CwGBNXRD.mjs} +5 -5
- package/dist/{query-DmeLeLlh.mjs → query-D6MUf1bB.mjs} +7 -7
- package/dist/{remove-ChoQTtcC.mjs → remove-D6dNO_JR.mjs} +6 -7
- package/dist/{remove-DfVVf1N9.mjs → remove-DRzzmp4L.mjs} +8 -8
- package/dist/{render-CZNR2MNK.mjs → render-BYWlZPEH.mjs} +7 -4
- package/dist/{run-BiXybcsl.mjs → run-CvcTc0Ij.mjs} +7 -7
- package/dist/{runtime-DR8NwmQU.mjs → runtime-Dm9yLeT_.mjs} +73 -3
- package/dist/{search-0cjOmsQu.mjs → search-BOESDli6.mjs} +4 -4
- package/dist/{set-CLsmPD8_.mjs → set-HliJC97V.mjs} +5 -5
- package/dist/{set-BeVw7OX5.mjs → set-sr3YCFCC.mjs} +7 -7
- package/dist/{setting-DEhllKkK.mjs → setting-DRiJcVn4.mjs} +3 -3
- package/dist/{setup-BYL5Yagu.mjs → setup-Cw7SZEte.mjs} +5 -5
- package/dist/{start-BdAhhZYt.mjs → start-BlTG8xm9.mjs} +18 -11
- package/dist/{stash-Ca63-mCs.mjs → stash-DtwiEyLc.mjs} +6 -6
- package/dist/{status-Bt6rZDLa.mjs → status-CQUYPa2m.mjs} +3 -3
- package/dist/{status-cZiC8-t_.mjs → status-CqwBiAEw.mjs} +6 -6
- package/dist/{status-D7Ihw-lN.mjs → status-Snec_vKv.mjs} +3 -3
- package/dist/{stop-BDeCLqh0.mjs → stop-ap-ezh_7.mjs} +7 -7
- package/dist/sync-BVrrn4wX.mjs +26 -0
- package/dist/{table-CjnruP5H.mjs → table-CISZRlK9.mjs} +2 -2
- package/dist/{table-BbNgtqbd.mjs → table-Dx6KCUVC.mjs} +1 -1
- package/dist/transform-job-Bo1rtoXO.mjs +19 -0
- package/dist/transform-oFy2JltU.mjs +21 -0
- package/dist/{translate-oHz4-5o0.mjs → translate-DsD_bI78.mjs} +5 -5
- package/dist/update-BS9zqDT2.mjs +57 -0
- package/dist/{update-WFBs9Nfq.mjs → update-CAhzSUHT.mjs} +8 -8
- package/dist/{update-Dtu0CHTJ.mjs → update-DeHlwttq.mjs} +7 -7
- package/dist/{update-BqI8hYNO.mjs → update-OAfGXSV1.mjs} +10 -10
- package/dist/{update-dashcard-BSf1-SfK.mjs → update-dashcard-H9G6T3zi.mjs} +7 -7
- package/dist/{update-CLXVmkyr.mjs → update-kh0X4VGX.mjs} +7 -7
- package/dist/{url-B0Bc70KV.mjs → url-vVkeIPup.mjs} +6 -6
- package/dist/{validate-query-DE4UouY3.mjs → validate-query-D0aAFTUs.mjs} +49 -3
- package/dist/{wait-DFI3pf6P.mjs → wait-DR3UCWim.mjs} +2 -2
- package/dist/{wait-Dkbfo1eS.mjs → wait-GYWtN1mb.mjs} +6 -6
- package/dist/{wait-flags-BIVgwvUI.mjs → wait-flags-DqDOwv0J.mjs} +2 -2
- package/dist/workspace-DmuFl7Iw.mjs +24 -0
- package/package.json +1 -1
- package/dist/auth-Pmzzbl9X.mjs +0 -18
- package/dist/card-CY60jlXc.mjs +0 -19
- package/dist/dashboard-BVEiysxL.mjs +0 -20
- package/dist/is-dirty-79hBpoVR.mjs +0 -10
- package/dist/ps-B9-TFn7r.mjs +0 -10
- package/dist/sync-BZPts11d.mjs +0 -26
- package/dist/transform-BXF9B-hF.mjs +0 -21
- package/dist/transform-job-DDsjt-4N.mjs +0 -19
- package/dist/workspace-Bv7qoaJi.mjs +0 -24
- /package/dist/{database-B9-7QAXE.mjs → database-CqVM76jo.mjs} +0 -0
- /package/dist/{field-D_g4xvH9.mjs → field-uWPctJqU.mjs} +0 -0
- /package/dist/{key-CpWh7W8M.mjs → key-DVHK0_ny.mjs} +0 -0
- /package/dist/{prompt-D8p00XDp.mjs → prompt-k9s4Ntk5.mjs} +0 -0
- /package/dist/{setting-Bm84ixxW.mjs → setting-DwFQyJPi.mjs} +0 -0
- /package/dist/{transform-CRRW0mFp.mjs → transform-h405NiRC.mjs} +0 -0
- /package/dist/{transform-job-BtCoVYsb.mjs → transform-job-oBa_OKqk.mjs} +0 -0
- /package/dist/{workspace-C3tGVQ6_.mjs → workspace-PL1je3wr.mjs} +0 -0
- /package/dist/{workspace-credentials-BxrU2xZb.mjs → workspace-credentials-DT-YilSB.mjs} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-DHwFgisf.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderList } from "./render-
|
|
3
|
+
import { renderList } from "./render-BYWlZPEH.mjs";
|
|
4
4
|
import "./errors-C6w1eZ1F.mjs";
|
|
5
|
-
import { connectionFlags, defineMetabaseCommand, listEnvelopeSchema, outputFlags, profileFlag } from "./runtime-
|
|
6
|
-
import { Database, DatabaseCompact, databaseView } from "./database-
|
|
5
|
+
import { connectionFlags, defineMetabaseCommand, listEnvelopeSchema, outputFlags, profileFlag } from "./runtime-Dm9yLeT_.mjs";
|
|
6
|
+
import { Database, DatabaseCompact, databaseView } from "./database-CqVM76jo.mjs";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
|
|
9
9
|
//#region src/commands/db/list.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-DHwFgisf.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderList } from "./render-
|
|
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 { Workspace, WorkspaceCompact, workspaceView } from "./workspace-
|
|
5
|
+
import { connectionFlags, defineMetabaseCommand, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./runtime-Dm9yLeT_.mjs";
|
|
6
|
+
import { Workspace, WorkspaceCompact, workspaceView } from "./workspace-PL1je3wr.mjs";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
|
|
9
9
|
//#region src/commands/workspace/list.ts
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import "./package-DHwFgisf.mjs";
|
|
2
|
+
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
+
import { renderList } from "./render-BYWlZPEH.mjs";
|
|
4
|
+
import "./errors-C6w1eZ1F.mjs";
|
|
5
|
+
import { defineMetabaseCommand, listEnvelopeSchema, listProfileNames, originOnly, outputFlags, readProfile, wrapList } from "./runtime-Dm9yLeT_.mjs";
|
|
6
|
+
import { z } from "zod";
|
|
7
|
+
|
|
8
|
+
//#region src/commands/auth/list.ts
|
|
9
|
+
const AuthProfile = z.object({
|
|
10
|
+
profile: z.string(),
|
|
11
|
+
url: z.string().nullable(),
|
|
12
|
+
present: z.boolean()
|
|
13
|
+
});
|
|
14
|
+
const AuthProfileListEnvelope = listEnvelopeSchema(AuthProfile);
|
|
15
|
+
const authProfileView = {
|
|
16
|
+
compactPick: AuthProfile,
|
|
17
|
+
tableColumns: [
|
|
18
|
+
{
|
|
19
|
+
key: "profile",
|
|
20
|
+
label: "Profile"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
key: "url",
|
|
24
|
+
label: "URL"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
key: "present",
|
|
28
|
+
label: "Authenticated"
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
};
|
|
32
|
+
var list_default = defineMetabaseCommand({
|
|
33
|
+
meta: {
|
|
34
|
+
name: "list",
|
|
35
|
+
description: "List configured authentication profiles"
|
|
36
|
+
},
|
|
37
|
+
args: { ...outputFlags },
|
|
38
|
+
outputSchema: AuthProfileListEnvelope,
|
|
39
|
+
examples: ["metabase auth list", "metabase auth list --json"],
|
|
40
|
+
async run({ ctx }) {
|
|
41
|
+
const names = await listProfileNames();
|
|
42
|
+
const items = await Promise.all(names.map(async (name) => {
|
|
43
|
+
const profile = await readProfile(name);
|
|
44
|
+
return {
|
|
45
|
+
profile: name,
|
|
46
|
+
url: profile === null ? null : originOnly(profile.url),
|
|
47
|
+
present: profile !== null
|
|
48
|
+
};
|
|
49
|
+
}));
|
|
50
|
+
renderList(wrapList(items), authProfileView, ctx);
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
//#endregion
|
|
55
|
+
export { list_default as default };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-DHwFgisf.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderList } from "./render-
|
|
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 { Card, CardCompact, cardView } from "./card-
|
|
5
|
+
import { connectionFlags, defineMetabaseCommand, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./runtime-Dm9yLeT_.mjs";
|
|
6
|
+
import { Card, CardCompact, cardView } from "./card-BOGKT258.mjs";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
|
|
9
9
|
//#region src/commands/card/list.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-DHwFgisf.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderList } from "./render-
|
|
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 { Setting, SettingCompact, settingView } from "./setting-
|
|
5
|
+
import { connectionFlags, defineMetabaseCommand, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./runtime-Dm9yLeT_.mjs";
|
|
6
|
+
import { Setting, SettingCompact, settingView } from "./setting-DwFQyJPi.mjs";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
|
|
9
9
|
//#region src/commands/setting/list.ts
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-DHwFgisf.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderList } from "./render-
|
|
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 "./field-
|
|
8
|
-
import { Table, TableCompact, tableView } from "./table-
|
|
5
|
+
import { connectionFlags, defineMetabaseCommand, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./runtime-Dm9yLeT_.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-BVuB-dYb.mjs";
|
|
7
|
+
import "./field-uWPctJqU.mjs";
|
|
8
|
+
import { Table, TableCompact, tableView } from "./table-Dx6KCUVC.mjs";
|
|
9
9
|
import { z } from "zod";
|
|
10
10
|
|
|
11
11
|
//#region src/commands/table/list.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-DHwFgisf.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderItem, warn } from "./render-
|
|
3
|
+
import { renderItem, warn } from "./render-BYWlZPEH.mjs";
|
|
4
4
|
import { ConfigError, MetabaseError, errorMessage } from "./errors-C6w1eZ1F.mjs";
|
|
5
|
-
import { readInput } from "./input-
|
|
6
|
-
import { HttpError, connectionFlags, createClient, defineMetabaseCommand, normalizeUrl, outputFlags, profileFlag, readEnvCredentials, resolveProfileName, writeProfile } from "./runtime-
|
|
7
|
-
import { promptPassword, promptText } from "./prompt-
|
|
5
|
+
import { readInput } from "./input-DMcm_A5s.mjs";
|
|
6
|
+
import { HttpError, connectionFlags, createClient, defineMetabaseCommand, normalizeUrl, outputFlags, profileFlag, readEnvCredentials, resolveProfileName, writeProfile } from "./runtime-Dm9yLeT_.mjs";
|
|
7
|
+
import { promptPassword, promptText } from "./prompt-k9s4Ntk5.mjs";
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
|
|
10
10
|
//#region src/domain/user.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-DHwFgisf.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderItem } from "./render-
|
|
4
|
-
import
|
|
5
|
-
import { clearProfile, defineMetabaseCommand, outputFlags, profileFlag, resolveProfileName } from "./runtime-
|
|
6
|
-
import { promptConfirm } from "./prompt-
|
|
3
|
+
import { renderItem } from "./render-BYWlZPEH.mjs";
|
|
4
|
+
import "./errors-C6w1eZ1F.mjs";
|
|
5
|
+
import { clearProfile, defineMetabaseCommand, outputFlags, profileFlag, resolveProfileName } from "./runtime-Dm9yLeT_.mjs";
|
|
6
|
+
import { promptConfirm } from "./prompt-k9s4Ntk5.mjs";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
|
|
9
9
|
//#region src/commands/auth/logout.ts
|
|
@@ -47,8 +47,7 @@ var logout_default = defineMetabaseCommand({
|
|
|
47
47
|
examples: ["metabase auth logout --yes", "metabase auth logout --profile staging --yes"],
|
|
48
48
|
async run({ args, ctx }) {
|
|
49
49
|
const profileName = resolveProfileName(args.profile);
|
|
50
|
-
if (!args.yes) {
|
|
51
|
-
if (!process.stdin.isTTY) throw new ConfigError("--yes required to clear credentials non-interactively");
|
|
50
|
+
if (!args.yes && process.stdin.isTTY === true) {
|
|
52
51
|
const ok = await promptConfirm({
|
|
53
52
|
message: `Clear stored credentials for profile "${profileName}"?`,
|
|
54
53
|
initialValue: false
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-DHwFgisf.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { ConfigError } from "./errors-C6w1eZ1F.mjs";
|
|
4
|
-
import { defineMetabaseCommand, outputFlags, parseInteger } from "./runtime-
|
|
5
|
-
import { parseId } from "./parse-id-
|
|
6
|
-
import "./poll-
|
|
7
|
-
import { checkDockerReady, containerLifecycleStatus, containerNameFor, streamLogs } from "./docker-
|
|
4
|
+
import { defineMetabaseCommand, outputFlags, parseInteger } from "./runtime-Dm9yLeT_.mjs";
|
|
5
|
+
import { parseId } from "./parse-id-BVuB-dYb.mjs";
|
|
6
|
+
import "./poll-BkPMyRGr.mjs";
|
|
7
|
+
import { checkDockerReady, containerLifecycleStatus, containerNameFor, streamLogs } from "./docker-JpSqfyrV.mjs";
|
|
8
8
|
|
|
9
9
|
//#region src/commands/workspace/logs.ts
|
|
10
10
|
const DEFAULT_TAIL = 200;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getMetabaseAugment } from "./command-augment-D9pI9Vbh.mjs";
|
|
2
|
-
import { writeJson } from "./render-
|
|
2
|
+
import { writeJson } from "./render-BYWlZPEH.mjs";
|
|
3
3
|
import "./errors-C6w1eZ1F.mjs";
|
|
4
4
|
import { defineCommand } from "citty";
|
|
5
5
|
import { z } from "zod";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TimeoutError } from "./errors-C6w1eZ1F.mjs";
|
|
2
|
-
import { combineAborts, throwIfAborted } from "./runtime-
|
|
2
|
+
import { combineAborts, throwIfAborted } from "./runtime-Dm9yLeT_.mjs";
|
|
3
3
|
import { setTimeout } from "node:timers/promises";
|
|
4
4
|
|
|
5
5
|
//#region src/runtime/poll.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { DEFAULT_INTERVAL_MS, DEFAULT_TIMEOUT_MS, pollUntil } from "./poll-
|
|
1
|
+
import { parseJsonOrPlain } from "./runtime-Dm9yLeT_.mjs";
|
|
2
|
+
import { DEFAULT_INTERVAL_MS, DEFAULT_TIMEOUT_MS, pollUntil } from "./poll-BkPMyRGr.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
|
|
5
5
|
//#region src/domain/remote-sync.ts
|
|
@@ -173,7 +173,7 @@ async function fetchOptionalParsed(client, path, schema) {
|
|
|
173
173
|
});
|
|
174
174
|
if (response.status === 204) return null;
|
|
175
175
|
const text = await response.text();
|
|
176
|
-
return
|
|
176
|
+
return parseJsonOrPlain(text, response.headers.get("content-type"), schema, { source: response.url });
|
|
177
177
|
}
|
|
178
178
|
async function fetchCurrentTask(client) {
|
|
179
179
|
return await fetchOptionalParsed(client, REMOTE_SYNC_PATHS.currentTask, SyncTask);
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-DHwFgisf.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderItem } from "./render-
|
|
3
|
+
import { renderItem } from "./render-BYWlZPEH.mjs";
|
|
4
4
|
import { ConfigError } from "./errors-C6w1eZ1F.mjs";
|
|
5
|
-
import "./input-
|
|
6
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, parseCsv, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
5
|
+
import "./input-DMcm_A5s.mjs";
|
|
6
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, parseCsv, profileFlag } from "./runtime-Dm9yLeT_.mjs";
|
|
7
|
+
import { readBody } from "./body-CGoWst5q.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-BK7J6Daz.mjs";
|
|
9
|
-
import { parseId } from "./parse-id-
|
|
10
|
-
import "./poll-
|
|
11
|
-
import { parseWaitFlags, waitFlags } from "./wait-flags-
|
|
12
|
-
import { Workspace, WorkspaceProvisionInput, workspaceView } from "./workspace-
|
|
13
|
-
import { waitForDatabaseProvisioned } from "./wait-
|
|
9
|
+
import { parseId } from "./parse-id-BVuB-dYb.mjs";
|
|
10
|
+
import "./poll-BkPMyRGr.mjs";
|
|
11
|
+
import { parseWaitFlags, waitFlags } from "./wait-flags-DqDOwv0J.mjs";
|
|
12
|
+
import { Workspace, WorkspaceProvisionInput, workspaceView } from "./workspace-PL1je3wr.mjs";
|
|
13
|
+
import { waitForDatabaseProvisioned } from "./wait-DR3UCWim.mjs";
|
|
14
14
|
|
|
15
15
|
//#region src/commands/workspace/database/provision.ts
|
|
16
16
|
var provision_default = defineMetabaseCommand({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { renderList } from "./render-
|
|
2
|
-
import { defineMetabaseCommand, listEnvelopeSchema, localUrl, outputFlags, wrapList } from "./runtime-
|
|
3
|
-
import { CONTAINER_STATES, checkDockerReady, listWorkspaceContainers } from "./docker-
|
|
1
|
+
import { renderList } from "./render-BYWlZPEH.mjs";
|
|
2
|
+
import { defineMetabaseCommand, listEnvelopeSchema, localUrl, outputFlags, wrapList } from "./runtime-Dm9yLeT_.mjs";
|
|
3
|
+
import { CONTAINER_STATES, checkDockerReady, listWorkspaceContainers } from "./docker-JpSqfyrV.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
|
|
6
6
|
//#region src/commands/workspace/ps.ts
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import "./package-DHwFgisf.mjs";
|
|
2
|
+
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
+
import "./render-BYWlZPEH.mjs";
|
|
4
|
+
import "./errors-C6w1eZ1F.mjs";
|
|
5
|
+
import "./runtime-Dm9yLeT_.mjs";
|
|
6
|
+
import "./poll-BkPMyRGr.mjs";
|
|
7
|
+
import "./docker-JpSqfyrV.mjs";
|
|
8
|
+
import { LocalWorkspace, LocalWorkspaceCompact, LocalWorkspaceListEnvelope, LocalWorkspaceState, localWorkspaceView, ps_default } from "./ps-BtV5q-v0.mjs";
|
|
9
|
+
|
|
10
|
+
export { ps_default as default };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-DHwFgisf.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderItem } from "./render-
|
|
3
|
+
import { renderItem } from "./render-BYWlZPEH.mjs";
|
|
4
4
|
import { ConfigError } from "./errors-C6w1eZ1F.mjs";
|
|
5
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, parseJson, profileFlag } from "./runtime-
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
7
|
-
import { CardQueryResult, cardQueryView } from "./card-
|
|
5
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, parseJson, profileFlag } from "./runtime-Dm9yLeT_.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-BVuB-dYb.mjs";
|
|
7
|
+
import { CardQueryResult, cardQueryView } from "./card-BOGKT258.mjs";
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
import { Writable } from "node:stream";
|
|
10
10
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-DHwFgisf.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderItem, writeJson } from "./render-
|
|
3
|
+
import { renderItem, writeJson } from "./render-BYWlZPEH.mjs";
|
|
4
4
|
import { ConfigError } from "./errors-C6w1eZ1F.mjs";
|
|
5
|
-
import "./input-
|
|
6
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
5
|
+
import "./input-DMcm_A5s.mjs";
|
|
6
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-Dm9yLeT_.mjs";
|
|
7
|
+
import { readBody } from "./body-CGoWst5q.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-BK7J6Daz.mjs";
|
|
9
|
-
import { CardQueryResult, cardQueryView } from "./card-
|
|
10
|
-
import { getQuerySchemaBundle, skipValidateFlag, validateExternalQuery, validateInternalQuery } from "./validate-query-
|
|
9
|
+
import { CardQueryResult, cardQueryView } from "./card-BOGKT258.mjs";
|
|
10
|
+
import { getQuerySchemaBundle, skipValidateFlag, validateExternalQuery, validateInternalQuery } from "./validate-query-D0aAFTUs.mjs";
|
|
11
11
|
import { z } from "zod";
|
|
12
12
|
|
|
13
13
|
//#region src/commands/query.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-DHwFgisf.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderItem } from "./render-
|
|
4
|
-
import
|
|
5
|
-
import { clearLicense, defineMetabaseCommand, outputFlags } from "./runtime-
|
|
6
|
-
import { promptConfirm } from "./prompt-
|
|
3
|
+
import { renderItem } from "./render-BYWlZPEH.mjs";
|
|
4
|
+
import "./errors-C6w1eZ1F.mjs";
|
|
5
|
+
import { clearLicense, defineMetabaseCommand, outputFlags } from "./runtime-Dm9yLeT_.mjs";
|
|
6
|
+
import { promptConfirm } from "./prompt-k9s4Ntk5.mjs";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
|
|
9
9
|
//#region src/commands/license/remove.ts
|
|
@@ -37,8 +37,7 @@ var remove_default = defineMetabaseCommand({
|
|
|
37
37
|
outputSchema: LicenseRemoveResult,
|
|
38
38
|
examples: ["metabase license remove --yes"],
|
|
39
39
|
async run({ args, ctx }) {
|
|
40
|
-
if (!args.yes) {
|
|
41
|
-
if (!process.stdin.isTTY) throw new ConfigError("--yes required to remove license non-interactively");
|
|
40
|
+
if (!args.yes && process.stdin.isTTY === true) {
|
|
42
41
|
const ok = await promptConfirm({
|
|
43
42
|
message: "Remove stored license token?",
|
|
44
43
|
initialValue: false
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-DHwFgisf.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderItem } from "./render-
|
|
3
|
+
import { renderItem } from "./render-BYWlZPEH.mjs";
|
|
4
4
|
import "./errors-C6w1eZ1F.mjs";
|
|
5
|
-
import { defineMetabaseCommand, outputFlags } from "./runtime-
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
7
|
-
import { promptConfirm } from "./prompt-
|
|
8
|
-
import "./poll-
|
|
9
|
-
import { checkDockerReady, containerNameFor, removeContainer, removeVolume, volumeNameFor } from "./docker-
|
|
5
|
+
import { defineMetabaseCommand, outputFlags } from "./runtime-Dm9yLeT_.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-BVuB-dYb.mjs";
|
|
7
|
+
import { promptConfirm } from "./prompt-k9s4Ntk5.mjs";
|
|
8
|
+
import "./poll-BkPMyRGr.mjs";
|
|
9
|
+
import { checkDockerReady, containerNameFor, removeContainer, removeVolume, volumeNameFor } from "./docker-JpSqfyrV.mjs";
|
|
10
10
|
import { z } from "zod";
|
|
11
11
|
|
|
12
12
|
//#region src/commands/workspace/remove.ts
|
|
@@ -77,7 +77,7 @@ var remove_default = defineMetabaseCommand({
|
|
|
77
77
|
const volumeName = volumeNameFor(workspaceId);
|
|
78
78
|
const shouldRemoveVolume = args["keep-volume"] !== true;
|
|
79
79
|
await checkDockerReady();
|
|
80
|
-
if (!args.yes) {
|
|
80
|
+
if (!args.yes && process.stdin.isTTY === true) {
|
|
81
81
|
const confirmed = await promptConfirm({ message: shouldRemoveVolume ? `Remove container ${containerName} and its app-db volume ${volumeName}?` : `Remove container ${containerName}? (volume ${volumeName} will be kept)` });
|
|
82
82
|
if (!confirmed) return;
|
|
83
83
|
}
|
|
@@ -42,6 +42,12 @@ function itemOversizeNotice(bytes) {
|
|
|
42
42
|
return `… item is ${bytes} bytes (exceeds --max-bytes); narrow with --fields, or pass --max-bytes 0`;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
+
//#endregion
|
|
46
|
+
//#region src/runtime/predicates.ts
|
|
47
|
+
function isPlainObject(value) {
|
|
48
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
49
|
+
}
|
|
50
|
+
|
|
45
51
|
//#endregion
|
|
46
52
|
//#region src/output/projection.ts
|
|
47
53
|
function applyProjection(value, view, full, fields) {
|
|
@@ -89,9 +95,6 @@ function setPath(target, parts, value) {
|
|
|
89
95
|
}
|
|
90
96
|
}
|
|
91
97
|
}
|
|
92
|
-
function isPlainObject(value) {
|
|
93
|
-
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
94
|
-
}
|
|
95
98
|
|
|
96
99
|
//#endregion
|
|
97
100
|
//#region src/output/table.ts
|
|
@@ -179,4 +182,4 @@ function emitItemOversizeNotice(body, maxBytes) {
|
|
|
179
182
|
}
|
|
180
183
|
|
|
181
184
|
//#endregion
|
|
182
|
-
export { renderItem, renderList, warn, writeJson };
|
|
185
|
+
export { isPlainObject, renderItem, renderList, warn, writeJson };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-DHwFgisf.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderItem } from "./render-
|
|
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-
|
|
7
|
-
import { pollUntil } from "./poll-
|
|
8
|
-
import { TransformRun } from "./transform-
|
|
9
|
-
import { parseWaitFlags, waitFlags } from "./wait-flags-
|
|
5
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-Dm9yLeT_.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-BVuB-dYb.mjs";
|
|
7
|
+
import { pollUntil } from "./poll-BkPMyRGr.mjs";
|
|
8
|
+
import { TransformRun } from "./transform-h405NiRC.mjs";
|
|
9
|
+
import { parseWaitFlags, waitFlags } from "./wait-flags-DqDOwv0J.mjs";
|
|
10
10
|
import { z } from "zod";
|
|
11
11
|
|
|
12
12
|
//#region src/commands/transform/run.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { package_default } from "./package-
|
|
1
|
+
import { package_default } from "./package-DHwFgisf.mjs";
|
|
2
2
|
import { setMetabaseAugment } from "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { AbortError, ConfigError, MetabaseError, NetworkError, TimeoutError, ValidationError, errorMessage, isNotFoundError, toMetabaseError } from "./errors-C6w1eZ1F.mjs";
|
|
4
4
|
import { defineCommand } from "citty";
|
|
@@ -39,6 +39,12 @@ function parseJsonResult(input, schema, opts = {}) {
|
|
|
39
39
|
value: parsed.data
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
|
+
const JSON_CONTENT_TYPE$1 = "application/json";
|
|
43
|
+
function parseJsonOrPlain(text, contentType, schema, opts = {}) {
|
|
44
|
+
const isJson = contentType !== null && contentType.includes(JSON_CONTENT_TYPE$1);
|
|
45
|
+
const payload = isJson ? text : JSON.stringify(text);
|
|
46
|
+
return parseJson(payload, schema, opts);
|
|
47
|
+
}
|
|
42
48
|
|
|
43
49
|
//#endregion
|
|
44
50
|
//#region src/output/types.ts
|
|
@@ -138,6 +144,7 @@ function configDir() {
|
|
|
138
144
|
const CredentialsFileSchema = z.record(z.string(), z.string());
|
|
139
145
|
const KEYRING_SERVICE = "metabase-cli";
|
|
140
146
|
const CREDENTIALS_FILE = "credentials.json";
|
|
147
|
+
const PROFILE_INDEX_FILE = "profiles.json";
|
|
141
148
|
const DEFAULT_PROFILE = "default";
|
|
142
149
|
const CREDENTIALS_FILE_MODE = 384;
|
|
143
150
|
const CREDENTIALS_DIR_MODE = 448;
|
|
@@ -146,9 +153,14 @@ const account = {
|
|
|
146
153
|
profileApiKey: (profile) => `profile:${profile}:apiKey`,
|
|
147
154
|
license: "license"
|
|
148
155
|
};
|
|
156
|
+
const ProfileIndexSchema = z.array(z.string());
|
|
157
|
+
const FILE_STORE_PROFILE_URL_PATTERN = /^profile:(.+):url$/;
|
|
149
158
|
function fallbackFilePath() {
|
|
150
159
|
return join(configDir(), CREDENTIALS_FILE);
|
|
151
160
|
}
|
|
161
|
+
function profileIndexPath() {
|
|
162
|
+
return join(configDir(), PROFILE_INDEX_FILE);
|
|
163
|
+
}
|
|
152
164
|
function keyringEnabled() {
|
|
153
165
|
return process.env["METABASE_CLI_DISABLE_KEYRING"] !== "1";
|
|
154
166
|
}
|
|
@@ -268,13 +280,71 @@ async function readProfile(name = DEFAULT_PROFILE) {
|
|
|
268
280
|
}
|
|
269
281
|
async function writeProfile(profile, name = DEFAULT_PROFILE) {
|
|
270
282
|
await credentials.set(account.profileUrl(name), profile.url);
|
|
271
|
-
|
|
283
|
+
const location = await credentials.set(account.profileApiKey(name), profile.apiKey);
|
|
284
|
+
await addToProfileIndex(name);
|
|
285
|
+
return location;
|
|
272
286
|
}
|
|
273
287
|
async function clearProfile(name = DEFAULT_PROFILE) {
|
|
274
288
|
const removedUrl = await credentials.remove(account.profileUrl(name));
|
|
275
289
|
const removedKey = await credentials.remove(account.profileApiKey(name));
|
|
290
|
+
await removeFromProfileIndex(name);
|
|
276
291
|
return removedUrl || removedKey;
|
|
277
292
|
}
|
|
293
|
+
async function listProfileNames() {
|
|
294
|
+
const stored = await readProfileIndex();
|
|
295
|
+
if (stored !== null) return stored;
|
|
296
|
+
const backfilled = await backfillProfileIndexFromFile();
|
|
297
|
+
if (backfilled.length > 0) await writeProfileIndex(backfilled);
|
|
298
|
+
return backfilled;
|
|
299
|
+
}
|
|
300
|
+
async function readProfileIndex() {
|
|
301
|
+
const path = profileIndexPath();
|
|
302
|
+
let raw;
|
|
303
|
+
try {
|
|
304
|
+
raw = await promises.readFile(path, "utf8");
|
|
305
|
+
} catch (error) {
|
|
306
|
+
if (isNotFoundError(error)) return null;
|
|
307
|
+
throw error;
|
|
308
|
+
}
|
|
309
|
+
return parseJson(raw, ProfileIndexSchema, { source: path });
|
|
310
|
+
}
|
|
311
|
+
async function writeProfileIndex(names) {
|
|
312
|
+
const path = profileIndexPath();
|
|
313
|
+
const unique = [...new Set(names)].toSorted();
|
|
314
|
+
await promises.mkdir(dirname(path), {
|
|
315
|
+
recursive: true,
|
|
316
|
+
mode: CREDENTIALS_DIR_MODE
|
|
317
|
+
});
|
|
318
|
+
await promises.writeFile(path, JSON.stringify(unique, null, 2) + "\n", { mode: CREDENTIALS_FILE_MODE });
|
|
319
|
+
if (process.platform !== "win32") await promises.chmod(path, CREDENTIALS_FILE_MODE);
|
|
320
|
+
}
|
|
321
|
+
async function deleteProfileIndex() {
|
|
322
|
+
await promises.unlink(profileIndexPath()).catch(() => void 0);
|
|
323
|
+
}
|
|
324
|
+
async function addToProfileIndex(name) {
|
|
325
|
+
const current = await listProfileNames();
|
|
326
|
+
if (current.includes(name)) return;
|
|
327
|
+
await writeProfileIndex([...current, name]);
|
|
328
|
+
}
|
|
329
|
+
async function removeFromProfileIndex(name) {
|
|
330
|
+
const current = await listProfileNames();
|
|
331
|
+
const next = current.filter((entry) => entry !== name);
|
|
332
|
+
if (next.length === current.length) return;
|
|
333
|
+
if (next.length === 0) {
|
|
334
|
+
await deleteProfileIndex();
|
|
335
|
+
return;
|
|
336
|
+
}
|
|
337
|
+
await writeProfileIndex(next);
|
|
338
|
+
}
|
|
339
|
+
async function backfillProfileIndexFromFile() {
|
|
340
|
+
const store = await readFileStore();
|
|
341
|
+
const names = new Set();
|
|
342
|
+
for (const key of Object.keys(store)) {
|
|
343
|
+
const name = FILE_STORE_PROFILE_URL_PATTERN.exec(key)?.[1];
|
|
344
|
+
if (name !== void 0) names.add(name);
|
|
345
|
+
}
|
|
346
|
+
return [...names];
|
|
347
|
+
}
|
|
278
348
|
async function readLicense() {
|
|
279
349
|
return credentials.read(account.license);
|
|
280
350
|
}
|
|
@@ -850,4 +920,4 @@ function buildConfigFlags(ctx) {
|
|
|
850
920
|
}
|
|
851
921
|
|
|
852
922
|
//#endregion
|
|
853
|
-
export { HttpError, account, clearLicense, clearProfile, combineAborts, connectionFlags, createClient, credentials, defineMetabaseCommand, listEnvelopeSchema, localUrl, normalizeUrl, originOnly, outputFlags, parseCsv, parseInteger, parseJson, parseOptionalInteger, profileFlag, readEnvCredentials, readEnvLicenseToken, resolveLicenseToken, resolveProfileName, throwIfAborted, wrapList, writeLicense, writeProfile };
|
|
923
|
+
export { HttpError, account, clearLicense, clearProfile, combineAborts, connectionFlags, createClient, credentials, defineMetabaseCommand, listEnvelopeSchema, listProfileNames, localUrl, normalizeUrl, originOnly, outputFlags, parseCsv, parseInteger, parseJson, parseJsonOrPlain, parseOptionalInteger, profileFlag, readEnvCredentials, readEnvLicenseToken, readProfile, resolveLicenseToken, resolveProfileName, throwIfAborted, wrapList, writeLicense, writeProfile };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-DHwFgisf.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderList } from "./render-
|
|
3
|
+
import { renderList } from "./render-BYWlZPEH.mjs";
|
|
4
4
|
import { ConfigError } from "./errors-C6w1eZ1F.mjs";
|
|
5
|
-
import { connectionFlags, defineMetabaseCommand, listEnvelopeSchema, outputFlags, parseCsv, profileFlag } from "./runtime-
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
5
|
+
import { connectionFlags, defineMetabaseCommand, listEnvelopeSchema, outputFlags, parseCsv, profileFlag } from "./runtime-Dm9yLeT_.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-BVuB-dYb.mjs";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
|
|
9
9
|
//#region src/domain/search.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-DHwFgisf.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderItem, warn } from "./render-
|
|
3
|
+
import { renderItem, warn } from "./render-BYWlZPEH.mjs";
|
|
4
4
|
import { ConfigError } from "./errors-C6w1eZ1F.mjs";
|
|
5
|
-
import { readInput } from "./input-
|
|
6
|
-
import { defineMetabaseCommand, outputFlags, readEnvLicenseToken, writeLicense } from "./runtime-
|
|
7
|
-
import { promptPassword } from "./prompt-
|
|
5
|
+
import { readInput } from "./input-DMcm_A5s.mjs";
|
|
6
|
+
import { defineMetabaseCommand, outputFlags, readEnvLicenseToken, writeLicense } from "./runtime-Dm9yLeT_.mjs";
|
|
7
|
+
import { promptPassword } from "./prompt-k9s4Ntk5.mjs";
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
|
|
10
10
|
//#region src/commands/license/set.ts
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-DHwFgisf.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderItem } from "./render-
|
|
3
|
+
import { renderItem } from "./render-BYWlZPEH.mjs";
|
|
4
4
|
import "./errors-C6w1eZ1F.mjs";
|
|
5
|
-
import "./input-
|
|
6
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
8
|
-
import { SettingValue, settingValueView } from "./setting-
|
|
9
|
-
import { parseSettingKey } from "./key-
|
|
5
|
+
import "./input-DMcm_A5s.mjs";
|
|
6
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-Dm9yLeT_.mjs";
|
|
7
|
+
import { readBody } from "./body-CGoWst5q.mjs";
|
|
8
|
+
import { SettingValue, settingValueView } from "./setting-DwFQyJPi.mjs";
|
|
9
|
+
import { parseSettingKey } from "./key-DVHK0_ny.mjs";
|
|
10
10
|
import { z } from "zod";
|
|
11
11
|
|
|
12
12
|
//#region src/commands/setting/set.ts
|
|
@@ -8,9 +8,9 @@ var setting_default = defineCommand({
|
|
|
8
8
|
alias: "settings"
|
|
9
9
|
},
|
|
10
10
|
subCommands: {
|
|
11
|
-
list: () => import("./list-
|
|
12
|
-
get: () => import("./get-
|
|
13
|
-
set: () => import("./set-
|
|
11
|
+
list: () => import("./list-lMXe0ihm.mjs").then((m) => m.default),
|
|
12
|
+
get: () => import("./get-BLDZmnI6.mjs").then((m) => m.default),
|
|
13
|
+
set: () => import("./set-sr3YCFCC.mjs").then((m) => m.default)
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
16
|
|