UNPKG

@argdown/cli

Version:

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

73 lines (72 loc) 1.84 kB
import { Arguments } from "yargs"; import { StatementSelectionMode, LabelMode } from "@argdown/core"; import { IGeneralCliOptions } from "../IGeneralCliOptions"; export declare const command = "map [inputGlob] [outputDir]"; export declare const desc = "export Argdown input as DOT files"; export declare const builder: { useHtmlLabels: { alias: string; describe: string; type: string; }; argumentLabelMode: { alias: string; choices: (LabelMode | undefined)[]; type: string; describe: string; }; statementLabelMode: { alias: string; choices: (LabelMode | undefined)[]; type: string; describe: string; }; statementSelectionMode: { alias: string; describe: string; type: string; choices: (StatementSelectionMode | undefined)[]; }; graphName: { alias: string; type: string; describe: string; }; inclusive: { type: string; describe: string; }; rankdir: { type: string; describe: string; }; ratio: { type: string; describe: string; }; size: { type: string; describe: string; }; format: { alias: string; type: string; describe: string; default: string; }; }; export interface IMapCliOptions { format?: string; size?: string; ratio?: string; rankdir?: string; inclusive?: boolean; graphName?: string; statementSelectionMode?: StatementSelectionMode; statementLabelMode?: LabelMode; argumentLabelMode?: LabelMode; useHtmlLabels?: boolean; inputGlob?: string; outputDir?: string; } export declare const handler: (args: Arguments<IGeneralCliOptions & IMapCliOptions>) => Promise<void>;