#!/usr/bin/env node import { mkdir } from 'node:fs/promises'; import { assertArchive, readConfig } from './config.js'; import { openDatabase } from './database.js'; import { prepareSelection, printStatus, pruneMedia } from './prepare.js'; import { scanIntoDatabase } from './scan.js'; import { startServer } from './server.js'; function value(args: string[], option: string): string | undefined { const index = args.indexOf(option); return index >= 0 ? args[index + 1] : undefined; } function help(): void { console.log(`Easy Stream Showcase Usage: pnpm showcase scan pnpm showcase prepare --all [--force] pnpm showcase prepare --title [--quality