Options
All
  • Public
  • Public/Protected
  • All
Menu

Set of static utility methods to assist with creating profile option names from profile types, constructing the root directory, reforming responses for different purposes, etc.

export

Hierarchy

  • ProfileUtils

Index

Methods

Static constructProfilesRootDirectory

  • constructProfilesRootDirectory(home: string): string

Static flattenDependencies

Static getAllTypeNames

Static getProfileMapKey

  • getProfileMapKey(type: string, name: string): string

Static getProfileOption

  • getProfileOption(type: string): string
  • Construct the profile option - e.g banana-profile - Used to append to commands automatically and by the command processor to check if profile options are present.

    Parameters

    • type: string

    Returns string

    • The full option name

Static getProfileOptionAlias

  • getProfileOptionAlias(type: string): string
  • Construct the profile option alias - e.g banana-p- Used to append to commands automatically and by the command processor to check if profile options are present.

    Parameters

    • type: string

    Returns string

    • The alias for the profile option

Static getProfileOptionAndAlias

  • getProfileOptionAndAlias(type: string): [string, string]

Static getProfilePropertyKey

  • getProfilePropertyKey(type: string, name: string, field: string): string

Generated using TypeDoc