File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
packages/ng-schematics/src/mcp Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -127,7 +127,19 @@ You MUST prefer the tools provided by this server over using shell commands for
127127 } ;
128128 }
129129
130- const command = `ng generate @igniteui/angular-schematics:component --name=${ args . name || args . template } ` ;
130+ const commandParts = [ `ng generate @igniteui/angular-schematics:component` ] ;
131+ commandParts . push ( `--template=${ args . template } ` ) ;
132+ if ( args . name ) {
133+ commandParts . push ( `--name=${ args . name } ` ) ;
134+ }
135+ if ( args . module ) {
136+ commandParts . push ( `--module=${ args . module } ` ) ;
137+ }
138+ if ( args . skipRoute ) {
139+ commandParts . push ( `--skip-route` ) ;
140+ }
141+ const command = commandParts . join ( ' ' ) ;
142+
131143 return {
132144 content : [
133145 {
You can’t perform that action at this time.
0 commit comments