1515
1616if ( args . Length == 0 )
1717{
18- Console . WriteLine ( "Insufficient params. Please refer to https://blog.genocs.com/dotnet-webapi-boilerplate/general/genocs-api-console" ) ;
18+ Console . WriteLine ( "Insufficient params." ) ;
19+ Console . WriteLine ( "Use following syntax:\n " ) ;
20+ Console . WriteLine ( " genocs [cleanarchitecture|microservice|blazor] [-n|--new] <CompanyName.ProjectName.ServiceName>" ) ;
21+ Console . WriteLine ( " genocs [cleanarchitecture|microservice|blazor] [-n|--new] <ServiceName>" ) ;
22+ Console . WriteLine ( "\n Please refer to https://genocs-blog.netlify.app/" ) ;
1923 return ;
2024}
2125
22-
2326string firstArg = args [ 0 ] . Trim ( ) . ToLower ( ) ;
24- if ( firstArg == "install" || firstArg == "i" || firstArg == "update" || firstArg == "u" )
27+ if ( firstArg == "-- install" || firstArg == "- i" || firstArg == "-- update" || firstArg == "- u" )
2528{
2629 await InstallTemplates ( ) ;
2730 return ;
3841 string command = args [ 1 ] . Trim ( ) . ToLower ( ) ;
3942 // Convert to Capital case
4043 string projectName = args [ 2 ] . Trim ( ) ;
41- if ( command == "n" || command == "new" )
44+ if ( command == "- n" || command == "-- new" )
4245 {
4346 await BootstrapCleanArchitectureSolution ( projectName ) ;
4447 }
5760 string command = args [ 1 ] . Trim ( ) . ToLower ( ) ;
5861 // Convert to Capital case
5962 string projectName = args [ 2 ] . Trim ( ) ;
60- if ( command == "n" || command == "new" )
63+ if ( command == "- n" || command == "-- new" )
6164 {
6265 await BootstrapMicroserviceSolution ( projectName ) ;
6366 }
6669}
6770
6871
69- if ( firstArg == "wasm " )
72+ if ( firstArg == "blazor " )
7073{
7174 if ( args . Length != 3 )
7275 {
73- Console . WriteLine ( "Invalid command. Use something like: genocs wasm new <CompanyName.ProjectName>" ) ;
76+ Console . WriteLine ( "Invalid command. Use something like: genocs blazor new <CompanyName.ProjectName>" ) ;
7477 return ;
7578 }
7679
7780 string command = args [ 1 ] . Trim ( ) . ToLower ( ) ;
7881 // Convert to Capital case
7982 // Convert to Capital case
8083 string projectName = args [ 2 ] . Trim ( ) ;
81- if ( command == "n" || command == "new" )
84+ if ( command == "- n" || command == "-- new" )
8285 {
8386 await BootstrapBlazorWasmSolution ( projectName ) ;
8487 }
@@ -167,7 +170,7 @@ async Task InstallTemplates()
167170 await cleanArchitectureProc . WaitForExitAsync ( ) ;
168171 // --------------------------
169172
170- Console . WriteLine ( "Installing genocs Microservice template..." ) ;
173+ Console . WriteLine ( "Installing Genocs Microservice template..." ) ;
171174 var microservicePsi = new ProcessStartInfo
172175 {
173176 FileName = "dotnet" ,
@@ -178,7 +181,7 @@ async Task InstallTemplates()
178181 await microserviceProc . WaitForExitAsync ( ) ;
179182 // --------------------------
180183
181- Console . WriteLine ( "Installing genocs blazor wasm template..." ) ;
184+ Console . WriteLine ( "Installing Genocs Blazor template..." ) ;
182185 var blazorWebAssemblyPsi = new ProcessStartInfo
183186 {
184187 FileName = "dotnet" ,
@@ -192,7 +195,7 @@ async Task InstallTemplates()
192195 WriteSuccessMessage ( "Installed the required templates." ) ;
193196 Console . WriteLine ( "Get started by using : genocs <type> new <CompanyName.ProjectName>." ) ;
194197 Console . WriteLine ( "NOTE: <type> can be [cleanarchitecture | microservice | blazor]." ) ;
195- Console . WriteLine ( "Refer to documentation at https://majestic-wisp-d90424 .netlify.app" ) ;
198+ Console . WriteLine ( "Refer to documentation at https://genocs-blog .netlify.app/ " ) ;
196199}
197200
198201async Task BootstrapCleanArchitectureSolution ( string projectName )
@@ -207,7 +210,7 @@ async Task BootstrapCleanArchitectureSolution(string projectName)
207210 await proc . WaitForExitAsync ( ) ;
208211 WriteSuccessMessage ( $ "Genocs Architecture solution { projectName } successfully created.") ;
209212 WriteSuccessMessage ( "Application ready! Build something amazing!" ) ;
210- Console . WriteLine ( "Refer to documentation at https://blog.genocs.com/dotnet-webapi-boilerplate/general/getting-started " ) ;
213+ Console . WriteLine ( "Refer to documentation at https://genocs- blog.netlify.app/ " ) ;
211214}
212215
213216async Task BootstrapMicroserviceSolution ( string projectName )
@@ -222,7 +225,7 @@ async Task BootstrapMicroserviceSolution(string projectName)
222225 await proc . WaitForExitAsync ( ) ;
223226 WriteSuccessMessage ( $ "Genocs Microservice solution { projectName } successfully created.") ;
224227 WriteSuccessMessage ( "Application ready! Build something amazing!" ) ;
225- Console . WriteLine ( "Refer to documentation at https://blog.genocs.com/dotnet-webapi-boilerplate/general/getting-started " ) ;
228+ Console . WriteLine ( "Refer to documentation at https://genocs- blog.netlify.app/ " ) ;
226229}
227230
228231async Task BootstrapBlazorWasmSolution ( string projectName )
@@ -236,9 +239,9 @@ async Task BootstrapBlazorWasmSolution(string projectName)
236239
237240 using var proc = Process . Start ( psi ) ! ;
238241 await proc . WaitForExitAsync ( ) ;
239- WriteSuccessMessage ( $ "Genocs blazor wasm solution { projectName } successfully created.") ;
242+ WriteSuccessMessage ( $ "Genocs blazor solution { projectName } successfully created.") ;
240243 WriteSuccessMessage ( "Application ready! Build something amazing!" ) ;
241- Console . WriteLine ( "Refer to documentation at https://blog.genocs.com/blazor-webassembly-boilerplate/general/getting-started /" ) ;
244+ Console . WriteLine ( "Refer to documentation at https://genocs- blog.netlify.app /" ) ;
242245}
243246
244247static void WriteSuccessMessage ( string message )
0 commit comments