chromancer
Version:
A powerful command-line interface for automating Chrome browser using Playwright. Perfect for web scraping, automation, testing, and browser workflows.
26 lines (25 loc) • 657 B
TypeScript
export interface CommandSchema {
name: string;
description: string;
flags: Record<string, any>;
args?: Record<string, any>;
examples?: string[];
}
export interface FlagSchema {
name: string;
char?: string;
description: string;
required: boolean;
type: 'string' | 'boolean' | 'integer';
options?: string[];
default?: any;
multiple?: boolean;
}
export interface ArgSchema {
name: string;
description: string;
required: boolean;
options?: string[];
}
export declare function extractFlagSchema(flag: any): FlagSchema;
export declare function extractCommandSchema(command: any): CommandSchema;