@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.
Files changed (2) hide show
  1. package/dist/index.js +9 -8
  2. 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
- p.note(
775
- pc.cyan(buildHubAppOverviewUrl(hubHost, tenantSlug)),
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
- p.note(
780
- pc.cyan(buildHubInstallUrl(hubHost, tenantSlug, appId)),
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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jtl-software/create-cloud-app",
3
- "version": "0.0.19",
3
+ "version": "0.0.20",
4
4
  "type": "module",
5
5
  "description": "CLI tool for scaffolding JTL Platform cloud apps",
6
6
  "bin": {