UNPKG
sinotron
Version:
latest (0.1.0-alpha)
0.1.0-alpha
0.0.3-alpha
0.0.1-dev
0.0.1-alpha
Simple framework for Typescript Electron projects
sinotron
/
dist
/
cli
/
cli.interface.d.ts
16 lines
(15 loc)
•
293 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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
; };