@echo off
setlocal enabledelayedexpansion
for %%x in (%*) do (
ng g c %%x
)
You can store this file e.g. named as comps
in any folder which is a part of path
system variable, or you may create your own folder and put the file there and add the path of that folder to path
variable.
Then continue using this simple script with comps header footer list
etc.
it will loop through all the arguments and make the components, one more benefit of this will be that you will be able to use this comps
command globally.
Caveat: This will only generate the components in root module, if you want to generate in other modules, you need to tweak this script to accept the module name also