Skip to content

Commit aca8116

Browse files
committed
version 0.0.6
1 parent 6fe6b05 commit aca8116

File tree

4 files changed

+19
-45
lines changed

4 files changed

+19
-45
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,12 @@ dotnet tool uninstall -g genocs.cli
3838

3939
Useful commands to work on your own
4040
``` bash
41+
cd ./src
4142
# build the project
42-
dotnet build ./src/genocs.cli.csproj
43+
dotnet build genocs.cli.csproj
4344

4445
# Pack the tool (to be deployed on nuget)
45-
dotnet pack
46+
dotnet pack -p:PackageVersion=0.0.6 --output nupkgs
4647
dotnet pack --output nupkgs
4748

4849
# Run the tool to install the templates
@@ -53,5 +54,5 @@ cd ./src
5354
dotnet run -f net7.0 genocs -i
5455

5556
# Install the tool from local folder to the global cache
56-
dotnet tool install --global --add-source ./src/nupkg genocs.cli
57+
dotnet tool install --global --add-source ./nupkgs genocs.cli
5758
```

src/Program.cs

Lines changed: 10 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
if (args.Length == 0)
1010
{
11-
ShowBot("Hello!!!");
11+
ShowBot("");
1212
Console.WriteLine("Missing params. Use following syntax:");
1313
WriteColorConsole(" genocs [i|install|u|update", ConsoleColor.Cyan);
1414
Console.WriteLine("Than follow with:");
@@ -133,43 +133,13 @@ static void ShowBot(string message)
133133
{
134134
string bot = $"\n {message}";
135135
bot += @"
136-
__________________
137-
\
138-
\
139-
....
140-
....'
141-
....
142-
..........
143-
.............'..'..
144-
................'..'.....
145-
.......'..........'..'..'....
146-
........'..........'..'..'.....
147-
.'....'..'..........'..'.......'.
148-
.'..................'... ......
149-
. ......'......... .....
150-
. _ __ ......
151-
.. # ## ......
152-
.... . .......
153-
...... ....... ............
154-
................ ......................
155-
........................'................
156-
......................'..'...... .......
157-
.........................'..'..... .......
158-
........ ..'.............'..'.... ..........
159-
..'..'... ...............'....... ..........
160-
...'...... ...... .......... ...... .......
161-
........... ....... ........ ......
162-
....... '...'.'. '.'.'.' ....
163-
....... .....'.. ..'.....
164-
.. .......... ..'........
165-
............ ..............
166-
............. '..............
167-
...........'.. .'.'............
168-
............... .'.'.............
169-
.............'.. ..'..'...........
170-
............... .'..............
171-
......... ..............
172-
.....
136+
..######...########.##....##..#######...######...######............######..##.......####
137+
.##....##..##.......###...##.##.....##.##....##.##....##..........##....##.##........##.
138+
.##........##.......####..##.##.....##.##.......##................##.......##........##.
139+
.##...####.######...##.##.##.##.....##.##........######...........##.......##........##.
140+
.##....##..##.......##..####.##.....##.##.............##..........##.......##........##.
141+
.##....##..##.......##...###.##.....##.##....##.##....##..........##....##.##........##.
142+
..######...########.##....##..#######...######...######............######..########.####
173143
";
174144
WriteColorConsole(bot, ConsoleColor.Blue);
175145
}
@@ -213,7 +183,7 @@ async Task InstallTemplates()
213183
var microservicePsi = new ProcessStartInfo
214184
{
215185
FileName = "dotnet",
216-
Arguments = "new install Genocs.MicroserviceTemplate::0.1.0"
186+
Arguments = "new install Genocs.WebApiTemplate::1.0.3"
217187
};
218188

219189
using var microserviceProc = Process.Start(microservicePsi)!;
@@ -280,7 +250,7 @@ async Task BootstrapMicroserviceSolution(string projectName)
280250
var psi = new ProcessStartInfo
281251
{
282252
FileName = "dotnet",
283-
Arguments = $"new microservice -n {projectName} -o {projectName} -v=q"
253+
Arguments = $"new gnx-webapi -n {projectName} -o {projectName} -v=q"
284254
};
285255
using var proc = Process.Start(psi)!;
286256
await proc.WaitForExitAsync();

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-07-23] 0.0.6
18+
- Added gnx-webapi support
19+
1720
### [2023-07-10] 0.0.5
1821
- Fix crash in case of leading and trailing spaces
1922

src/genocs.cli.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<Nullable>enable</Nullable>
88
<PackAsTool>true</PackAsTool>
99
<ToolCommandName>genocs</ToolCommandName>
10-
<PackageVersion>0.0.5</PackageVersion>
10+
<PackageVersion>0.0.6</PackageVersion>
1111
<PackageOutputPath>./nupkg</PackageOutputPath>
1212
<PackageId>Genocs.CLI</PackageId>
1313
<Title>Genocs CLI Tool</Title>
@@ -19,7 +19,7 @@
1919
<PackageReadmeFile>README.md</PackageReadmeFile>
2020
<PackageLicenseFile>LICENSE</PackageLicenseFile>
2121
<PackageIcon>icon.png</PackageIcon>
22-
<VersionPrefix>0.0.5</VersionPrefix>
22+
<VersionPrefix>0.0.6</VersionPrefix>
2323
</PropertyGroup>
2424

2525
<ItemGroup>

0 commit comments

Comments
 (0)