@mittwald/cli 1.5.0 → 1.6.0
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/dist/commands/app/dependency/list.d.ts +1 -0
- package/dist/commands/app/dependency/versions.d.ts +1 -0
- package/dist/commands/app/get.js +1 -2
- package/dist/commands/app/list-upgrade-candidates.d.ts +1 -0
- package/dist/commands/app/list.d.ts +1 -0
- package/dist/commands/backup/delete.d.ts +1 -0
- package/dist/commands/backup/get.js +1 -2
- package/dist/commands/backup/list.d.ts +1 -0
- package/dist/commands/backup/schedule/list.d.ts +1 -0
- package/dist/commands/container/delete.d.ts +1 -0
- package/dist/commands/container/list.d.ts +1 -0
- package/dist/commands/container/logs.d.ts +1 -0
- package/dist/commands/container/run.d.ts +0 -16
- package/dist/commands/container/run.js +4 -61
- package/dist/commands/container/update.d.ts +36 -0
- package/dist/commands/container/update.js +174 -0
- package/dist/commands/conversation/categories.d.ts +1 -0
- package/dist/commands/conversation/create.d.ts +1 -0
- package/dist/commands/conversation/list.d.ts +1 -0
- package/dist/commands/conversation/reply.d.ts +1 -0
- package/dist/commands/cronjob/delete.d.ts +1 -0
- package/dist/commands/cronjob/execution/get.d.ts +1 -1
- package/dist/commands/cronjob/execution/list.d.ts +1 -0
- package/dist/commands/cronjob/execution/logs.d.ts +1 -0
- package/dist/commands/cronjob/get.js +1 -2
- package/dist/commands/cronjob/list.d.ts +1 -0
- package/dist/commands/database/list.d.ts +1 -0
- package/dist/commands/database/mysql/charsets.d.ts +1 -0
- package/dist/commands/database/mysql/delete.d.ts +1 -0
- package/dist/commands/database/mysql/get.d.ts +1 -1
- package/dist/commands/database/mysql/list.d.ts +1 -0
- package/dist/commands/database/mysql/user/delete.d.ts +1 -0
- package/dist/commands/database/mysql/user/get.d.ts +1 -1
- package/dist/commands/database/mysql/user/list.d.ts +1 -0
- package/dist/commands/database/mysql/versions.d.ts +1 -0
- package/dist/commands/database/redis/get.d.ts +1 -1
- package/dist/commands/database/redis/list.d.ts +1 -0
- package/dist/commands/database/redis/versions.d.ts +1 -0
- package/dist/commands/domain/dnszone/get.js +1 -2
- package/dist/commands/domain/dnszone/list.d.ts +1 -0
- package/dist/commands/domain/get.js +1 -2
- package/dist/commands/domain/list.d.ts +1 -0
- package/dist/commands/domain/virtualhost/delete.d.ts +1 -0
- package/dist/commands/domain/virtualhost/get.js +1 -2
- package/dist/commands/domain/virtualhost/list.d.ts +1 -0
- package/dist/commands/extension/list-installed.d.ts +1 -0
- package/dist/commands/extension/list.d.ts +1 -0
- package/dist/commands/mail/address/create.d.ts +2 -1
- package/dist/commands/mail/address/create.js +2 -1
- package/dist/commands/mail/address/delete.d.ts +1 -0
- package/dist/commands/mail/address/get.d.ts +1 -1
- package/dist/commands/mail/address/list.d.ts +1 -0
- package/dist/commands/mail/deliverybox/delete.d.ts +1 -0
- package/dist/commands/mail/deliverybox/get.d.ts +1 -1
- package/dist/commands/mail/deliverybox/list.d.ts +1 -0
- package/dist/commands/org/delete.d.ts +1 -0
- package/dist/commands/org/get.js +1 -2
- package/dist/commands/org/invite/list-own.d.ts +1 -0
- package/dist/commands/org/invite/list.d.ts +1 -0
- package/dist/commands/org/list.d.ts +1 -0
- package/dist/commands/org/membership/list-own.d.ts +4 -0
- package/dist/commands/org/membership/list.d.ts +4 -0
- package/dist/commands/project/delete.d.ts +1 -0
- package/dist/commands/project/filesystem/usage.js +1 -2
- package/dist/commands/project/get.js +1 -2
- package/dist/commands/project/invite/get.d.ts +1 -1
- package/dist/commands/project/invite/list-own.d.ts +1 -0
- package/dist/commands/project/invite/list.d.ts +1 -0
- package/dist/commands/project/list.d.ts +1 -0
- package/dist/commands/project/membership/get-own.d.ts +1 -0
- package/dist/commands/project/membership/get.d.ts +1 -1
- package/dist/commands/project/membership/list-own.d.ts +1 -0
- package/dist/commands/project/membership/list.d.ts +1 -0
- package/dist/commands/registry/delete.d.ts +1 -0
- package/dist/commands/registry/list.d.ts +1 -0
- package/dist/commands/server/get.d.ts +1 -1
- package/dist/commands/server/list.d.ts +1 -0
- package/dist/commands/sftp-user/delete.d.ts +1 -0
- package/dist/commands/sftp-user/list.d.ts +1 -0
- package/dist/commands/ssh-user/delete.d.ts +1 -0
- package/dist/commands/ssh-user/list.d.ts +1 -0
- package/dist/commands/stack/delete.d.ts +1 -0
- package/dist/commands/stack/deploy.js +1 -8
- package/dist/commands/stack/list.d.ts +1 -0
- package/dist/commands/stack/ps.d.ts +1 -0
- package/dist/commands/stack/ps.js +1 -1
- package/dist/commands/user/api-token/get.d.ts +1 -1
- package/dist/commands/user/api-token/list.d.ts +1 -0
- package/dist/commands/user/api-token/revoke.d.ts +1 -0
- package/dist/commands/user/get.d.ts +1 -1
- package/dist/commands/user/session/get.d.ts +1 -1
- package/dist/commands/user/session/list.d.ts +1 -0
- package/dist/commands/user/ssh-key/delete.d.ts +1 -0
- package/dist/commands/user/ssh-key/get.d.ts +1 -1
- package/dist/commands/user/ssh-key/list.d.ts +1 -0
- package/dist/lib/basecommands/BaseCommand.d.ts +7 -5
- package/dist/lib/basecommands/BaseCommand.js +25 -8
- package/dist/lib/basecommands/CommandFlags.d.ts +3 -3
- package/dist/lib/basecommands/CoreBaseCommand.d.ts +12 -0
- package/dist/lib/basecommands/CoreBaseCommand.js +16 -0
- package/dist/lib/basecommands/DeleteBaseCommand.d.ts +1 -0
- package/dist/lib/basecommands/DeleteBaseCommand.js +1 -0
- package/dist/lib/basecommands/ExecRenderBaseCommand.d.ts +3 -0
- package/dist/lib/basecommands/ExecRenderBaseCommand.js +3 -0
- package/dist/lib/basecommands/ExtendedBaseCommand.d.ts +3 -0
- package/dist/lib/basecommands/ExtendedBaseCommand.js +3 -0
- package/dist/lib/basecommands/GetBaseCommand.d.ts +1 -1
- package/dist/lib/basecommands/GetBaseCommand.js +1 -0
- package/dist/lib/basecommands/ListBaseCommand.d.ts +1 -0
- package/dist/lib/basecommands/ListBaseCommand.js +1 -0
- package/dist/lib/basecommands/UnauthenticatedBaseCommand.d.ts +10 -0
- package/dist/lib/basecommands/UnauthenticatedBaseCommand.js +16 -0
- package/dist/lib/resources/container/containerconfig.d.ts +43 -0
- package/dist/lib/resources/container/containerconfig.js +82 -0
- package/dist/lib/resources/stack/enrich.d.ts +2 -2
- package/dist/lib/resources/stack/enrich.js +1 -31
- package/package.json +8 -8
|
@@ -15,6 +15,7 @@ export declare class List extends ListBaseCommand<typeof List, ResponseItem, Res
|
|
|
15
15
|
"no-truncate": import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
16
16
|
"no-relative-dates": import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
17
17
|
"csv-separator": import("@oclif/core/interfaces").OptionFlag<"," | ";">;
|
|
18
|
+
token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
18
19
|
};
|
|
19
20
|
getData(): Promise<Response>;
|
|
20
21
|
protected getColumns(data: ResponseItem[]): ListColumns<ResponseItem>;
|
|
@@ -14,6 +14,7 @@ export declare class Versions extends ListBaseCommand<typeof Versions, ResponseI
|
|
|
14
14
|
"no-truncate": import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
15
15
|
"no-relative-dates": import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
16
16
|
"csv-separator": import("@oclif/core/interfaces").OptionFlag<"," | ";">;
|
|
17
|
+
token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
17
18
|
};
|
|
18
19
|
getData(): Promise<Response>;
|
|
19
20
|
protected getColumns(): ListColumns<ResponseItem>;
|
|
@@ -4,7 +4,7 @@ type APIResponse = Awaited<ReturnType<MittwaldAPIV2Client["database"]["getRedisD
|
|
|
4
4
|
export declare class Get extends GetBaseCommand<typeof Get, APIResponse> {
|
|
5
5
|
static description: string;
|
|
6
6
|
static flags: {
|
|
7
|
-
|
|
7
|
+
token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
8
8
|
};
|
|
9
9
|
static args: {
|
|
10
10
|
id: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
@@ -15,6 +15,7 @@ export declare class List extends ListBaseCommand<typeof List, ResponseItem, Res
|
|
|
15
15
|
"no-truncate": import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
16
16
|
"no-relative-dates": import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
17
17
|
"csv-separator": import("@oclif/core/interfaces").OptionFlag<"," | ";">;
|
|
18
|
+
token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
18
19
|
};
|
|
19
20
|
getData(): Promise<Response>;
|
|
20
21
|
protected getColumns(data: ResponseItem[]): ListColumns<ResponseItem>;
|
|
@@ -15,6 +15,7 @@ export default class Versions extends ListBaseCommand<typeof Versions, ResponseI
|
|
|
15
15
|
"no-truncate": import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
16
16
|
"no-relative-dates": import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
17
17
|
"csv-separator": import("@oclif/core/interfaces").OptionFlag<"," | ";">;
|
|
18
|
+
token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
18
19
|
};
|
|
19
20
|
getData(): Promise<Response>;
|
|
20
21
|
protected getColumns(): ListColumns<ResponseItem>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { GetBaseCommand } from "../../../lib/basecommands/GetBaseCommand.js";
|
|
3
2
|
import { RenderBaseCommand } from "../../../lib/basecommands/RenderBaseCommand.js";
|
|
4
3
|
import { dnsZoneArgs, withDnsZoneId, } from "../../../lib/resources/domain/dnszone/flags.js";
|
|
5
4
|
import { assertStatus } from "@mittwald/api-client-commons";
|
|
@@ -9,7 +8,7 @@ import { RenderJson } from "../../../rendering/react/json/RenderJson.js";
|
|
|
9
8
|
export class Get extends RenderBaseCommand {
|
|
10
9
|
static description = "gets a specific zone";
|
|
11
10
|
static flags = {
|
|
12
|
-
...
|
|
11
|
+
...RenderBaseCommand.buildFlags(),
|
|
13
12
|
};
|
|
14
13
|
static args = {
|
|
15
14
|
...dnsZoneArgs,
|
|
@@ -15,6 +15,7 @@ export default class List extends ListBaseCommand<typeof List, ResponseItem, Res
|
|
|
15
15
|
"no-truncate": import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
16
16
|
"no-relative-dates": import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
17
17
|
"csv-separator": import("@oclif/core/interfaces").OptionFlag<"," | ";">;
|
|
18
|
+
token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
18
19
|
};
|
|
19
20
|
getData(): Promise<Response>;
|
|
20
21
|
protected getColumns(data: ResponseItem[]): ListColumns<ResponseItem>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { GetBaseCommand } from "../../lib/basecommands/GetBaseCommand.js";
|
|
3
2
|
import { RenderBaseCommand } from "../../lib/basecommands/RenderBaseCommand.js";
|
|
4
3
|
import { assertStatus } from "@mittwald/api-client-commons";
|
|
5
4
|
import { usePromise } from "@mittwald/react-use-promise";
|
|
@@ -9,7 +8,7 @@ import { DomainDetails } from "../../rendering/react/components/Domain/DomainDet
|
|
|
9
8
|
export class Get extends RenderBaseCommand {
|
|
10
9
|
static description = "gets a specific domain";
|
|
11
10
|
static flags = {
|
|
12
|
-
...
|
|
11
|
+
...RenderBaseCommand.buildFlags(),
|
|
13
12
|
};
|
|
14
13
|
static args = {
|
|
15
14
|
...domainArgs,
|
|
@@ -15,6 +15,7 @@ export declare class List extends ListBaseCommand<typeof List, ResponseItem, Res
|
|
|
15
15
|
"no-truncate": import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
16
16
|
"no-relative-dates": import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
17
17
|
"csv-separator": import("@oclif/core/interfaces").OptionFlag<"," | ";">;
|
|
18
|
+
token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
18
19
|
};
|
|
19
20
|
getData(): Promise<Response>;
|
|
20
21
|
protected getColumns(): ListColumns<ResponseItem>;
|
|
@@ -5,6 +5,7 @@ export default class Delete extends DeleteBaseCommand<typeof Delete> {
|
|
|
5
5
|
static flags: {
|
|
6
6
|
force: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
7
7
|
quiet: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
8
|
+
token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
8
9
|
};
|
|
9
10
|
static args: {
|
|
10
11
|
"virtual-host-id": import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { jsxs as _jsxs, jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { GetBaseCommand } from "../../../lib/basecommands/GetBaseCommand.js";
|
|
3
2
|
import { Args } from "@oclif/core";
|
|
4
3
|
import { RenderBaseCommand } from "../../../lib/basecommands/RenderBaseCommand.js";
|
|
5
4
|
import { usePromise } from "@mittwald/react-use-promise";
|
|
@@ -53,7 +52,7 @@ const GetIngress = ({ ingress }) => {
|
|
|
53
52
|
};
|
|
54
53
|
export class Get extends RenderBaseCommand {
|
|
55
54
|
static description = "Get a virtual host.";
|
|
56
|
-
static flags = { ...
|
|
55
|
+
static flags = { ...RenderBaseCommand.buildFlags() };
|
|
57
56
|
static args = {
|
|
58
57
|
"ingress-id": Args.string({
|
|
59
58
|
summary: "The ID of the ingress to get.",
|
|
@@ -16,6 +16,7 @@ export declare class List extends ListBaseCommand<typeof List, ResponseItem, Res
|
|
|
16
16
|
"no-truncate": import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
17
17
|
"no-relative-dates": import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
18
18
|
"csv-separator": import("@oclif/core/interfaces").OptionFlag<"," | ";">;
|
|
19
|
+
token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
19
20
|
};
|
|
20
21
|
getData(): Promise<Response>;
|
|
21
22
|
protected getColumns(data: ResponseItem[]): ListColumns<ResponseItem>;
|
|
@@ -21,6 +21,7 @@ export declare class ListInstalled extends ListBaseCommand<typeof ListInstalled,
|
|
|
21
21
|
"no-truncate": import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
22
22
|
"no-relative-dates": import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
23
23
|
"csv-separator": import("@oclif/core/interfaces").OptionFlag<"," | ";">;
|
|
24
|
+
token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
24
25
|
};
|
|
25
26
|
getData(): Promise<Response>;
|
|
26
27
|
protected mapData(data: SuccessfulResponse<Response, 200>["data"]): Promise<ExtendedResponseItem[]>;
|
|
@@ -14,6 +14,7 @@ export declare class List extends ListBaseCommand<typeof List, ResponseItem, Res
|
|
|
14
14
|
"no-truncate": import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
15
15
|
"no-relative-dates": import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
16
16
|
"csv-separator": import("@oclif/core/interfaces").OptionFlag<"," | ";">;
|
|
17
|
+
token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
17
18
|
};
|
|
18
19
|
getData(): Promise<Response>;
|
|
19
20
|
protected getColumns(data: ResponseItem[]): ListColumns<ResponseItem>;
|
|
@@ -3,6 +3,7 @@ import { ReactNode } from "react";
|
|
|
3
3
|
import { ProcessRenderer } from "../../../rendering/process/process.js";
|
|
4
4
|
import { FlagInput, OutputFlags } from "@oclif/core/interfaces";
|
|
5
5
|
import ByteQuantity from "../../../lib/units/ByteQuantity.js";
|
|
6
|
+
import { CommandFlags } from "../../../lib/basecommands/CommandFlags.js";
|
|
6
7
|
type CreateResult = {
|
|
7
8
|
addressId: string;
|
|
8
9
|
generatedPassword: string | null;
|
|
@@ -27,7 +28,7 @@ export default class Create extends ExecRenderBaseCommand<typeof Create, CreateR
|
|
|
27
28
|
}[];
|
|
28
29
|
protected getPassword(process: ProcessRenderer): Promise<[string, boolean]>;
|
|
29
30
|
protected createForwardAddress(projectId: string, process: ProcessRenderer, flags: OutputFlags<FlagInput<typeof Create.flags>>): Promise<CreateResult>;
|
|
30
|
-
protected createMailAddress(projectId: string, process: ProcessRenderer, flags:
|
|
31
|
+
protected createMailAddress(projectId: string, process: ProcessRenderer, flags: CommandFlags<typeof Create>): Promise<CreateResult>;
|
|
31
32
|
protected exec(): Promise<CreateResult>;
|
|
32
33
|
protected render(executionResult: CreateResult): ReactNode;
|
|
33
34
|
}
|
|
@@ -116,6 +116,7 @@ export default class Create extends ExecRenderBaseCommand {
|
|
|
116
116
|
}
|
|
117
117
|
async createMailAddress(projectId, process, flags) {
|
|
118
118
|
const [password, passwordGenerated] = await this.getPassword(process);
|
|
119
|
+
const { quota } = flags;
|
|
119
120
|
const response = await process.runStep("creating mail address", async () => {
|
|
120
121
|
const response = await this.apiClient.mail.createMailAddress({
|
|
121
122
|
projectId,
|
|
@@ -124,7 +125,7 @@ export default class Create extends ExecRenderBaseCommand {
|
|
|
124
125
|
isCatchAll: flags["catch-all"],
|
|
125
126
|
mailbox: {
|
|
126
127
|
password,
|
|
127
|
-
quotaInBytes:
|
|
128
|
+
quotaInBytes: quota.bytes,
|
|
128
129
|
enableSpamProtection: flags["enable-spam-protection"],
|
|
129
130
|
},
|
|
130
131
|
},
|
|
@@ -5,6 +5,7 @@ export default class Delete extends DeleteBaseCommand<typeof Delete> {
|
|
|
5
5
|
static flags: {
|
|
6
6
|
force: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
7
7
|
quiet: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
8
|
+
token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
8
9
|
};
|
|
9
10
|
static args: {
|
|
10
11
|
id: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
@@ -5,7 +5,7 @@ type APIResponse = Awaited<ReturnType<MittwaldAPIV2Client["mail"]["getMailAddres
|
|
|
5
5
|
export default class Get extends GetBaseCommand<typeof Get, APIResponse> {
|
|
6
6
|
static description: string;
|
|
7
7
|
static flags: {
|
|
8
|
-
|
|
8
|
+
token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
9
9
|
};
|
|
10
10
|
static args: {
|
|
11
11
|
id: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
@@ -15,6 +15,7 @@ export declare class List extends ListBaseCommand<typeof List, ResponseItem, Res
|
|
|
15
15
|
"no-truncate": import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
16
16
|
"no-relative-dates": import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
17
17
|
"csv-separator": import("@oclif/core/interfaces").OptionFlag<"," | ";">;
|
|
18
|
+
token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
18
19
|
};
|
|
19
20
|
getData(): Promise<Response>;
|
|
20
21
|
protected getColumns(data: ResponseItem[]): ListColumns<ResponseItem>;
|
|
@@ -5,6 +5,7 @@ export default class Delete extends DeleteBaseCommand<typeof Delete> {
|
|
|
5
5
|
static flags: {
|
|
6
6
|
force: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
7
7
|
quiet: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
8
|
+
token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
8
9
|
};
|
|
9
10
|
static args: {
|
|
10
11
|
id: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
@@ -5,7 +5,7 @@ type APIResponse = Awaited<ReturnType<MittwaldAPIV2Client["mail"]["getDeliveryBo
|
|
|
5
5
|
export default class Get extends GetBaseCommand<typeof Get, APIResponse> {
|
|
6
6
|
static description: string;
|
|
7
7
|
static flags: {
|
|
8
|
-
|
|
8
|
+
token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
9
9
|
};
|
|
10
10
|
static args: {
|
|
11
11
|
id: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
@@ -15,6 +15,7 @@ export declare class List extends ListBaseCommand<typeof List, ResponseItem, Res
|
|
|
15
15
|
"no-truncate": import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
16
16
|
"no-relative-dates": import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
17
17
|
"csv-separator": import("@oclif/core/interfaces").OptionFlag<"," | ";">;
|
|
18
|
+
token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
18
19
|
"project-id": import("@oclif/core/interfaces").OptionFlag<string>;
|
|
19
20
|
};
|
|
20
21
|
getData(): Promise<Response>;
|
|
@@ -5,6 +5,7 @@ export default class Delete extends DeleteBaseCommand<typeof Delete> {
|
|
|
5
5
|
static flags: {
|
|
6
6
|
force: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
7
7
|
quiet: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
8
|
+
token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
8
9
|
};
|
|
9
10
|
static args: {
|
|
10
11
|
"org-id": import("@oclif/core/interfaces").Arg<string>;
|
package/dist/commands/org/get.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { GetBaseCommand } from "../../lib/basecommands/GetBaseCommand.js";
|
|
3
2
|
import { orgArgs, withOrgId } from "../../lib/resources/org/flags.js";
|
|
4
3
|
import { RenderBaseCommand } from "../../lib/basecommands/RenderBaseCommand.js";
|
|
5
4
|
import { usePromise } from "@mittwald/react-use-promise";
|
|
@@ -35,7 +34,7 @@ const GetOrganization = ({ response }) => {
|
|
|
35
34
|
export class Get extends RenderBaseCommand {
|
|
36
35
|
static description = "Get an organization profile.";
|
|
37
36
|
static flags = {
|
|
38
|
-
...
|
|
37
|
+
...RenderBaseCommand.buildFlags(),
|
|
39
38
|
};
|
|
40
39
|
static args = { ...orgArgs };
|
|
41
40
|
render() {
|
|
@@ -20,6 +20,7 @@ export declare class List extends ListBaseCommand<typeof List, ResponseItem, Res
|
|
|
20
20
|
"no-truncate": import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
21
21
|
"no-relative-dates": import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
22
22
|
"csv-separator": import("@oclif/core/interfaces").OptionFlag<"," | ";">;
|
|
23
|
+
token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
23
24
|
};
|
|
24
25
|
getData(): Promise<Response>;
|
|
25
26
|
protected mapData(data: SuccessfulResponse<Response, 200>["data"]): Promise<(MittwaldAPIV2.Components.Schemas.MembershipCustomerInvite | {
|
|
@@ -15,6 +15,7 @@ export declare abstract class List extends ListBaseCommand<typeof List, Response
|
|
|
15
15
|
"no-truncate": import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
16
16
|
"no-relative-dates": import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
17
17
|
"csv-separator": import("@oclif/core/interfaces").OptionFlag<"," | ";">;
|
|
18
|
+
token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
18
19
|
};
|
|
19
20
|
getData(): Promise<Response>;
|
|
20
21
|
protected getColumns(data: ResponseItem[]): ListColumns<ResponseItem>;
|
|
@@ -15,6 +15,7 @@ export declare class List extends ListBaseCommand<typeof List, ResponseItem, Res
|
|
|
15
15
|
"no-truncate": import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
16
16
|
"no-relative-dates": import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
17
17
|
"csv-separator": import("@oclif/core/interfaces").OptionFlag<"," | ";">;
|
|
18
|
+
token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
18
19
|
};
|
|
19
20
|
getData(): Promise<Response>;
|
|
20
21
|
protected mapParams(input: PathParams): Promise<PathParams> | PathParams;
|
|
@@ -20,6 +20,7 @@ export declare class ListOwn extends ListBaseCommand<typeof ListOwn, ResponseIte
|
|
|
20
20
|
"no-truncate": import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
21
21
|
"no-relative-dates": import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
22
22
|
"csv-separator": import("@oclif/core/interfaces").OptionFlag<"," | ";">;
|
|
23
|
+
token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
23
24
|
};
|
|
24
25
|
getData(): Promise<Response>;
|
|
25
26
|
protected mapData(data: SuccessfulResponse<Response, 200>["data"]): Promise<(MittwaldAPIV2.Components.Schemas.MembershipCustomerMembership | {
|
|
@@ -45,11 +46,14 @@ export declare class ListOwn extends ListBaseCommand<typeof ListOwn, ResponseIte
|
|
|
45
46
|
vatId?: string | undefined;
|
|
46
47
|
vatIdValidationState?: "valid" | "invalid" | "pending" | "unspecified" | undefined;
|
|
47
48
|
};
|
|
49
|
+
avatarRef?: string;
|
|
48
50
|
customerId: string;
|
|
49
51
|
email: string;
|
|
50
52
|
expiresAt?: string;
|
|
53
|
+
firstName: string;
|
|
51
54
|
id: string;
|
|
52
55
|
inviteId?: string;
|
|
56
|
+
lastName: string;
|
|
53
57
|
memberSince?: string;
|
|
54
58
|
mfa: boolean;
|
|
55
59
|
role: MittwaldAPIV2.Components.Schemas.MembershipCustomerRoles;
|
|
@@ -22,6 +22,7 @@ export declare class List extends ListBaseCommand<typeof List, ResponseItem, Res
|
|
|
22
22
|
"no-truncate": import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
23
23
|
"no-relative-dates": import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
24
24
|
"csv-separator": import("@oclif/core/interfaces").OptionFlag<"," | ";">;
|
|
25
|
+
token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
25
26
|
};
|
|
26
27
|
getData(): Promise<Response>;
|
|
27
28
|
protected mapData(data: SuccessfulResponse<Response, 200>["data"]): Promise<(MittwaldAPIV2.Components.Schemas.MembershipCustomerMembership | {
|
|
@@ -48,11 +49,14 @@ export declare class List extends ListBaseCommand<typeof List, ResponseItem, Res
|
|
|
48
49
|
registeredAt?: string | undefined;
|
|
49
50
|
userId: string;
|
|
50
51
|
};
|
|
52
|
+
avatarRef?: string;
|
|
51
53
|
customerId: string;
|
|
52
54
|
email: string;
|
|
53
55
|
expiresAt?: string;
|
|
56
|
+
firstName: string;
|
|
54
57
|
id: string;
|
|
55
58
|
inviteId?: string;
|
|
59
|
+
lastName: string;
|
|
56
60
|
memberSince?: string;
|
|
57
61
|
mfa: boolean;
|
|
58
62
|
role: MittwaldAPIV2.Components.Schemas.MembershipCustomerRoles;
|
|
@@ -5,6 +5,7 @@ export default class Delete extends DeleteBaseCommand<typeof Delete> {
|
|
|
5
5
|
static flags: {
|
|
6
6
|
force: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
7
7
|
quiet: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
8
|
+
token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
8
9
|
};
|
|
9
10
|
static args: {
|
|
10
11
|
"project-id": import("@oclif/core/interfaces").Arg<string>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { GetBaseCommand } from "../../../lib/basecommands/GetBaseCommand.js";
|
|
3
2
|
import { projectArgs } from "../../../lib/resources/project/flags.js";
|
|
4
3
|
import { RenderBaseCommand } from "../../../lib/basecommands/RenderBaseCommand.js";
|
|
5
4
|
import { usePromise } from "@mittwald/react-use-promise";
|
|
@@ -15,7 +14,7 @@ import maybe from "../../../lib/util/maybe.js";
|
|
|
15
14
|
export class Usage extends RenderBaseCommand {
|
|
16
15
|
static description = "Get a project directory filesystem usage.";
|
|
17
16
|
static flags = {
|
|
18
|
-
...
|
|
17
|
+
...RenderBaseCommand.buildFlags(),
|
|
19
18
|
human: Flags.boolean({
|
|
20
19
|
description: "Display human readable sizes.",
|
|
21
20
|
}),
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { GetBaseCommand } from "../../lib/basecommands/GetBaseCommand.js";
|
|
3
2
|
import { projectArgs } from "../../lib/resources/project/flags.js";
|
|
4
3
|
import { SingleResult, SingleResultTable, } from "../../rendering/react/components/SingleResult.js";
|
|
5
4
|
import { Box, Text } from "ink";
|
|
@@ -67,7 +66,7 @@ const GetProject = ({ response }) => {
|
|
|
67
66
|
};
|
|
68
67
|
export class Get extends RenderBaseCommand {
|
|
69
68
|
static description = "Get details of a project";
|
|
70
|
-
static flags = { ...
|
|
69
|
+
static flags = { ...RenderBaseCommand.buildFlags() };
|
|
71
70
|
static args = { ...projectArgs };
|
|
72
71
|
formatter = new GetFormatter(new ComponentPrinter((r) => _jsx(GetProject, { response: r })));
|
|
73
72
|
render() {
|
|
@@ -4,7 +4,7 @@ type APIResponse = Awaited<ReturnType<MittwaldAPIV2Client["project"]["getProject
|
|
|
4
4
|
export default class Get extends GetBaseCommand<typeof Get, APIResponse> {
|
|
5
5
|
static description: string;
|
|
6
6
|
static flags: {
|
|
7
|
-
|
|
7
|
+
token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
8
8
|
};
|
|
9
9
|
static args: {
|
|
10
10
|
"invite-id": import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
@@ -14,6 +14,7 @@ export default class List extends ListBaseCommand<typeof List, ResponseItem, Res
|
|
|
14
14
|
"no-truncate": import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
15
15
|
"no-relative-dates": import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
16
16
|
"csv-separator": import("@oclif/core/interfaces").OptionFlag<"," | ";">;
|
|
17
|
+
token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
17
18
|
};
|
|
18
19
|
getData(): Promise<Response>;
|
|
19
20
|
protected getColumns(): ListColumns<ResponseItem>;
|
|
@@ -15,6 +15,7 @@ export default class List extends ListBaseCommand<typeof List, ResponseItem, Res
|
|
|
15
15
|
"no-truncate": import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
16
16
|
"no-relative-dates": import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
17
17
|
"csv-separator": import("@oclif/core/interfaces").OptionFlag<"," | ";">;
|
|
18
|
+
token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
18
19
|
};
|
|
19
20
|
getData(): Promise<Response>;
|
|
20
21
|
protected getColumns(): ListColumns<ResponseItem>;
|
|
@@ -14,6 +14,7 @@ export declare class List extends ListBaseCommand<typeof List, ProjectResponseIt
|
|
|
14
14
|
"no-truncate": import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
15
15
|
"no-relative-dates": import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
16
16
|
"csv-separator": import("@oclif/core/interfaces").OptionFlag<"," | ";">;
|
|
17
|
+
token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
17
18
|
};
|
|
18
19
|
getData(): Promise<Response>;
|
|
19
20
|
protected getColumns(ignoredData: ProjectResponseItem[]): ListColumns<ProjectResponseItem>;
|
|
@@ -5,6 +5,7 @@ export default class GetOwn extends GetBaseCommand<typeof GetOwn, APIResponse> {
|
|
|
5
5
|
static description: string;
|
|
6
6
|
static flags: {
|
|
7
7
|
"project-id": import("@oclif/core/interfaces").OptionFlag<string>;
|
|
8
|
+
token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
8
9
|
};
|
|
9
10
|
static args: {};
|
|
10
11
|
protected getData(): Promise<APIResponse>;
|
|
@@ -4,7 +4,7 @@ type APIResponse = Awaited<ReturnType<MittwaldAPIV2Client["project"]["getProject
|
|
|
4
4
|
export default class Get extends GetBaseCommand<typeof Get, APIResponse> {
|
|
5
5
|
static description: string;
|
|
6
6
|
static flags: {
|
|
7
|
-
|
|
7
|
+
token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
8
8
|
};
|
|
9
9
|
static args: {
|
|
10
10
|
"membership-id": import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
@@ -14,6 +14,7 @@ export default class ListOwn extends ListBaseCommand<typeof ListOwn, ResponseIte
|
|
|
14
14
|
"no-truncate": import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
15
15
|
"no-relative-dates": import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
16
16
|
"csv-separator": import("@oclif/core/interfaces").OptionFlag<"," | ";">;
|
|
17
|
+
token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
17
18
|
};
|
|
18
19
|
getData(): Promise<Response>;
|
|
19
20
|
protected getColumns(): ListColumns<ResponseItem>;
|
|
@@ -18,6 +18,7 @@ export default class List extends ListBaseCommand<typeof List, ResponseItem, Res
|
|
|
18
18
|
"no-truncate": import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
19
19
|
"no-relative-dates": import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
20
20
|
"csv-separator": import("@oclif/core/interfaces").OptionFlag<"," | ";">;
|
|
21
|
+
token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
21
22
|
};
|
|
22
23
|
getData(): Promise<Response>;
|
|
23
24
|
protected mapData(data: SuccessfulResponse<Response, 200>["data"]): Promise<({
|
|
@@ -5,6 +5,7 @@ export default class Delete extends DeleteBaseCommand<typeof Delete> {
|
|
|
5
5
|
static flags: {
|
|
6
6
|
force: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
7
7
|
quiet: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
8
|
+
token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
8
9
|
};
|
|
9
10
|
static args: {
|
|
10
11
|
"registry-id": import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
@@ -16,6 +16,7 @@ export declare class List extends ListBaseCommand<typeof List, ResponseItem, Res
|
|
|
16
16
|
"no-truncate": import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
17
17
|
"no-relative-dates": import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
18
18
|
"csv-separator": import("@oclif/core/interfaces").OptionFlag<"," | ";">;
|
|
19
|
+
token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
19
20
|
};
|
|
20
21
|
getData(): Promise<Response>;
|
|
21
22
|
protected getColumns(data: ResponseItem[]): ListColumns<ResponseItem>;
|
|
@@ -4,7 +4,7 @@ type APIResponse = Awaited<ReturnType<MittwaldAPIV2Client["project"]["getServer"
|
|
|
4
4
|
export default class Get extends GetBaseCommand<typeof Get, APIResponse> {
|
|
5
5
|
static description: string;
|
|
6
6
|
static flags: {
|
|
7
|
-
|
|
7
|
+
token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
8
8
|
};
|
|
9
9
|
static args: {
|
|
10
10
|
"server-id": import("@oclif/core/interfaces").Arg<string>;
|
|
@@ -14,6 +14,7 @@ export default class List extends ListBaseCommand<typeof List, ResponseItem, Res
|
|
|
14
14
|
"no-truncate": import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
15
15
|
"no-relative-dates": import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
16
16
|
"csv-separator": import("@oclif/core/interfaces").OptionFlag<"," | ";">;
|
|
17
|
+
token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
17
18
|
};
|
|
18
19
|
getData(): Promise<Response>;
|
|
19
20
|
protected getColumns(ignoredData: ResponseItem[]): ListColumns<ResponseItem>;
|
|
@@ -5,6 +5,7 @@ export default class Delete extends DeleteBaseCommand<typeof Delete> {
|
|
|
5
5
|
static flags: {
|
|
6
6
|
force: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
7
7
|
quiet: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
8
|
+
token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
8
9
|
};
|
|
9
10
|
static args: {
|
|
10
11
|
"sftp-user-id": import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
@@ -15,6 +15,7 @@ export default class List extends ListBaseCommand<typeof List, SftpUserResponseI
|
|
|
15
15
|
"no-truncate": import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
16
16
|
"no-relative-dates": import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
17
17
|
"csv-separator": import("@oclif/core/interfaces").OptionFlag<"," | ";">;
|
|
18
|
+
token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
18
19
|
};
|
|
19
20
|
static aliases: string[];
|
|
20
21
|
static deprecateAliases: boolean;
|
|
@@ -5,6 +5,7 @@ export default class Delete extends DeleteBaseCommand<typeof Delete> {
|
|
|
5
5
|
static flags: {
|
|
6
6
|
force: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
7
7
|
quiet: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
8
|
+
token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
8
9
|
};
|
|
9
10
|
static args: {
|
|
10
11
|
"ssh-user-id": import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
@@ -15,6 +15,7 @@ export declare class List extends ListBaseCommand<typeof List, SshUserResponseIt
|
|
|
15
15
|
"no-truncate": import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
16
16
|
"no-relative-dates": import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
17
17
|
"csv-separator": import("@oclif/core/interfaces").OptionFlag<"," | ";">;
|
|
18
|
+
token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
18
19
|
};
|
|
19
20
|
static aliases: string[];
|
|
20
21
|
static deprecateAliases: boolean;
|
|
@@ -7,6 +7,7 @@ export default class Delete extends DeleteBaseCommand<typeof Delete> {
|
|
|
7
7
|
"with-volumes": import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
8
8
|
force: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
9
9
|
quiet: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
10
|
+
token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
11
|
};
|
|
11
12
|
static args: {
|
|
12
13
|
"stack-id": import("@oclif/core/interfaces").Arg<string>;
|
|
@@ -32,17 +32,10 @@ export class Deploy extends ExecRenderBaseCommand {
|
|
|
32
32
|
const { "compose-file": composeFile, "env-file": envFile } = this.flags;
|
|
33
33
|
const r = makeProcessRenderer(this.flags, "Deploying container stack");
|
|
34
34
|
const result = { restartedServices: [] };
|
|
35
|
-
const stack = await r.runStep("getting stack", async () => {
|
|
36
|
-
const resp = await this.apiClient.container.getStack({ stackId });
|
|
37
|
-
assertStatus(resp, 200);
|
|
38
|
-
return resp.data;
|
|
39
|
-
});
|
|
40
35
|
const env = await collectEnvironment(process.env, envFile);
|
|
41
36
|
let stackDefinition = await loadStackFromFile(composeFile, env);
|
|
42
37
|
stackDefinition = sanitizeStackDefinition(stackDefinition);
|
|
43
|
-
stackDefinition = await r.runStep("getting image configurations",
|
|
44
|
-
return enrichStackDefinition(this.apiClient, stack.projectId, stackDefinition);
|
|
45
|
-
});
|
|
38
|
+
stackDefinition = await r.runStep("getting image configurations", () => enrichStackDefinition(stackDefinition));
|
|
46
39
|
this.debug("complete stack definition: %O", stackDefinition);
|
|
47
40
|
const declaredStack = await r.runStep("deploying stack", async () => {
|
|
48
41
|
const resp = await this.apiClient.container.declareStack({
|
|
@@ -17,6 +17,7 @@ export declare class List extends ListBaseCommand<typeof List, ListItem, ListRes
|
|
|
17
17
|
"no-truncate": import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
18
18
|
"no-relative-dates": import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
19
19
|
"csv-separator": import("@oclif/core/interfaces").OptionFlag<"," | ";">;
|
|
20
|
+
token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
20
21
|
};
|
|
21
22
|
getData(): Promise<ListResponse>;
|
|
22
23
|
protected getColumns(data: ListItem[]): ListColumns<ListItem>;
|
|
@@ -16,6 +16,7 @@ export declare class ListContainers extends ListBaseCommand<typeof ListContainer
|
|
|
16
16
|
"no-truncate": import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
17
17
|
"no-relative-dates": import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
18
18
|
"csv-separator": import("@oclif/core/interfaces").OptionFlag<"," | ";">;
|
|
19
|
+
token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
19
20
|
};
|
|
20
21
|
getData(): Promise<ListItem[]>;
|
|
21
22
|
protected getColumns(data: ListItem[]): ListColumns<ListItem>;
|
|
@@ -29,7 +29,7 @@ export class ListContainers extends ListBaseCommand {
|
|
|
29
29
|
get: (svc) => svc.deployedState.image,
|
|
30
30
|
},
|
|
31
31
|
command: {
|
|
32
|
-
get: (svc) => svc.deployedState.command?.join(" "),
|
|
32
|
+
get: (svc) => svc.deployedState.command?.join(" ") ?? "(from image)",
|
|
33
33
|
},
|
|
34
34
|
description: {},
|
|
35
35
|
ports: {
|