UNPKG

@salesforce/plugin-settings

Version:
29 lines (28 loc) 997 B
import { Ux } from '@salesforce/sf-plugins-core'; import { ConfigInfo } from '@salesforce/core'; import { HelpSection } from '@oclif/core'; export type Msg = { name: string; value?: string | boolean | number | null; success: boolean; location?: string; path?: string; message?: string; error?: Error; successes?: Array<{ message?: string; name: string; }>; failures?: Array<{ message?: string; name: string; }>; key?: string; deprecated?: boolean; }; export type ConfigResponses = Msg[]; export declare const CONFIG_HELP_SECTION: HelpSection; export declare const calculateSuggestion: (userEnteredConfig: string) => string; export declare const buildFailureMsg: (name: string, err: unknown, value?: string) => Msg; export declare const buildSuccessMsg: (configInfo: ConfigInfo) => Msg; export declare const output: (ux: Ux, responses: Msg[], command: "set" | "unset" | "list" | "get", verbose?: boolean) => void;