Skip to content

Commit 6f5cd5e

Browse files
Merge pull request #58 from antstackio/ROVGPT
Rovgpt
2 parents 3ec03a8 + 67c724f commit 6f5cd5e

File tree

3 files changed

+18
-8
lines changed

3 files changed

+18
-8
lines changed

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"typescript": "^4.9.3"
1313
},
1414
"dependencies": {
15-
"@rover-tools/engine": "file:../rover-engine",
15+
"@rover-tools/engine": "0.0.54",
1616
"@types/inquirer": "^8.2.1",
1717
"dotenv": "^16.0.3",
1818
"eslint-config-prettier": "^8.5.0",
@@ -27,7 +27,7 @@
2727
"type": "commonjs",
2828
"name": "@rover-tools/cli",
2929
"description": "Rover-CLI is a SAM module generating system, which generates SAM projects based on user requirements. It will have a set of predefined stacks(Auth, CRUD) which are commonly used and a option to define our custom stacks. It is designed using typescript with SAM CLI support. Currently, it is a CLI-based library that supports Node and Python with a limited set of AWS services.",
30-
"version": "0.0.96",
30+
"version": "0.0.97",
3131
"main": "dist/bin/init.js",
3232
"scripts": {
3333
"clean": "shx rm -rf dist/*",

src/roverCLI/roverDeployCLI.ts

+13-3
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,20 @@ export async function deployCLI() {
1919
const pipeline = await util.samBuild(lang)
2020
const template = { repoConfig: pipeline }
2121
const repoconfig = await Promise.resolve(
22-
util.jsonCreation(<Record<string, IroverDeploymentObject>>template)
22+
util.jsonCreation(
23+
<Record<string, IroverDeploymentObject>>(<unknown>template)
24+
)
2325
)
2426
if (repoconfig !== undefined) {
25-
await deployment.setupRepo(JSON.parse(repoconfig)["repoConfig"])
27+
const Configs: IroverDeploymentObject =
28+
JSON.parse(repoconfig)["repoConfig"]
29+
Configs["repoType"] = (<Record<string, string>>(
30+
(<unknown>Configs["repoType"])
31+
))["repoType"]
32+
Configs["tool"] = (<Record<string, string>>(<unknown>Configs["tool"]))[
33+
"tool"
34+
]
35+
await deployment.setupRepo(Configs)
2636
roverHelpers.generateRoverConfig(
2737
"",
2838
JSON.parse(repoconfig)["repoConfig"],
@@ -63,7 +73,7 @@ export async function deployCLI() {
6373
bucketName = ` --s3-bucket ${bucketName["name"]}`
6474
}
6575
if (stack_name["stack_name"] == "") {
66-
stack_name = `${fileName} roverTest`
76+
stack_name = `${fileName}roverTest`
6777
} else {
6878
stack_name = stack_name["stack_name"]
6979
}

src/utilities/cliUtil.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -263,8 +263,8 @@ export const samBuild = async (lang: string) => {
263263
const step = Object.fromEntries(
264264
Object.entries(stepData).map(([key, value]) => {
265265
const name = key
266-
.replace("steps required for ", "")
267-
.replace(" environment ", "")
266+
.replace("Steps required for ", "")
267+
.replace(" environment", "")
268268
return [name, value]
269269
})
270270
)
@@ -313,7 +313,7 @@ export const samBuild = async (lang: string) => {
313313
const deployment_choice = (<Record<string, Array<string>>>choices)
314314
.deployment
315315
const deploymentEvent = await multichoice(
316-
`Deployment Events`,
316+
`deploymentevents`,
317317
deployment_choice,
318318
""
319319
)

0 commit comments

Comments
 (0)