@@ -66,10 +66,11 @@ export class Katacoda extends Runner {
6666 }
6767
6868 runInstallDevonfwIde ( step : Step , command : Command ) : RunResult {
69- let params = command . parameters . replace ( / \[ / , "" ) . replace ( "\]" , "" ) . replace ( / , / , " " ) . replace ( / v s c o d e / , "" ) . replace ( / e c l i p s e / , "" ) . trim ( ) ;
69+ let params = this . parseInputParameters ( command . parameters ) ;
70+ let tools = params [ 0 ] . replace ( / \[ / , "" ) . replace ( / \] / g, "" ) . replace ( / , / , " " ) . replace ( / v s c o d e / , "" ) . replace ( / e c l i p s e / , "" ) . trim ( ) ;
7071
7172 // create script to download devonfw ide settings
72- this . renderTemplate ( path . join ( "scripts" , "cloneDevonfwIdeSettings.sh" ) , path . join ( this . setupDir , "cloneDevonfwIdeSettings.sh" ) , { tools : params , cloneDir : "/root/devonfw-settings/" } ) ;
73+ this . renderTemplate ( path . join ( "scripts" , "cloneDevonfwIdeSettings.sh" ) , path . join ( this . setupDir , "cloneDevonfwIdeSettings.sh" ) , { tools : tools , cloneDir : "/root/devonfw-settings/" } ) ;
7374
7475 // add the script to the setup scripts for executing it at the beginning of the tutorial
7576 this . setupScripts . push ( {
@@ -95,8 +96,8 @@ export class Katacoda extends Runner {
9596 }
9697
9798 runCobiGenJava ( step : Step , command : Command ) : RunResult {
98- let params = command . parameters . split ( "," ) ;
99- let cobiGenTemplates = params [ 1 ] . replace ( / \[ / , "" ) . replace ( "\]" , "" ) . replace ( / / g, ", " ) ;
99+ let params = this . parseInputParameters ( command . parameters )
100+ let cobiGenTemplates = params [ 1 ] . replace ( / \[ / , "" ) . replace ( / \] / g, "" ) ;
100101
101102 this . renderTemplate ( path . join ( "scripts" , "installCobiGenPlugin.sh" ) , path . join ( this . setupDir , "installCobiGenPlugin.sh" ) , { vsixFile : "cobigen-0.0.1.vsix" , pluginName : "cobigen" } ) ;
102103 this . setupScripts . push ( {
0 commit comments