|
2 | 2 |
|
3 | 3 | using Genocs.CLI; |
4 | 4 | using System.Diagnostics; |
5 | | -using System.Reflection; |
6 | 5 | using System.Text.RegularExpressions; |
7 | 6 |
|
8 | 7 |
|
9 | 8 | if (args.Length == 0) |
10 | 9 | { |
11 | 10 | ShowBot(""); |
12 | 11 | Console.WriteLine("Missing params. Use following syntax:"); |
13 | | - WriteColorConsole(" genocs [i|install|u|update", ConsoleColor.Cyan); |
| 12 | + WriteColorConsole(" genocs [i|install|u|update]", ConsoleColor.Cyan); |
14 | 13 | Console.WriteLine("Than follow with:"); |
15 | 14 | WriteColorConsole(" genocs [blazor|webapi|worker|cleanapi|angular|react] [n|new] <CompanyName.ProjectName.ServiceName>", ConsoleColor.Cyan); |
16 | 15 | Console.WriteLine("or with:"); |
|
19 | 18 | return; |
20 | 19 | } |
21 | 20 |
|
22 | | -var version = Assembly.GetEntryAssembly()? |
23 | | - .GetCustomAttribute<AssemblyInformationalVersionAttribute>()? |
24 | | - .InformationalVersion; |
| 21 | +//var version = Assembly.GetEntryAssembly()? |
| 22 | +// .GetCustomAttribute<AssemblyInformationalVersionAttribute>()? |
| 23 | +// .InformationalVersion; |
25 | 24 |
|
26 | | -WriteColorConsole(Figgle.FiggleFonts.Doom.Render($"genocs v{version}"), ConsoleColor.DarkGreen); |
| 25 | +//WriteColorConsole(Figgle.FiggleFonts.Doom.Render($"genocs v{version}"), ConsoleColor.DarkGreen); |
27 | 26 |
|
28 | 27 |
|
29 | 28 | string firstArg = args[0].Trim().ToLower(); |
|
128 | 127 | return; |
129 | 128 | } |
130 | 129 |
|
| 130 | +// Fallback |
| 131 | +WriteColorConsole("Sorry I don't understand your command!", ConsoleColor.DarkRed); |
| 132 | +WriteColorConsole("Accepted syntax is something like:", ConsoleColor.Cyan); |
| 133 | +WriteColorConsole(" genocs [i|install|u|update]", ConsoleColor.Cyan); |
| 134 | +return; |
| 135 | + |
| 136 | + |
131 | 137 |
|
132 | 138 | static void ShowBot(string message) |
133 | 139 | { |
@@ -201,7 +207,7 @@ async Task InstallTemplates() |
201 | 207 | await blazorWebAssemblyProc.WaitForExitAsync(); |
202 | 208 | // -------------------------- |
203 | 209 |
|
204 | | - WriteSuccessMessage("Installed the required templates."); |
| 210 | + WriteSuccessMessage("Templates installed successfully."); |
205 | 211 | WriteSuccessMessage("Type: dotnet new list to see the whole set of dotnet templates."); |
206 | 212 |
|
207 | 213 | Console.WriteLine("Get started by typing:"); |
|
0 commit comments