@salesforce/plugin-telemetry
Version:
Command usage and error telemetry for the Salesforce CLI
10 lines (9 loc) • 437 B
TypeScript
import type { Hook } from '@oclif/core';
/**
* A hook that runs before every command that:
* 1. Warns the user about command usage data collection the CLI does unless they have already acknowledged the warning.
* 2. Writes logs to a file, including execution and errors.
* 3. Logs command usage data to the server right after the process ends by spawning a detached process.
*/
declare const hook: Hook.Prerun;
export default hook;