@mittwald/cli 1.0.0-alpha.40 → 1.0.0-alpha.41
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 +239 -2
- package/dist/commands/app/install/matomo.js +5 -5
- package/dist/commands/app/install/moodle.d.ts +12 -0
- package/dist/commands/app/install/moodle.js +21 -0
- package/dist/commands/app/install/neos.d.ts +12 -0
- package/dist/commands/app/install/neos.js +21 -0
- package/dist/commands/app/install/prestashop.d.ts +12 -0
- package/dist/commands/app/install/prestashop.js +23 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -127,7 +127,10 @@ USAGE
|
|
|
127
127
|
* [`mw app install grav`](#mw-app-install-grav)
|
|
128
128
|
* [`mw app install joomla`](#mw-app-install-joomla)
|
|
129
129
|
* [`mw app install matomo`](#mw-app-install-matomo)
|
|
130
|
+
* [`mw app install moodle`](#mw-app-install-moodle)
|
|
131
|
+
* [`mw app install neos`](#mw-app-install-neos)
|
|
130
132
|
* [`mw app install nextcloud`](#mw-app-install-nextcloud)
|
|
133
|
+
* [`mw app install prestashop`](#mw-app-install-prestashop)
|
|
131
134
|
* [`mw app install shopware5`](#mw-app-install-shopware5)
|
|
132
135
|
* [`mw app install shopware6`](#mw-app-install-shopware6)
|
|
133
136
|
* [`mw app install typo3`](#mw-app-install-typo3)
|
|
@@ -1008,6 +1011,151 @@ FLAG DESCRIPTIONS
|
|
|
1008
1011
|
If unspecified, the Matomo will be installed in the latest available version.
|
|
1009
1012
|
```
|
|
1010
1013
|
|
|
1014
|
+
## `mw app install moodle`
|
|
1015
|
+
|
|
1016
|
+
Creates new Moodle installation.
|
|
1017
|
+
|
|
1018
|
+
```
|
|
1019
|
+
USAGE
|
|
1020
|
+
$ mw app install moodle --version <value> [-p <value>] [-q] [--host <value>] [--admin-user <value>] [--admin-email
|
|
1021
|
+
<value>] [--admin-pass <value>] [--site-title <value>] [-w]
|
|
1022
|
+
|
|
1023
|
+
FLAGS
|
|
1024
|
+
-p, --project-id=<value> ID or short ID of a project; this flag is optional if a default project is set in the
|
|
1025
|
+
context
|
|
1026
|
+
-q, --quiet suppress process output and only display a machine-readable summary.
|
|
1027
|
+
-w, --wait wait for your Moodle to be ready.
|
|
1028
|
+
--admin-email=<value> email address of your administrator user.
|
|
1029
|
+
--admin-pass=<value> password of your administrator user.
|
|
1030
|
+
--admin-user=<value> Username for your administrator user.
|
|
1031
|
+
--host=<value> host to initially configure your Moodle installation with; needs to be created separately.
|
|
1032
|
+
--site-title=<value> site title for your Moodle installation.
|
|
1033
|
+
--version=<value> (required) [default: latest] version of Moodle to be installed.
|
|
1034
|
+
|
|
1035
|
+
DESCRIPTION
|
|
1036
|
+
Creates new Moodle installation.
|
|
1037
|
+
|
|
1038
|
+
FLAG DESCRIPTIONS
|
|
1039
|
+
-p, --project-id=<value> ID or short ID of a project; this flag is optional if a default project is set in the context
|
|
1040
|
+
|
|
1041
|
+
May contain a short ID or a full ID of a project; you can also use the "mw context set --project-id=<VALUE>" command
|
|
1042
|
+
to persistently set a default project for all commands that accept this flag.
|
|
1043
|
+
|
|
1044
|
+
-q, --quiet suppress process output and only display a machine-readable summary.
|
|
1045
|
+
|
|
1046
|
+
This flag controls if you want to see the process output or only a summary. When using mw non-interactively (e.g. in
|
|
1047
|
+
scripts), you can use this flag to easily get the IDs of created resources for further processing.
|
|
1048
|
+
|
|
1049
|
+
--admin-email=<value> email address of your administrator user.
|
|
1050
|
+
|
|
1051
|
+
email address that will be used for the first administrator user that is created during the Moodle installation.
|
|
1052
|
+
If unspecified, email address of your mStudio account will be used. This email address can be changed after the
|
|
1053
|
+
installation is finished.
|
|
1054
|
+
|
|
1055
|
+
--admin-pass=<value> password of your administrator user.
|
|
1056
|
+
|
|
1057
|
+
The password that will be used for the first administrator user that is created during the Moodle installation.
|
|
1058
|
+
If unspecified, a random secure password will be generated and printed to stdout. This password can be changed after
|
|
1059
|
+
the installation is finished
|
|
1060
|
+
|
|
1061
|
+
--admin-user=<value> Username for your administrator user.
|
|
1062
|
+
|
|
1063
|
+
Username of the first administrator user which will be created during the Moodle installation.
|
|
1064
|
+
If unspecified, an adequate username will be generated.
|
|
1065
|
+
After the installation is finished, the username can be changed and additional administrator users can be created.
|
|
1066
|
+
|
|
1067
|
+
--host=<value> host to initially configure your Moodle installation with; needs to be created separately.
|
|
1068
|
+
|
|
1069
|
+
Specify a host which will be used during the installation and as an initial host for the Moodle configuration.
|
|
1070
|
+
If unspecified, the default host for the given project will be used.
|
|
1071
|
+
This does not change the target of the used host and can be changed later by configuring the host and your Moodle
|
|
1072
|
+
installation.
|
|
1073
|
+
|
|
1074
|
+
--site-title=<value> site title for your Moodle installation.
|
|
1075
|
+
|
|
1076
|
+
The site title for this Moodle installation. It is also the title shown in the app overview in the mStudio and the
|
|
1077
|
+
CLI.
|
|
1078
|
+
If unspecified, the application name and the given project ID will be used. The title can be changed after the
|
|
1079
|
+
installation is finished
|
|
1080
|
+
|
|
1081
|
+
--version=<value> version of Moodle to be installed.
|
|
1082
|
+
|
|
1083
|
+
Specify the version in which your Moodle will be installed.
|
|
1084
|
+
If unspecified, the Moodle will be installed in the latest available version.
|
|
1085
|
+
```
|
|
1086
|
+
|
|
1087
|
+
## `mw app install neos`
|
|
1088
|
+
|
|
1089
|
+
Creates new NEOS installation.
|
|
1090
|
+
|
|
1091
|
+
```
|
|
1092
|
+
USAGE
|
|
1093
|
+
$ mw app install neos --version <value> [-p <value>] [-q] [--admin-user <value>] [--admin-pass <value>]
|
|
1094
|
+
[--admin-firstname <value>] [--admin-lastname <value>] [--site-title <value>] [-w]
|
|
1095
|
+
|
|
1096
|
+
FLAGS
|
|
1097
|
+
-p, --project-id=<value> ID or short ID of a project; this flag is optional if a default project is set in the
|
|
1098
|
+
context
|
|
1099
|
+
-q, --quiet suppress process output and only display a machine-readable summary.
|
|
1100
|
+
-w, --wait wait for your NEOS to be ready.
|
|
1101
|
+
--admin-firstname=<value> first name of your administrator user.
|
|
1102
|
+
--admin-lastname=<value> Lastname of your administrator user.
|
|
1103
|
+
--admin-pass=<value> password of your administrator user.
|
|
1104
|
+
--admin-user=<value> Username for your administrator user.
|
|
1105
|
+
--site-title=<value> site title for your NEOS installation.
|
|
1106
|
+
--version=<value> (required) [default: latest] version of NEOS to be installed.
|
|
1107
|
+
|
|
1108
|
+
DESCRIPTION
|
|
1109
|
+
Creates new NEOS installation.
|
|
1110
|
+
|
|
1111
|
+
FLAG DESCRIPTIONS
|
|
1112
|
+
-p, --project-id=<value> ID or short ID of a project; this flag is optional if a default project is set in the context
|
|
1113
|
+
|
|
1114
|
+
May contain a short ID or a full ID of a project; you can also use the "mw context set --project-id=<VALUE>" command
|
|
1115
|
+
to persistently set a default project for all commands that accept this flag.
|
|
1116
|
+
|
|
1117
|
+
-q, --quiet suppress process output and only display a machine-readable summary.
|
|
1118
|
+
|
|
1119
|
+
This flag controls if you want to see the process output or only a summary. When using mw non-interactively (e.g. in
|
|
1120
|
+
scripts), you can use this flag to easily get the IDs of created resources for further processing.
|
|
1121
|
+
|
|
1122
|
+
--admin-firstname=<value> first name of your administrator user.
|
|
1123
|
+
|
|
1124
|
+
The first name that will be used for the first administrator user that is created during the NEOS installation.
|
|
1125
|
+
If unspecified, the first name of your mStudio user will be used. This value can be changed after the installation
|
|
1126
|
+
is finished.
|
|
1127
|
+
|
|
1128
|
+
--admin-lastname=<value> Lastname of your administrator user.
|
|
1129
|
+
|
|
1130
|
+
The last name that will be used for the first administrator user that is created during the NEOS installation.
|
|
1131
|
+
If unspecified, the last name of your mStudio user will be used. This value can be changed after the installation is
|
|
1132
|
+
finished.
|
|
1133
|
+
|
|
1134
|
+
--admin-pass=<value> password of your administrator user.
|
|
1135
|
+
|
|
1136
|
+
The password that will be used for the first administrator user that is created during the NEOS installation.
|
|
1137
|
+
If unspecified, a random secure password will be generated and printed to stdout. This password can be changed after
|
|
1138
|
+
the installation is finished
|
|
1139
|
+
|
|
1140
|
+
--admin-user=<value> Username for your administrator user.
|
|
1141
|
+
|
|
1142
|
+
Username of the first administrator user which will be created during the NEOS installation.
|
|
1143
|
+
If unspecified, an adequate username will be generated.
|
|
1144
|
+
After the installation is finished, the username can be changed and additional administrator users can be created.
|
|
1145
|
+
|
|
1146
|
+
--site-title=<value> site title for your NEOS installation.
|
|
1147
|
+
|
|
1148
|
+
The site title for this NEOS installation. It is also the title shown in the app overview in the mStudio and the
|
|
1149
|
+
CLI.
|
|
1150
|
+
If unspecified, the application name and the given project ID will be used. The title can be changed after the
|
|
1151
|
+
installation is finished
|
|
1152
|
+
|
|
1153
|
+
--version=<value> version of NEOS to be installed.
|
|
1154
|
+
|
|
1155
|
+
Specify the version in which your NEOS will be installed.
|
|
1156
|
+
If unspecified, the NEOS will be installed in the latest available version.
|
|
1157
|
+
```
|
|
1158
|
+
|
|
1011
1159
|
## `mw app install nextcloud`
|
|
1012
1160
|
|
|
1013
1161
|
Creates new Nextcloud installation.
|
|
@@ -1082,6 +1230,95 @@ FLAG DESCRIPTIONS
|
|
|
1082
1230
|
If unspecified, the Nextcloud will be installed in the latest available version.
|
|
1083
1231
|
```
|
|
1084
1232
|
|
|
1233
|
+
## `mw app install prestashop`
|
|
1234
|
+
|
|
1235
|
+
Creates new PrestaShop installation.
|
|
1236
|
+
|
|
1237
|
+
```
|
|
1238
|
+
USAGE
|
|
1239
|
+
$ mw app install prestashop --version <value> [-p <value>] [-q] [--host <value>] [--admin-email <value>] [--admin-pass
|
|
1240
|
+
<value>] [--admin-firstname <value>] [--admin-lastname <value>] [--site-title <value>] [--shop-lang <value>] [-w]
|
|
1241
|
+
|
|
1242
|
+
FLAGS
|
|
1243
|
+
-p, --project-id=<value> ID or short ID of a project; this flag is optional if a default project is set in the
|
|
1244
|
+
context
|
|
1245
|
+
-q, --quiet suppress process output and only display a machine-readable summary.
|
|
1246
|
+
-w, --wait wait for your PrestaShop to be ready.
|
|
1247
|
+
--admin-email=<value> email address of your administrator user.
|
|
1248
|
+
--admin-firstname=<value> first name of your administrator user.
|
|
1249
|
+
--admin-lastname=<value> Lastname of your administrator user.
|
|
1250
|
+
--admin-pass=<value> password of your administrator user.
|
|
1251
|
+
--host=<value> host to initially configure your PrestaShop installation with; needs to be created
|
|
1252
|
+
separately.
|
|
1253
|
+
--shop-lang=<value> language your PrestaShop will be working with.
|
|
1254
|
+
--site-title=<value> site title for your PrestaShop installation.
|
|
1255
|
+
--version=<value> (required) [default: latest] version of PrestaShop to be installed.
|
|
1256
|
+
|
|
1257
|
+
DESCRIPTION
|
|
1258
|
+
Creates new PrestaShop installation.
|
|
1259
|
+
|
|
1260
|
+
FLAG DESCRIPTIONS
|
|
1261
|
+
-p, --project-id=<value> ID or short ID of a project; this flag is optional if a default project is set in the context
|
|
1262
|
+
|
|
1263
|
+
May contain a short ID or a full ID of a project; you can also use the "mw context set --project-id=<VALUE>" command
|
|
1264
|
+
to persistently set a default project for all commands that accept this flag.
|
|
1265
|
+
|
|
1266
|
+
-q, --quiet suppress process output and only display a machine-readable summary.
|
|
1267
|
+
|
|
1268
|
+
This flag controls if you want to see the process output or only a summary. When using mw non-interactively (e.g. in
|
|
1269
|
+
scripts), you can use this flag to easily get the IDs of created resources for further processing.
|
|
1270
|
+
|
|
1271
|
+
--admin-email=<value> email address of your administrator user.
|
|
1272
|
+
|
|
1273
|
+
email address that will be used for the first administrator user that is created during the PrestaShop installation.
|
|
1274
|
+
If unspecified, email address of your mStudio account will be used. This email address can be changed after the
|
|
1275
|
+
installation is finished.
|
|
1276
|
+
|
|
1277
|
+
--admin-firstname=<value> first name of your administrator user.
|
|
1278
|
+
|
|
1279
|
+
The first name that will be used for the first administrator user that is created during the PrestaShop
|
|
1280
|
+
installation.
|
|
1281
|
+
If unspecified, the first name of your mStudio user will be used. This value can be changed after the installation
|
|
1282
|
+
is finished.
|
|
1283
|
+
|
|
1284
|
+
--admin-lastname=<value> Lastname of your administrator user.
|
|
1285
|
+
|
|
1286
|
+
The last name that will be used for the first administrator user that is created during the PrestaShop installation.
|
|
1287
|
+
If unspecified, the last name of your mStudio user will be used. This value can be changed after the installation is
|
|
1288
|
+
finished.
|
|
1289
|
+
|
|
1290
|
+
--admin-pass=<value> password of your administrator user.
|
|
1291
|
+
|
|
1292
|
+
The password that will be used for the first administrator user that is created during the PrestaShop installation.
|
|
1293
|
+
If unspecified, a random secure password will be generated and printed to stdout. This password can be changed after
|
|
1294
|
+
the installation is finished
|
|
1295
|
+
|
|
1296
|
+
--host=<value> host to initially configure your PrestaShop installation with; needs to be created separately.
|
|
1297
|
+
|
|
1298
|
+
Specify a host which will be used during the installation and as an initial host for the PrestaShop configuration.
|
|
1299
|
+
If unspecified, the default host for the given project will be used.
|
|
1300
|
+
This does not change the target of the used host and can be changed later by configuring the host and your
|
|
1301
|
+
PrestaShop installation.
|
|
1302
|
+
|
|
1303
|
+
--shop-lang=<value> language your PrestaShop will be working with.
|
|
1304
|
+
|
|
1305
|
+
The default language your PrestaShop installation will be using. The front- and back end will be displayed using the
|
|
1306
|
+
given language.
|
|
1307
|
+
If unspecified, this will default to German (de_DE). The language can be changed after the installation is finished.
|
|
1308
|
+
|
|
1309
|
+
--site-title=<value> site title for your PrestaShop installation.
|
|
1310
|
+
|
|
1311
|
+
The site title for this PrestaShop installation. It is also the title shown in the app overview in the mStudio and
|
|
1312
|
+
the CLI.
|
|
1313
|
+
If unspecified, the application name and the given project ID will be used. The title can be changed after the
|
|
1314
|
+
installation is finished
|
|
1315
|
+
|
|
1316
|
+
--version=<value> version of PrestaShop to be installed.
|
|
1317
|
+
|
|
1318
|
+
Specify the version in which your PrestaShop will be installed.
|
|
1319
|
+
If unspecified, the PrestaShop will be installed in the latest available version.
|
|
1320
|
+
```
|
|
1321
|
+
|
|
1085
1322
|
## `mw app install shopware5`
|
|
1086
1323
|
|
|
1087
1324
|
Creates new Shopware 5 installation.
|
|
@@ -3154,7 +3391,7 @@ DESCRIPTION
|
|
|
3154
3391
|
Display help for mw.
|
|
3155
3392
|
```
|
|
3156
3393
|
|
|
3157
|
-
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.0.
|
|
3394
|
+
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.0.20/src/commands/help.ts)_
|
|
3158
3395
|
|
|
3159
3396
|
## `mw login reset`
|
|
3160
3397
|
|
|
@@ -4548,7 +4785,7 @@ EXAMPLES
|
|
|
4548
4785
|
$ mw update --available
|
|
4549
4786
|
```
|
|
4550
4787
|
|
|
4551
|
-
_See code: [@oclif/plugin-update](https://github.com/oclif/plugin-update/blob/v4.2.
|
|
4788
|
+
_See code: [@oclif/plugin-update](https://github.com/oclif/plugin-update/blob/v4.2.3/src/commands/update.ts)_
|
|
4552
4789
|
|
|
4553
4790
|
## `mw user api-token create`
|
|
4554
4791
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ExecRenderBaseCommand } from "../../../rendering/react/ExecRenderBaseCommand.js";
|
|
2
2
|
import { AppInstaller, } from "../../../lib/app/Installer.js";
|
|
3
|
-
const
|
|
3
|
+
const matomoInstaller = new AppInstaller("91fa05e7-34f7-42e8-a8d3-a9c42abd5f8c", "Matomo", [
|
|
4
4
|
"version",
|
|
5
5
|
"host",
|
|
6
6
|
"admin-user",
|
|
@@ -10,12 +10,12 @@ const installer = new AppInstaller("91fa05e7-34f7-42e8-a8d3-a9c42abd5f8c", "Mato
|
|
|
10
10
|
"wait",
|
|
11
11
|
]);
|
|
12
12
|
export default class InstallMatomo extends ExecRenderBaseCommand {
|
|
13
|
-
static description =
|
|
14
|
-
static flags =
|
|
13
|
+
static description = matomoInstaller.description;
|
|
14
|
+
static flags = matomoInstaller.flags;
|
|
15
15
|
async exec() {
|
|
16
|
-
return
|
|
16
|
+
return matomoInstaller.exec(this.apiClient, this.args, this.flags, this.config);
|
|
17
17
|
}
|
|
18
18
|
render(result) {
|
|
19
|
-
return
|
|
19
|
+
return matomoInstaller.render(result, this.flags);
|
|
20
20
|
}
|
|
21
21
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ExecRenderBaseCommand } from "../../../rendering/react/ExecRenderBaseCommand.js";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { AppInstallationResult, AppInstaller } from "../../../lib/app/Installer.js";
|
|
4
|
+
export declare const moodleInstaller: AppInstaller<"version" | "host" | "admin-user" | "admin-email" | "admin-pass" | "site-title" | "wait">;
|
|
5
|
+
export default class InstallMoodle extends ExecRenderBaseCommand<typeof InstallMoodle, AppInstallationResult> {
|
|
6
|
+
static description: string;
|
|
7
|
+
static flags: import("@oclif/core/lib/interfaces/parser.js").FlagInput<import("../../../lib/app/flags.js").RelevantFlags<readonly ("version" | "host" | "admin-user" | "admin-email" | "admin-pass" | "site-title" | "wait")[]>>;
|
|
8
|
+
protected exec(): Promise<{
|
|
9
|
+
appInstallationId: string;
|
|
10
|
+
}>;
|
|
11
|
+
protected render(result: AppInstallationResult): React.ReactNode;
|
|
12
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ExecRenderBaseCommand } from "../../../rendering/react/ExecRenderBaseCommand.js";
|
|
2
|
+
import { AppInstaller, } from "../../../lib/app/Installer.js";
|
|
3
|
+
export const moodleInstaller = new AppInstaller("5ba3b4ea-9f79-460a-bbef-d901beca4cf1", "Moodle", [
|
|
4
|
+
"version",
|
|
5
|
+
"host",
|
|
6
|
+
"admin-user",
|
|
7
|
+
"admin-email",
|
|
8
|
+
"admin-pass",
|
|
9
|
+
"site-title",
|
|
10
|
+
"wait",
|
|
11
|
+
]);
|
|
12
|
+
export default class InstallMoodle extends ExecRenderBaseCommand {
|
|
13
|
+
static description = moodleInstaller.description;
|
|
14
|
+
static flags = moodleInstaller.flags;
|
|
15
|
+
async exec() {
|
|
16
|
+
return moodleInstaller.exec(this.apiClient, this.args, this.flags, this.config);
|
|
17
|
+
}
|
|
18
|
+
render(result) {
|
|
19
|
+
return moodleInstaller.render(result, this.flags);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ExecRenderBaseCommand } from "../../../rendering/react/ExecRenderBaseCommand.js";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { AppInstallationResult, AppInstaller } from "../../../lib/app/Installer.js";
|
|
4
|
+
export declare const neosInstaller: AppInstaller<"version" | "admin-user" | "admin-pass" | "admin-firstname" | "admin-lastname" | "site-title" | "wait">;
|
|
5
|
+
export default class InstallNeos extends ExecRenderBaseCommand<typeof InstallNeos, AppInstallationResult> {
|
|
6
|
+
static description: string;
|
|
7
|
+
static flags: import("@oclif/core/lib/interfaces/parser.js").FlagInput<import("../../../lib/app/flags.js").RelevantFlags<readonly ("version" | "admin-user" | "admin-pass" | "admin-firstname" | "admin-lastname" | "site-title" | "wait")[]>>;
|
|
8
|
+
protected exec(): Promise<{
|
|
9
|
+
appInstallationId: string;
|
|
10
|
+
}>;
|
|
11
|
+
protected render(result: AppInstallationResult): React.ReactNode;
|
|
12
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ExecRenderBaseCommand } from "../../../rendering/react/ExecRenderBaseCommand.js";
|
|
2
|
+
import { AppInstaller, } from "../../../lib/app/Installer.js";
|
|
3
|
+
export const neosInstaller = new AppInstaller("1f55f9fa-1902-409c-b305-7e428c5ed64d", "NEOS", [
|
|
4
|
+
"version",
|
|
5
|
+
"admin-user",
|
|
6
|
+
"admin-pass",
|
|
7
|
+
"admin-firstname",
|
|
8
|
+
"admin-lastname",
|
|
9
|
+
"site-title",
|
|
10
|
+
"wait",
|
|
11
|
+
]);
|
|
12
|
+
export default class InstallNeos extends ExecRenderBaseCommand {
|
|
13
|
+
static description = neosInstaller.description;
|
|
14
|
+
static flags = neosInstaller.flags;
|
|
15
|
+
async exec() {
|
|
16
|
+
return neosInstaller.exec(this.apiClient, this.args, this.flags, this.config);
|
|
17
|
+
}
|
|
18
|
+
render(result) {
|
|
19
|
+
return neosInstaller.render(result, this.flags);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ExecRenderBaseCommand } from "../../../rendering/react/ExecRenderBaseCommand.js";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { AppInstallationResult, AppInstaller } from "../../../lib/app/Installer.js";
|
|
4
|
+
export declare const prestashopInstaller: AppInstaller<"version" | "host" | "admin-email" | "admin-pass" | "admin-firstname" | "admin-lastname" | "site-title" | "shop-lang" | "wait">;
|
|
5
|
+
export default class InstallPrestashop extends ExecRenderBaseCommand<typeof InstallPrestashop, AppInstallationResult> {
|
|
6
|
+
static description: string;
|
|
7
|
+
static flags: import("@oclif/core/lib/interfaces/parser.js").FlagInput<import("../../../lib/app/flags.js").RelevantFlags<readonly ("version" | "host" | "admin-email" | "admin-pass" | "admin-firstname" | "admin-lastname" | "site-title" | "shop-lang" | "wait")[]>>;
|
|
8
|
+
protected exec(): Promise<{
|
|
9
|
+
appInstallationId: string;
|
|
10
|
+
}>;
|
|
11
|
+
protected render(result: AppInstallationResult): React.ReactNode;
|
|
12
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ExecRenderBaseCommand } from "../../../rendering/react/ExecRenderBaseCommand.js";
|
|
2
|
+
import { AppInstaller, } from "../../../lib/app/Installer.js";
|
|
3
|
+
export const prestashopInstaller = new AppInstaller("3a231de7-6fd2-4aab-9948-45906952752f", "PrestaShop", [
|
|
4
|
+
"version",
|
|
5
|
+
"host",
|
|
6
|
+
"admin-email",
|
|
7
|
+
"admin-pass",
|
|
8
|
+
"admin-firstname",
|
|
9
|
+
"admin-lastname",
|
|
10
|
+
"site-title",
|
|
11
|
+
"shop-lang",
|
|
12
|
+
"wait",
|
|
13
|
+
]);
|
|
14
|
+
export default class InstallPrestashop extends ExecRenderBaseCommand {
|
|
15
|
+
static description = prestashopInstaller.description;
|
|
16
|
+
static flags = prestashopInstaller.flags;
|
|
17
|
+
async exec() {
|
|
18
|
+
return prestashopInstaller.exec(this.apiClient, this.args, this.flags, this.config);
|
|
19
|
+
}
|
|
20
|
+
render(result) {
|
|
21
|
+
return prestashopInstaller.render(result, this.flags);
|
|
22
|
+
}
|
|
23
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mittwald/cli",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.41",
|
|
4
4
|
"description": "Hand-crafted CLI for the mittwald API",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
"prettier": "^3.2.5",
|
|
97
97
|
"prettier-plugin-jsdoc": "^1.3.0",
|
|
98
98
|
"prettier-plugin-package": "^1.4.0",
|
|
99
|
-
"prettier-plugin-sort-json": "^
|
|
99
|
+
"prettier-plugin-sort-json": "^4.0.0",
|
|
100
100
|
"rimraf": "^5.0.1",
|
|
101
101
|
"ts-node": "^10.9.2",
|
|
102
102
|
"tsx": "^4.7.1",
|