@robinmordasiewicz/f5xc-xcsh 2.0.21-2601090411 → 2.0.21-2601090431

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 +16 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -46994,8 +46994,8 @@ function getLogoModeFromEnv(envPrefix) {
46994
46994
  var CLI_NAME = "xcsh";
46995
46995
  var CLI_FULL_NAME = "F5 Distributed Cloud Shell";
46996
46996
  function getVersion() {
46997
- if ("v2.0.21-2601090411") {
46998
- return "v2.0.21-2601090411";
46997
+ if ("v2.0.21-2601090431") {
46998
+ return "v2.0.21-2601090431";
46999
46999
  }
47000
47000
  if (process.env.XCSH_VERSION) {
47001
47001
  return process.env.XCSH_VERSION;
@@ -74223,8 +74223,9 @@ function InputBox({
74223
74223
  }
74224
74224
 
74225
74225
  // src/repl/components/StatusBar.tsx
74226
- import { execSync } from "child_process";
74227
74226
  var import_jsx_runtime2 = __toESM(require_jsx_runtime(), 1);
74227
+ import { execSync } from "child_process";
74228
+ import { homedir as homedir3 } from "os";
74228
74229
  function getStatusIcon(gitInfo) {
74229
74230
  if (gitInfo.ahead > 0 && gitInfo.behind > 0) {
74230
74231
  return "\u21C5";
@@ -74249,6 +74250,17 @@ function getStatusColor(gitInfo) {
74249
74250
  }
74250
74251
  return "#00c853";
74251
74252
  }
74253
+ function getFormattedCwd() {
74254
+ const cwd2 = process.cwd();
74255
+ const home = homedir3();
74256
+ if (cwd2 === home) {
74257
+ return "~";
74258
+ }
74259
+ if (cwd2.startsWith(home + "/")) {
74260
+ return "~" + cwd2.slice(home.length);
74261
+ }
74262
+ return cwd2;
74263
+ }
74252
74264
  function StatusBar({
74253
74265
  gitInfo,
74254
74266
  width = 80,
@@ -74266,7 +74278,7 @@ function StatusBar({
74266
74278
  /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Text, { color, children: icon })
74267
74279
  ] });
74268
74280
  }
74269
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Text, { color: "#ffffff", children: CLI_NAME });
74281
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Text, { color: "#666666", children: getFormattedCwd() });
74270
74282
  };
74271
74283
  const renderRight = () => {
74272
74284
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Text, { color: "#666666", children: hint });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robinmordasiewicz/f5xc-xcsh",
3
- "version": "2.0.21-2601090411",
3
+ "version": "2.0.21-2601090431",
4
4
  "description": "F5 Distributed Cloud Shell - Interactive CLI for F5 XC",
5
5
  "type": "module",
6
6
  "bin": {