Skip to content

Commit 72fdcfd

Browse files
committed
fix: moving alpha branch back to alpha features
1 parent 8b9350f commit 72fdcfd

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

packages/cta-engine/src/cli.ts

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ import { SUPPORTED_TOOLCHAINS } from './toolchain.js'
99
import runServer from './mcp.js'
1010
import { listAddOns } from './add-ons.js'
1111
import { DEFAULT_FRAMEWORK, SUPPORTED_FRAMEWORKS } from './constants.js'
12-
// import { initAddOn } from './custom-add-on.js'
12+
import { initAddOn } from './custom-add-on.js'
1313

1414
import { createDefaultEnvironment } from './environment.js'
15-
// import { add } from './add.js'
15+
import { add } from './add.js'
1616

1717
import type { PackageManager } from './package-manager.js'
1818
import 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

Comments
 (0)