Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • ConfigUtils

Index

Methods

Static coercePropValue

  • coercePropValue(value: any, type?: string): any
  • Coeerces string property value to a boolean or number type.

    Parameters

    • value: any

      String value

    • Optional type: string

      Property type defined in the schema

    Returns any

    Boolean, number, or string

Static getActiveProfileName

  • getActiveProfileName(profileType: string, cmdArguments?: ICommandArguments, defaultProfileName?: string): string
  • Retrieves the name of the active profile for the given type. If no such profile exists, returns the default name which can be used to create a new profile.

    Parameters

    • profileType: string

      The type of CLI profile

    • Optional cmdArguments: ICommandArguments

      CLI arguments which may specify a profile

    • Optional defaultProfileName: string

      Name to fall back to if profile doesn't exist. If not specified, the profile type will be used.

    Returns string

    The profile name

Static jsonPathMatches

  • jsonPathMatches(fullPath: string, partialPath: string): boolean

Static secureSaveError

Generated using TypeDoc