UNPKG

sinotron

Version:

Simple framework for Typescript Electron projects

16 lines (15 loc) 293 B
import { Command } from 'commander'; /** * Command context. */ export type Ctx<T = Record<string, any>> = { args: any[]; options: T; command?: Command; arg0?: any; }; export type Classifier = { name: string; description?: string; executor?: (ctx: Ctx) => any; };