@robinmordasiewicz/f5xc-xcsh 2.0.21-2601090523 → 2.0.21-2601090626

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 +21 -3
  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-2601090523") {
46998
- return "v2.0.21-2601090523";
46997
+ if ("v2.0.21-2601090626") {
46998
+ return "v2.0.21-2601090626";
46999
46999
  }
47000
47000
  if (process.env.XCSH_VERSION) {
47001
47001
  return process.env.XCSH_VERSION;
@@ -82311,7 +82311,25 @@ async function handleDirectNavigation(cmd, ctx, session) {
82311
82311
  async function handleDomainNavigation(domain, args, ctx, session) {
82312
82312
  if (isCustomDomain(domain)) {
82313
82313
  const canonicalDomain = resolveDomainAlias(domain);
82314
- return customDomains.execute(canonicalDomain, args, session);
82314
+ let effectiveArgs = args;
82315
+ if (domain !== canonicalDomain) {
82316
+ const domainDef = customDomains.get(canonicalDomain);
82317
+ if (domainDef) {
82318
+ let isCommand = domainDef.commands.has(domain);
82319
+ if (!isCommand) {
82320
+ for (const cmd of domainDef.commands.values()) {
82321
+ if (cmd.aliases?.includes(domain)) {
82322
+ isCommand = true;
82323
+ break;
82324
+ }
82325
+ }
82326
+ }
82327
+ if (isCommand) {
82328
+ effectiveArgs = [domain, ...args];
82329
+ }
82330
+ }
82331
+ }
82332
+ return customDomains.execute(canonicalDomain, effectiveArgs, session);
82315
82333
  }
82316
82334
  const firstArg = args[0]?.toLowerCase() ?? "";
82317
82335
  if (firstArg === "--help" || firstArg === "-h" || firstArg === "help") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robinmordasiewicz/f5xc-xcsh",
3
- "version": "2.0.21-2601090523",
3
+ "version": "2.0.21-2601090626",
4
4
  "description": "F5 Distributed Cloud Shell - Interactive CLI for F5 XC",
5
5
  "type": "module",
6
6
  "bin": {