knowledge-graph-preview / cli /arg-parser.d.ts
mr4's picture
Upload 136 files
fd8cdf5 verified
export declare const SUPPORTED_TYPES: readonly ["kiro", "codex", "opencode", "claude-code", "openclaw", "cursor", "openspec"];
export type TemplateType = typeof SUPPORTED_TYPES[number];
export interface CLIOptions {
command: 'help' | 'preview' | 'create-md' | 'analyze';
inputPath: string;
port: number;
open: boolean;
watch: boolean;
init: boolean;
full: boolean;
type?: TemplateType;
}
export type ParseResult = {
success: true;
options: CLIOptions;
} | {
success: false;
error: string;
};
export declare function parseArgs(argv: string[]): ParseResult;
export declare function getUsageText(): string;