scaffold-scripts
Version:
Simple CLI tool for managing and running your own scripts. Add any script, run it anywhere.
35 lines • 1.23 kB
TypeScript
export interface ScaffoldCommand {
id?: number;
name: string;
script_original: string;
script_windows?: string;
script_unix?: string;
script_cross_platform?: string;
original_platform: 'windows' | 'unix' | 'cross-platform';
script_type: 'shell' | 'powershell' | 'python' | 'nodejs' | 'batch' | 'mixed';
platform: 'all' | 'windows' | 'unix';
alias?: string;
description?: string;
createdAt: string;
updatedAt: string;
}
export declare class ScaffoldDatabase {
private db;
private initPromise;
constructor();
private initDatabase;
private createNewSchema;
private migrateDatabase;
private migrateOldData;
private detectScriptType;
private seedDefaultCommands;
addCommand(command: Omit<ScaffoldCommand, 'id'>): Promise<void>;
updateCommand(name: string, updates: Partial<ScaffoldCommand>): Promise<boolean>;
removeCommand(name: string): Promise<boolean>;
clearAllCommands(): Promise<number>;
getCommand(name: string): Promise<ScaffoldCommand | null>;
getCommandByAlias(alias: string): Promise<ScaffoldCommand | null>;
listCommands(): Promise<ScaffoldCommand[]>;
close(): void;
}
//# sourceMappingURL=database.d.ts.map