Skip to content

Commit 1ec9517

Browse files
committed
version 0.0.7
1 parent aca8116 commit 1ec9517

File tree

3 files changed

+17
-8
lines changed

3 files changed

+17
-8
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ cd ./src
4343
dotnet build genocs.cli.csproj
4444

4545
# Pack the tool (to be deployed on nuget)
46-
dotnet pack -p:PackageVersion=0.0.6 --output nupkgs
46+
dotnet pack -p:PackageVersion=0.0.7 --output nupkgs
4747
dotnet pack --output nupkgs
4848

4949
# Run the tool to install the templates

src/Program.cs

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,14 @@
22

33
using Genocs.CLI;
44
using System.Diagnostics;
5-
using System.Reflection;
65
using System.Text.RegularExpressions;
76

87

98
if (args.Length == 0)
109
{
1110
ShowBot("");
1211
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);
1413
Console.WriteLine("Than follow with:");
1514
WriteColorConsole(" genocs [blazor|webapi|worker|cleanapi|angular|react] [n|new] <CompanyName.ProjectName.ServiceName>", ConsoleColor.Cyan);
1615
Console.WriteLine("or with:");
@@ -19,11 +18,11 @@
1918
return;
2019
}
2120

22-
var version = Assembly.GetEntryAssembly()?
23-
.GetCustomAttribute<AssemblyInformationalVersionAttribute>()?
24-
.InformationalVersion;
21+
//var version = Assembly.GetEntryAssembly()?
22+
// .GetCustomAttribute<AssemblyInformationalVersionAttribute>()?
23+
// .InformationalVersion;
2524

26-
WriteColorConsole(Figgle.FiggleFonts.Doom.Render($"genocs v{version}"), ConsoleColor.DarkGreen);
25+
//WriteColorConsole(Figgle.FiggleFonts.Doom.Render($"genocs v{version}"), ConsoleColor.DarkGreen);
2726

2827

2928
string firstArg = args[0].Trim().ToLower();
@@ -128,6 +127,13 @@
128127
return;
129128
}
130129

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+
131137

132138
static void ShowBot(string message)
133139
{
@@ -201,7 +207,7 @@ async Task InstallTemplates()
201207
await blazorWebAssemblyProc.WaitForExitAsync();
202208
// --------------------------
203209

204-
WriteSuccessMessage("Installed the required templates.");
210+
WriteSuccessMessage("Templates installed successfully.");
205211
WriteSuccessMessage("Type: dotnet new list to see the whole set of dotnet templates.");
206212

207213
Console.WriteLine("Get started by typing:");

src/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ Please check the GitHub repository getting more info.
1414

1515
## Release notes
1616

17+
### [2023-08-13] 0.0.7
18+
- Updated banner plus fix weird behavior
19+
1720
### [2023-07-23] 0.0.6
1821
- Added gnx-webapi support
1922

0 commit comments

Comments
 (0)