@sentry/wizard
Version:
Sentry wizard helping you to configure your project
29 lines (28 loc) • 1.17 kB
TypeScript
import type { Answers } from 'inquirer';
import type { Args } from '../Constants';
export interface SentryCliProps {
[s: string]: string;
}
type SentryCliConfig = Record<string, SentryCliProps>;
export declare class SentryCli {
protected _argv: Args;
private _resolve;
constructor(_argv: Args);
setResolveFunction(resolve: (path: string) => string): void;
convertAnswersToProperties(answers: Answers): SentryCliProps;
/** Create the contents of a `sentry.properties` file */
dumpProperties(props: SentryCliProps): string;
dumpConfig(config: SentryCliConfig): string;
/**
* Creates `.sentryclirc` and `sentry.properties` files with the CLI properties
* obtained from the user answers (or from logging into Sentry).
* The `.sentryclirc` only contains the auth token and will be added to the
* user's `.gitignore` file. The properties file contains the rest of the
* properties (org, project, etc.).
*
* @param sentryCli instance of the Sentry CLI
* @param cliProps the properties to write to the files
*/
createSentryCliConfig(cliProps: SentryCliProps): Promise<void>;
}
export {};