### Hierarchy

- ConfigBuilder

## Index

### Methods

- build
- buildDefaultProfile
- getDefaultValue

## Methods

### Static build

- build(impConfig: IImperativeConfig, globalConfig: boolean, opts?: IConfigBuilderOpts): Promise<IConfig>

- - Defined in @zowe/imperative/src/config/src/ConfigBuilder.ts:27

  Build a new Config object from an Imperative CLI app configuration.

  #### Parameters

  - ##### impConfig: IImperativeConfig

    The Imperative CLI app configuration.

  - ##### globalConfig: boolean

    Is the config to be a global config?

  - ##### Optional opts: IConfigBuilderOpts

    Options to control aspects of the builder.

  #### Returns Promise<IConfig>

### Static buildDefaultProfile

- buildDefaultProfile(profile: ICommandProfileTypeConfiguration, opts?: IConfigBuilderOpts): { properties: Record<string, any>; secure: string[]; type: string }

- - Defined in @zowe/imperative/src/config/src/ConfigBuilder.ts:61

  #### Parameters

  - ##### profile: ICommandProfileTypeConfiguration

  - ##### Optional opts: IConfigBuilderOpts

  #### Returns { properties: Record<string, any>; secure: string[]; type: string }

  - ##### properties: Record<string, any>

  - ##### secure: string[]

  - ##### type: string

### Static Private getDefaultValue

- getDefaultValue(propType: string | string[]): any

- - Defined in @zowe/imperative/src/config/src/ConfigBuilder.ts:97

  Returns empty value that is appropriate for the property type.

  #### Parameters

  - ##### propType: string | string[]

    The type of profile property

  #### Returns any

  Null or empty object

Generated using TypeDoc