Files
ansiblings/packages/nopy/dist/nopy.main.d.ts
T
Benjamin Diedrichsen 736c01216a initial transfer
2026-07-27 13:09:00 +02:00

39 lines
905 B
TypeScript

/**
* Main entry point for nopy
* @module nopy.main
*/
import { type ExecutionResult } from './nopy.executor.js';
import { type NopySession } from './nopy.session.js';
/**
* Options for the nopy main function
*/
export interface NopyOptions {
useDefaults?: boolean;
useAuthKey?: boolean;
saveSession?: string;
loadSession?: string;
replaySession?: NopySession;
dryRun?: boolean;
printOnly?: boolean;
continueOnError?: boolean;
jsonOutput?: boolean;
saveToHistory?: boolean;
}
/**
* Result of a nopy execution
*/
export interface NopyResult {
success: boolean;
results: ExecutionResult[];
summary: {
total: number;
successful: number;
failed: number;
totalDuration: number;
};
}
/**
* Main entry point for nopy deployments
*/
export declare function nopy(opts?: NopyOptions): Promise<NopyResult | undefined>;