@mittwald/cli 1.0.0-alpha.34 → 1.0.0-alpha.35
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
CHANGED
|
@@ -237,7 +237,9 @@ USAGE
|
|
|
237
237
|
* [`mw project update [PROJECT-ID]`](#mw-project-update-project-id)
|
|
238
238
|
* [`mw server get [SERVER-ID]`](#mw-server-get-server-id)
|
|
239
239
|
* [`mw server list`](#mw-server-list)
|
|
240
|
+
* [`mw sftp-user delete SFTP-USER-ID`](#mw-sftp-user-delete-sftp-user-id)
|
|
240
241
|
* [`mw sftp-user list`](#mw-sftp-user-list)
|
|
242
|
+
* [`mw ssh-user delete SSH-USER-ID`](#mw-ssh-user-delete-ssh-user-id)
|
|
241
243
|
* [`mw ssh-user list`](#mw-ssh-user-list)
|
|
242
244
|
* [`mw update [CHANNEL]`](#mw-update-channel)
|
|
243
245
|
* [`mw user api-token create`](#mw-user-api-token-create)
|
|
@@ -4184,6 +4186,31 @@ DESCRIPTION
|
|
|
4184
4186
|
List servers for an organization or user.
|
|
4185
4187
|
```
|
|
4186
4188
|
|
|
4189
|
+
## `mw sftp-user delete SFTP-USER-ID`
|
|
4190
|
+
|
|
4191
|
+
Delete an SFTP user
|
|
4192
|
+
|
|
4193
|
+
```
|
|
4194
|
+
USAGE
|
|
4195
|
+
$ mw sftp-user delete SFTP-USER-ID [-q] [-f]
|
|
4196
|
+
|
|
4197
|
+
ARGUMENTS
|
|
4198
|
+
SFTP-USER-ID The ID of the SFTP user to delete
|
|
4199
|
+
|
|
4200
|
+
FLAGS
|
|
4201
|
+
-f, --force Do not ask for confirmation
|
|
4202
|
+
-q, --quiet suppress process output and only display a machine-readable summary.
|
|
4203
|
+
|
|
4204
|
+
DESCRIPTION
|
|
4205
|
+
Delete an SFTP user
|
|
4206
|
+
|
|
4207
|
+
FLAG DESCRIPTIONS
|
|
4208
|
+
-q, --quiet suppress process output and only display a machine-readable summary.
|
|
4209
|
+
|
|
4210
|
+
This flag controls if you want to see the process output or only a summary. When using mw non-interactively (e.g. in
|
|
4211
|
+
scripts), you can use this flag to easily get the IDs of created resources for further processing.
|
|
4212
|
+
```
|
|
4213
|
+
|
|
4187
4214
|
## `mw sftp-user list`
|
|
4188
4215
|
|
|
4189
4216
|
List all SFTP users for a project.
|
|
@@ -4217,6 +4244,31 @@ FLAG DESCRIPTIONS
|
|
|
4217
4244
|
to persistently set a default project for all commands that accept this flag.
|
|
4218
4245
|
```
|
|
4219
4246
|
|
|
4247
|
+
## `mw ssh-user delete SSH-USER-ID`
|
|
4248
|
+
|
|
4249
|
+
Delete an SSH user
|
|
4250
|
+
|
|
4251
|
+
```
|
|
4252
|
+
USAGE
|
|
4253
|
+
$ mw ssh-user delete SSH-USER-ID [-q] [-f]
|
|
4254
|
+
|
|
4255
|
+
ARGUMENTS
|
|
4256
|
+
SSH-USER-ID The ID of the SSH user to delete
|
|
4257
|
+
|
|
4258
|
+
FLAGS
|
|
4259
|
+
-f, --force Do not ask for confirmation
|
|
4260
|
+
-q, --quiet suppress process output and only display a machine-readable summary.
|
|
4261
|
+
|
|
4262
|
+
DESCRIPTION
|
|
4263
|
+
Delete an SSH user
|
|
4264
|
+
|
|
4265
|
+
FLAG DESCRIPTIONS
|
|
4266
|
+
-q, --quiet suppress process output and only display a machine-readable summary.
|
|
4267
|
+
|
|
4268
|
+
This flag controls if you want to see the process output or only a summary. When using mw non-interactively (e.g. in
|
|
4269
|
+
scripts), you can use this flag to easily get the IDs of created resources for further processing.
|
|
4270
|
+
```
|
|
4271
|
+
|
|
4220
4272
|
## `mw ssh-user list`
|
|
4221
4273
|
|
|
4222
4274
|
List all SSH users for a project.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DeleteBaseCommand } from "../../DeleteBaseCommand.js";
|
|
2
|
+
export default class Delete extends DeleteBaseCommand<typeof Delete> {
|
|
3
|
+
static description: string;
|
|
4
|
+
static resourceName: string;
|
|
5
|
+
static flags: {
|
|
6
|
+
force: import("@oclif/core/lib/interfaces/parser.js").BooleanFlag<boolean>;
|
|
7
|
+
quiet: import("@oclif/core/lib/interfaces/parser.js").BooleanFlag<boolean>;
|
|
8
|
+
};
|
|
9
|
+
static args: {
|
|
10
|
+
"sftp-user-id": import("@oclif/core/lib/interfaces/parser.js").Arg<string, Record<string, unknown>>;
|
|
11
|
+
};
|
|
12
|
+
protected deleteResource(): Promise<void>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { DeleteBaseCommand } from "../../DeleteBaseCommand.js";
|
|
2
|
+
import assertSuccess from "../../lib/assert_success.js";
|
|
3
|
+
import { Args } from "@oclif/core";
|
|
4
|
+
export default class Delete extends DeleteBaseCommand {
|
|
5
|
+
static description = "Delete an SFTP user";
|
|
6
|
+
static resourceName = "SFTP user";
|
|
7
|
+
static flags = { ...DeleteBaseCommand.baseFlags };
|
|
8
|
+
static args = {
|
|
9
|
+
"sftp-user-id": Args.string({
|
|
10
|
+
description: "The ID of the SFTP user to delete",
|
|
11
|
+
required: true,
|
|
12
|
+
}),
|
|
13
|
+
};
|
|
14
|
+
async deleteResource() {
|
|
15
|
+
const sftpUserId = this.args["sftp-user-id"];
|
|
16
|
+
const response = await this.apiClient.sshsftpUser.sftpUserDeleteSftpUser({
|
|
17
|
+
sftpUserId,
|
|
18
|
+
});
|
|
19
|
+
assertSuccess(response);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DeleteBaseCommand } from "../../DeleteBaseCommand.js";
|
|
2
|
+
export default class Delete extends DeleteBaseCommand<typeof Delete> {
|
|
3
|
+
static description: string;
|
|
4
|
+
static resourceName: string;
|
|
5
|
+
static flags: {
|
|
6
|
+
force: import("@oclif/core/lib/interfaces/parser.js").BooleanFlag<boolean>;
|
|
7
|
+
quiet: import("@oclif/core/lib/interfaces/parser.js").BooleanFlag<boolean>;
|
|
8
|
+
};
|
|
9
|
+
static args: {
|
|
10
|
+
"ssh-user-id": import("@oclif/core/lib/interfaces/parser.js").Arg<string, Record<string, unknown>>;
|
|
11
|
+
};
|
|
12
|
+
protected deleteResource(): Promise<void>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { DeleteBaseCommand } from "../../DeleteBaseCommand.js";
|
|
2
|
+
import assertSuccess from "../../lib/assert_success.js";
|
|
3
|
+
import { Args } from "@oclif/core";
|
|
4
|
+
export default class Delete extends DeleteBaseCommand {
|
|
5
|
+
static description = "Delete an SSH user";
|
|
6
|
+
static resourceName = "SSH user";
|
|
7
|
+
static flags = { ...DeleteBaseCommand.baseFlags };
|
|
8
|
+
static args = {
|
|
9
|
+
"ssh-user-id": Args.string({
|
|
10
|
+
description: "The ID of the SSH user to delete",
|
|
11
|
+
required: true,
|
|
12
|
+
}),
|
|
13
|
+
};
|
|
14
|
+
async deleteResource() {
|
|
15
|
+
const sshUserId = this.args["ssh-user-id"];
|
|
16
|
+
const response = await this.apiClient.sshsftpUser.sshUserDeleteSshUser({
|
|
17
|
+
sshUserId,
|
|
18
|
+
});
|
|
19
|
+
assertSuccess(response);
|
|
20
|
+
}
|
|
21
|
+
}
|