UNPKG
create-dxcli
Version:
latest (0.28.16)
0.28.16
0.28.15
0.28.14
0.28.13
0.28.12
0.28.11
0.28.10
0.28.9
0.28.8
0.28.7
0.28.6
0.28.5
0.28.4
0.28.3
0.28.2
0.28.1
0.28.0
0.27.1
0.27.0
0.26.11
0.26.10
0.26.9
0.26.8
0.26.7
0.26.6
0.26.5
0.26.4
0.26.3
0.26.2
0.26.1
0.26.0
0.25.2
0.25.1
0.25.0
0.24.3
0.24.2
0.24.1
0.24.0
0.23.3
0.23.2
0.23.1
0.23.0
0.22.0
0.21.0
0.20.0
0.19.0
0.18.0
0.17.0
0.16.0
0.15.0
0.14.0
0.13.0
0.12.0
0.11.0
0.10.0
0.9.0
0.8.0
0.7.0
0.6.0
0.5.0
0.4.0
0.3.0
0.2.4
0.2.3
0.2.2
0.2.1
0.2.0
0.1.0
0.0.0
dxcli: create your own CLI
github.com/dxcli/create-dxcli
dxcli/create-dxcli
create-dxcli
/
templates
/
plugin
/
src
/
hooks
/
init.ts
9 lines
(6 loc)
•
230 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
import
{
Hooks
,
IHook
}
from
'@dxcli/config'
import
cli
from
'cli-ux'
const
hook
:
IHook
<
Hooks
[
'init'
]> =
async
opts => { cli.
info
(
`example hook running
${opts.id}
\nDisable by deleting ./src/hooks/init.ts`
) }
export
default
hook