@@ -9,10 +9,10 @@ import { SUPPORTED_TOOLCHAINS } from './toolchain.js'
9
9
import runServer from './mcp.js'
10
10
import { listAddOns } from './add-ons.js'
11
11
import { DEFAULT_FRAMEWORK , SUPPORTED_FRAMEWORKS } from './constants.js'
12
- // import { initAddOn } from './custom-add-on.js'
12
+ import { initAddOn } from './custom-add-on.js'
13
13
14
14
import { createDefaultEnvironment } from './environment.js'
15
- // import { add } from './add.js'
15
+ import { add } from './add.js'
16
16
17
17
import type { PackageManager } from './package-manager.js'
18
18
import type { ToolChain } from './toolchain.js'
@@ -33,26 +33,26 @@ export function cli({
33
33
34
34
program . name ( name ) . description ( `CLI to create a new ${ appName } application` )
35
35
36
- // program
37
- // .command('add')
38
- // .argument('add-on', 'Name of the add-on (or add-ons separated by commas)')
39
- // .action(async (addOn: string) => {
40
- // await add(addOn.split(',').map((addon) => addon.trim()))
41
- // })
36
+ program
37
+ . command ( 'add' )
38
+ . argument ( 'add-on' , 'Name of the add-on (or add-ons separated by commas)' )
39
+ . action ( async ( addOn : string ) => {
40
+ await add ( addOn . split ( ',' ) . map ( ( addon ) => addon . trim ( ) ) )
41
+ } )
42
42
43
- // program
44
- // .command('update-add-on')
45
- // .description('Create or update an add-on from the current project')
46
- // .action(async () => {
47
- // await initAddOn('add-on')
48
- // })
43
+ program
44
+ . command ( 'update-add-on' )
45
+ . description ( 'Create or update an add-on from the current project' )
46
+ . action ( async ( ) => {
47
+ await initAddOn ( 'add-on' )
48
+ } )
49
49
50
- // program
51
- // .command('update-overlay')
52
- // .description('Create or update a project overlay from the current project')
53
- // .action(async () => {
54
- // await initAddOn('overlay')
55
- // })
50
+ program
51
+ . command ( 'update-overlay' )
52
+ . description ( 'Create or update a project overlay from the current project' )
53
+ . action ( async ( ) => {
54
+ await initAddOn ( 'overlay' )
55
+ } )
56
56
57
57
program . argument ( '[project-name]' , 'name of the project' )
58
58
@@ -90,7 +90,7 @@ export function cli({
90
90
} ,
91
91
DEFAULT_FRAMEWORK ,
92
92
)
93
- // .option('--overlay [url]', 'add an overlay from a URL', false)
93
+ . option ( '--overlay [url]' , 'add an overlay from a URL' , false )
94
94
. option < PackageManager > (
95
95
`--package-manager <${ SUPPORTED_PACKAGE_MANAGERS . join ( '|' ) } >` ,
96
96
`Explicitly tell the CLI to use this package manager` ,
0 commit comments