UNPKG
@sinotron/cli
Version:
latest (0.0.7-alpha)
0.0.7-alpha
0.0.6-alpha
0.0.5-alpha
0.0.4-alpha
0.0.3-alpha
0.0.1-alpha
Simple framework for Typescript Electron projects
@sinotron/cli
/
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
; };