@@ -28,7 +28,7 @@ export async function createSAMCLI(): Promise<void> {
2828 const language = await util . languageChoice ( )
2929
3030 const template : IroverInput = await createModules ( app_name , language , "" )
31- await rover_generateSAM . generateSAM ( < IroverInput > { template } [ "template" ] )
31+ await rover_generateSAM . generateSAM ( { template } [ "template" ] )
3232}
3333export async function addComponentCLI ( ) {
3434 const app_name = await util . inputString ( "app_name" , "" , false , "App Name" )
@@ -39,11 +39,9 @@ export async function addComponentCLI() {
3939 const CompStacks = await rover_helpers . checkNested ( file_name )
4040 const nestedComponents : TnestedComponentsObject = < TnestedComponentsObject > { }
4141 const choice = Object . keys ( CompStacks [ "compStacks" ] )
42- let choiceLength = 0
4342 let i = 0
4443 do {
4544 const nested = CompStacks [ "checkNested" ]
46- choiceLength = choice . length
4745 if ( nested ) {
4846 const chooseStack = await util . inputType (
4947 "Select the module to which you want to add the components " ,
@@ -73,7 +71,6 @@ export async function addComponentCLI() {
7371 }
7472 } else {
7573 const choice = cliConfig . customizable . components
76- choiceLength = 0
7774 const Compnents = < Array < string > > (
7875 await util . multichoice ( "components" , choice , "" )
7976 )
0 commit comments