UNPKG

protoml-parser

Version:

ProtoML is a lightweight, declarative markup language designed for writing and structuring meeting protocols, notes and task lists in a human-readable and machine-parseable format.

20 lines (15 loc) 493 B
#!/usr/bin/env node const { spawn } = require("child_process"); const path = require("path"); const inputFile = process.argv[2]; const theme = process.argv[3]; if (!inputFile) { console.error("❌ Usage: protoviewer <file.pml>"); process.exit(1); } const electronPath = require("electron"); const viewerPath = path.join(__dirname, "viewer.js"); const args = theme ? [viewerPath, inputFile, theme] : [viewerPath, inputFile]; spawn(electronPath, args, { stdio: "inherit", });