pr-sizewise
Version:
A CLI tool that measures and reports pull request sizes for GitHub and GitLab, helping teams maintain manageable code changes.
19 lines • 686 B
TypeScript
import type { CliOptions } from '../types';
/**
* Get environment variable value from multiple possible keys
*/
export declare function getEnvValue(keys: readonly string[]): string | undefined;
/**
* Get required values from options or environment variables
*/
export declare function getRequiredValues(options: CliOptions, platform: 'github' | 'gitlab'): {
prId: string | undefined;
projectId: string | undefined;
token: string | undefined;
host: string | undefined;
};
/**
* Validate required values and return any errors
*/
export declare function validateRequiredValues(values: ReturnType<typeof getRequiredValues>): string[];
//# sourceMappingURL=env.d.ts.map