@salesforce/plugin-telemetry
Version:
Command usage and error telemetry for the Salesforce CLI
40 lines (39 loc) • 1.16 kB
TypeScript
import { Config, Command } from '@oclif/core';
import { AsyncCreatable } from '@salesforce/kit';
import { JsonMap, Optional } from '@salesforce/ts-types';
export type CommandExecutionOptions = {
command: Partial<Command.Class>;
argv: string[];
config: Partial<Config>;
};
type PluginInfo = {
name: Optional<string>;
version: Optional<string>;
};
export declare class CommandExecution extends AsyncCreatable {
status?: number;
private specifiedFlags;
private specifiedFlagFullNames;
private deprecatedFlagsUsed;
private deprecatedCommandUsed?;
private command;
private readonly argv;
private config;
private orgId?;
private devhubId?;
private agentPseudoTypeUsed?;
private orgApiVersion?;
private devhubApiVersion?;
private argKeys;
constructor(options: CommandExecutionOptions);
/**
* @deprecated. Will always return en empty string.
*/
static resolveVCSInfo(): Promise<string>;
toJson(): JsonMap;
getPluginInfo(): PluginInfo;
getCommandName(): string | undefined;
protected init(): Promise<void>;
private determineSpecifiedFlags;
}
export {};