@@ -9,10 +9,10 @@ import { SUPPORTED_TOOLCHAINS } from './toolchain.js'
99import runServer from './mcp.js'
1010import { listAddOns } from './add-ons.js'
1111import { DEFAULT_FRAMEWORK , SUPPORTED_FRAMEWORKS } from './constants.js'
12- // import { initAddOn } from './custom-add-on.js'
12+ import { initAddOn } from './custom-add-on.js'
1313
1414import { createDefaultEnvironment } from './environment.js'
15- // import { add } from './add.js'
15+ import { add } from './add.js'
1616
1717import type { PackageManager } from './package-manager.js'
1818import type { ToolChain } from './toolchain.js'
@@ -33,26 +33,26 @@ export function cli({
3333
3434 program . name ( name ) . description ( `CLI to create a new ${ appName } application` )
3535
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+ } )
4242
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+ } )
4949
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+ } )
5656
5757 program . argument ( '[project-name]' , 'name of the project' )
5858
@@ -90,7 +90,7 @@ export function cli({
9090 } ,
9191 DEFAULT_FRAMEWORK ,
9292 )
93- // .option('--overlay [url]', 'add an overlay from a URL', false)
93+ . option ( '--overlay [url]' , 'add an overlay from a URL' , false )
9494 . option < PackageManager > (
9595 `--package-manager <${ SUPPORTED_PACKAGE_MANAGERS . join ( '|' ) } >` ,
9696 `Explicitly tell the CLI to use this package manager` ,
0 commit comments