Skip to content

Commit dd9becb

Browse files
committed
fix: removed the local file path
1 parent b1fe485 commit dd9becb

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/roverCLI/roverGenerateCLI.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,8 @@ export async function addModuleCLI(): Promise<void> {
156156
} while (moreStack !== "No")
157157
} else {
158158
template = <IroveraddModule>await createModules(app_name, language)
159+
template["file_name"] = file_name
160+
await rover_addModules.addModules(template)
159161
}
160-
template["file_name"] = file_name
161-
console.log(JSON.stringify(template))
162-
await rover_addModules.addModules(template)
162+
163163
}

src/utilities/cliUtil.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import {
77
Iroverdescription,
88
IroverCLIparamModule,
99
} from "../rover.types"
10+
1011
const moduleParams = rover.modules.Modules
1112
const envpattern = new RegExp(/^env\d\d+$/g)
1213
const apipathpattern = new RegExp(/^\/[a-zA-Z]*(\/[a-zA-Z]*-*)*/g)

0 commit comments

Comments
 (0)