From 26af52003c7bb228e25d49cac1f933ce4abbfcf3 Mon Sep 17 00:00:00 2001 From: Michel Hopfner Date: Thu, 11 Jul 2024 11:01:14 +0200 Subject: [PATCH 1/2] add humhub.tsx --- src/commands/app/install/humhub.tsx | 42 +++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 src/commands/app/install/humhub.tsx diff --git a/src/commands/app/install/humhub.tsx b/src/commands/app/install/humhub.tsx new file mode 100644 index 00000000..2b807525 --- /dev/null +++ b/src/commands/app/install/humhub.tsx @@ -0,0 +1,42 @@ +import { ExecRenderBaseCommand } from "../../../lib/basecommands/ExecRenderBaseCommand.js"; +import React from "react"; +import { + AppInstallationResult, + AppInstaller, +} from "../../../lib/resources/app/Installer.js"; + +export const humhubInstaller = new AppInstaller( + "e71c238f-f780-4bd4-9492-56f015294db6", + "HumHub", + [ + "version", + "host", + "admin-user", + "admin-email", + "admin-pass", + "admin-firstname", + "admin-lastname", + "site-title", + ] as const, +); + +export default class InstallHumhub extends ExecRenderBaseCommand< + typeof InstallHumhub, + AppInstallationResult +> { + static description = humhubInstaller.description; + static flags = humhubInstaller.flags; + + protected async exec(): Promise<{ appInstallationId: string }> { + return humhubInstaller.exec( + this.apiClient, + this.args, + this.flags, + this.config, + ); + } + + protected render(result: AppInstallationResult): React.ReactNode { + return humhubInstaller.render(result, this.flags); + } +} From 7ef9ce286ed035b7da20f4942837c3582ee5fb25 Mon Sep 17 00:00:00 2001 From: martin-helmich Date: Thu, 22 Aug 2024 11:51:01 +0000 Subject: [PATCH 2/2] chore: re-generate README --- README.md | 94 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 94 insertions(+) diff --git a/README.md b/README.md index 065e489c..09664bf9 100644 --- a/README.md +++ b/README.md @@ -125,6 +125,7 @@ USAGE * [`mw app install contao`](#mw-app-install-contao) * [`mw app install drupal`](#mw-app-install-drupal) * [`mw app install grav`](#mw-app-install-grav) +* [`mw app install humhub`](#mw-app-install-humhub) * [`mw app install joomla`](#mw-app-install-joomla) * [`mw app install matomo`](#mw-app-install-matomo) * [`mw app install moodle`](#mw-app-install-moodle) @@ -911,6 +912,99 @@ FLAG DESCRIPTIONS If unspecified, the Grav will be installed in the latest available version. ``` +## `mw app install humhub` + +Creates new HumHub installation. + +``` +USAGE + $ mw app install humhub --version [-p ] [-q] [--host ] [--admin-user ] [--admin-email + ] [--admin-pass ] [--admin-firstname ] [--admin-lastname ] [--site-title ] [-w] + [--wait-timeout ] + +FLAGS + -p, --project-id= ID or short ID of a project; this flag is optional if a default project is set in the + context + -q, --quiet suppress process output and only display a machine-readable summary. + -w, --wait wait for the resource to be ready. + --admin-email= email address of your administrator user. + --admin-firstname= first name of your administrator user. + --admin-lastname= Lastname of your administrator user. + --admin-pass= password of your administrator user. + --admin-user= Username for your administrator user. + --host= host to initially configure your HumHub installation with; needs to be created + separately. + --site-title= site title for your HumHub installation. + --version= (required) [default: latest] version of HumHub to be installed. + --wait-timeout= [default: 600s] the duration to wait for the resource to be ready (common units like + 'ms', 's', 'm' are accepted). + +DESCRIPTION + Creates new HumHub installation. + +FLAG DESCRIPTIONS + -p, --project-id= + + ID or short ID of a project; this flag is optional if a default project is set in the context + + May contain a short ID or a full ID of a project; you can also use the "mw context set --project-id=" command + to persistently set a default project for all commands that accept this flag. + + -q, --quiet suppress process output and only display a machine-readable summary. + + This flag controls if you want to see the process output or only a summary. When using mw non-interactively (e.g. in + scripts), you can use this flag to easily get the IDs of created resources for further processing. + + --admin-email= email address of your administrator user. + + email address that will be used for the first administrator user that is created during the HumHub installation. + If unspecified, email address of your mStudio account will be used. This email address can be changed after the + installation is finished. + + --admin-firstname= first name of your administrator user. + + The first name that will be used for the first administrator user that is created during the HumHub installation. + If unspecified, the first name of your mStudio user will be used. This value can be changed after the installation + is finished. + + --admin-lastname= Lastname of your administrator user. + + The last name that will be used for the first administrator user that is created during the HumHub installation. + If unspecified, the last name of your mStudio user will be used. This value can be changed after the installation is + finished. + + --admin-pass= password of your administrator user. + + The password that will be used for the first administrator user that is created during the HumHub installation. + If unspecified, a random secure password will be generated and printed to stdout. This password can be changed after + the installation is finished + + --admin-user= Username for your administrator user. + + Username of the first administrator user which will be created during the HumHub installation. + If unspecified, an adequate username will be generated. + After the installation is finished, the username can be changed and additional administrator users can be created. + + --host= host to initially configure your HumHub installation with; needs to be created separately. + + Specify a host which will be used during the installation and as an initial host for the HumHub configuration. + If unspecified, the default host for the given project will be used. + This does not change the target of the used host and can be changed later by configuring the host and your HumHub + installation. + + --site-title= site title for your HumHub installation. + + The site title for this HumHub installation. It is also the title shown in the app overview in the mStudio and the + CLI. + If unspecified, the application name and the given project ID will be used. The title can be changed after the + installation is finished + + --version= version of HumHub to be installed. + + Specify the version in which your HumHub will be installed. + If unspecified, the HumHub will be installed in the latest available version. +``` + ## `mw app install joomla` Creates new Joomla! installation.