@zowe/imperative
Version:
framework for building configurable CLIs
25 lines • 1.11 kB
TypeScript
import { IImperativeConfig } from "../../imperative";
import { IConfig } from "./doc/IConfig";
import { IConfigBuilderOpts } from "./doc/IConfigBuilderOpts";
import { ICommandProfileTypeConfiguration } from "../../cmd";
export declare class ConfigBuilder {
/**
* Build a new Config object from an Imperative CLI app configuration.
* @param impConfig The Imperative CLI app configuration.
* @param globalConfig Is the config to be a global config?
* @param opts Options to control aspects of the builder.
*/
static build(impConfig: IImperativeConfig, globalConfig: boolean, opts?: IConfigBuilderOpts): Promise<IConfig>;
static buildDefaultProfile(profile: ICommandProfileTypeConfiguration, opts?: IConfigBuilderOpts): {
type: string;
properties: Record<string, any>;
secure: string[];
};
/**
* Returns empty value that is appropriate for the property type.
* @param propType The type of profile property
* @returns Null or empty object
*/
private static getDefaultValue;
}
//# sourceMappingURL=ConfigBuilder.d.ts.map