@f5xc-salesdemos/pi-utils 18.16.0 → 18.18.0

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/package.json +2 -2
  2. package/src/dirs.ts +10 -10
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@f5xc-salesdemos/pi-utils",
4
- "version": "18.16.0",
4
+ "version": "18.18.0",
5
5
  "description": "Shared utilities for pi packages",
6
6
  "homepage": "https://github.com/f5xc-salesdemos/xcsh",
7
7
  "author": "Can Boluk",
@@ -38,7 +38,7 @@
38
38
  },
39
39
  "devDependencies": {
40
40
  "@types/bun": "^1.3",
41
- "@f5xc-salesdemos/pi-natives": "18.16.0"
41
+ "@f5xc-salesdemos/pi-natives": "18.18.0"
42
42
  },
43
43
  "engines": {
44
44
  "bun": ">=1.3.7"
package/src/dirs.ts CHANGED
@@ -438,7 +438,7 @@ export function getSSHConfigPath(scope: "user" | "project", cwd: string = getPro
438
438
  }
439
439
 
440
440
  // =============================================================================
441
- // F5 Distributed Cloud (F5 XC) profile paths
441
+ // F5 Distributed Cloud (F5 XC) context paths
442
442
  // =============================================================================
443
443
 
444
444
  const F5XC_DIR_NAME = "f5xc";
@@ -449,17 +449,17 @@ export function getF5XCConfigDir(): string {
449
449
  return path.join(xdgConfig, F5XC_DIR_NAME);
450
450
  }
451
451
 
452
- /** Get the F5 XC profiles directory (~/.config/f5xc/profiles). */
453
- export function getF5XCProfilesDir(): string {
454
- return path.join(getF5XCConfigDir(), "profiles");
452
+ /** Get the F5 XC contexts directory (~/.config/f5xc/contexts). */
453
+ export function getF5XCContextsDir(): string {
454
+ return path.join(getF5XCConfigDir(), "contexts");
455
455
  }
456
456
 
457
- /** Get the path to the active profile indicator file (~/.config/f5xc/active_profile). */
458
- export function getF5XCActiveProfilePath(): string {
459
- return path.join(getF5XCConfigDir(), "active_profile");
457
+ /** Get the path to the active context indicator file (~/.config/f5xc/active_context). */
458
+ export function getF5XCActiveContextPath(): string {
459
+ return path.join(getF5XCConfigDir(), "active_context");
460
460
  }
461
461
 
462
- /** Get the path to a specific profile JSON file (~/.config/f5xc/profiles/<name>.json). */
463
- export function getF5XCProfilePath(name: string): string {
464
- return path.join(getF5XCProfilesDir(), `${name}.json`);
462
+ /** Get the path to a specific context JSON file (~/.config/f5xc/contexts/<name>.json). */
463
+ export function getF5XCContextPath(name: string): string {
464
+ return path.join(getF5XCContextsDir(), `${name}.json`);
465
465
  }