Imperative-internal class to load overrides You should not need to call this from your CLI.

### Hierarchy

- OverridesLoader

## Index

### Properties

- ZOWE_CLI_PACKAGE_NAME

### Methods

- ensureCredentialManagerLoaded
- load
- loadCredentialManager
- loadSecureConfig
- shouldUseKeytar

## Properties

### Static Private Readonly ZOWE_CLI_PACKAGE_NAME

ZOWE_CLI_PACKAGE_NAME: "@zowe/cli" = "@zowe/cli"

- Defined in @zowe/imperative/src/imperative/src/OverridesLoader.ts:26

## Methods

### Static ensureCredentialManagerLoaded

- ensureCredentialManagerLoaded(): Promise<void>

- - Defined in @zowe/imperative/src/imperative/src/OverridesLoader.ts:46

  Ensure the Credential Manager is initialized for team config.

  #### Returns Promise<void>

### Static load

- load(config: IImperativeConfig, packageJson: any): Promise<void>

- - Defined in @zowe/imperative/src/imperative/src/OverridesLoader.ts:35

  Apply overrides to all applicable facilities and use our defaults where an override is not provided.

  #### Parameters

  - ##### config: IImperativeConfig

    the current {@link Imperative#loadedConfig}

  - ##### packageJson: any

    the current package.json

  #### Returns Promise<void>

### Static Private loadCredentialManager

- loadCredentialManager(config: IImperativeConfig, packageJson: any, useTeamConfig?: boolean): Promise<void>

- - Defined in @zowe/imperative/src/imperative/src/OverridesLoader.ts:60

  Initialize the Credential Manager using the supplied override when provided.

  #### Parameters

  - ##### config: IImperativeConfig

    the current {@link Imperative#loadedConfig}

  - ##### packageJson: any

    the current package.json

  - ##### Optional useTeamConfig: boolean

    specify True if team config is active

  #### Returns Promise<void>

### Static Private loadSecureConfig

- loadSecureConfig(): Promise<void>

- - Defined in @zowe/imperative/src/imperative/src/OverridesLoader.ts:141

  After the plugins and secure credentials are loaded, rebuild the configuration with the secure values

  #### Returns Promise<void>

### Static Private shouldUseKeytar

- shouldUseKeytar(packageJson: any, useTeamConfig: boolean): boolean

- - Defined in @zowe/imperative/src/imperative/src/OverridesLoader.ts:130

  Check if the DefaultCredentialManager which uses keytar should be enabled. We require that keytar is listed as a dependency in package.json, and one of the following is true:

  1. AppSettings are not initialized (SDK usage)
  2. Team config is active (CLI with v2 profiles)
  3. CredentialManager override is host package name (CLI with v1 profiles)

  #### Parameters

  - ##### packageJson: any

    The current package.json of the CLI package

  - ##### useTeamConfig: boolean

    Specify True if team config is active

  #### Returns boolean

  True if DefaultCredentialManager should be used

Generated using TypeDoc