Options
All
  • Public
  • Public/Protected
  • All
Menu

Class OverridesLoader

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

Hierarchy

  • OverridesLoader

Index

Properties

Static Private Readonly ZOWE_CLI_PACKAGE_NAME

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

Methods

Static ensureCredentialManagerLoaded

  • ensureCredentialManagerLoaded(): Promise<void>

Static load

Static Private loadCredentialManager

Static Private loadSecureConfig

  • loadSecureConfig(): Promise<void>

Static Private shouldUseKeytar

  • shouldUseKeytar(packageJson: any, useTeamConfig: boolean): boolean
  • 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