@jtl-software/create-cloud-app 0.0.19 → 0.0.20
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/index.js +9 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -769,17 +769,18 @@ function buildHubInstallUrl(hubHost, tenantSlug, appId) {
|
|
|
769
769
|
function buildHubAppOverviewUrl(hubHost, tenantSlug) {
|
|
770
770
|
return `${hubHost}/${tenantSlug}/admin/app-overview?tab=development-apps`;
|
|
771
771
|
}
|
|
772
|
+
function terminalLink(url, text2 = url) {
|
|
773
|
+
const OSC = "\x1B]";
|
|
774
|
+
const ST = "\x1B\\";
|
|
775
|
+
return `${OSC}8;;${url}${ST}${text2}${OSC}8;;${ST}`;
|
|
776
|
+
}
|
|
772
777
|
function printHubLink(hubHost, tenantSlug, appId, isInstalled) {
|
|
773
778
|
if (isInstalled) {
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
"Already installed \u2014 open in Hub"
|
|
777
|
-
);
|
|
779
|
+
const url = buildHubAppOverviewUrl(hubHost, tenantSlug);
|
|
780
|
+
p.note(pc.cyan(terminalLink(url)), "Already installed \u2014 open in Hub");
|
|
778
781
|
} else {
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
"Install in Hub"
|
|
782
|
-
);
|
|
782
|
+
const url = buildHubInstallUrl(hubHost, tenantSlug, appId);
|
|
783
|
+
p.note(pc.cyan(terminalLink(url)), "Install in Hub");
|
|
783
784
|
}
|
|
784
785
|
}
|
|
785
786
|
function credentialLabels(backend) {
|