UNPKG

@argdown/cli

Version:

A command line interface for exporting Argdown files to html, dot or json.

19 lines 941 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.handler = exports.desc = exports.command = void 0; const node_1 = require("@argdown/node"); const runArgdown_1 = require("./runArgdown"); exports.command = "run [process]"; exports.desc = "run a process you have defined in your config file"; const handler = async (args) => { const processName = args.process || "default"; let config = await node_1.argdown.loadConfig(args.config); config.process = processName; config.logLevel = args.verbose ? "verbose" : config.logLevel; config.logLevel = args.silent ? "silent" : config.logLevel; config.watch = args.watch || config.watch; config.logParserErrors = args.logParserErrors || config.logParserErrors; await (0, runArgdown_1.runArgdown)(node_1.argdown, config, true, "Custom process canceled", "processed"); }; exports.handler = handler; //# sourceMappingURL=RunCommand.js.map