UNPKG

378 BPlain TextView Raw
1import { Kernel } from '@tarojs/service'
2
3export default function create (kernel: Kernel, {
4 appPath,
5 type,
6 name,
7 description,
8 isHelp
9}: {
10 appPath: string,
11 type: string,
12 name: string,
13 description?: string,
14 isHelp?: boolean
15}) {
16 kernel.run({
17 name: 'create',
18 opts: {
19 appPath,
20 type,
21 name,
22 description,
23 isHelp
24 }
25 })
26}