UNPKG

@rolme/ytscript

Version:

A CLI tool to download YouTube transcripts and generate summaries

28 lines (27 loc) 804 B
import { Command } from 'commander'; export function createTestCommand() { const command = new Command('test'); command .description('Test command for CI - returns mock data') .action(() => { const mockData = { success: true, videoId: 'test123', title: 'Test Video', transcript: 'This is a test transcript.', segments: [ { text: 'This is a test transcript.', duration: 5, offset: 0 } ], metadata: { language: 'en', lastUpdated: new Date().toISOString() } }; console.log(JSON.stringify(mockData, null, 2)); }); return command; }