Skip to content

Commit 405bd4f

Browse files
authored
update the docs (#64)
1 parent 066ec34 commit 405bd4f

File tree

4 files changed

+19
-19
lines changed

4 files changed

+19
-19
lines changed

.github/workflows/cd-build.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,16 @@ jobs:
2020
- name: Restore dependencies
2121
run: dotnet restore src/MinimalCli.sln
2222
# build solution here instead of project
23-
- name: Build Minimal CommandLine
23+
- name: Build Minimal Command Line
2424
run: dotnet build src/MinimalCli.sln -c Release --no-restore
2525

2626
# packs all nuget packages at once
27-
- name: Pack MinimalCommandLine Nuget Alpha
28-
run: dotnet pack src/MinimalCli/MinimalCli.csproj -p:PackageVersion=0.5.0.${{github.run_number}}-alpha -o ./packages
29-
- name: Pack MinimalCommandLine Nuget
30-
run: dotnet pack src/MinimalCli/MinimalCli.csproj -p:PackageVersion=0.5.0.${{github.run_number}} -o ./packages
27+
- name: Pack Minimal Command Line Nuget Alpha
28+
run: dotnet pack src/MinimalCli/MinimalCli.csproj -p:PackageVersion=2.0.0.${{github.run_number}}-alpha -o ./packages
29+
- name: Pack Minimal Command Line Nuget
30+
run: dotnet pack src/MinimalCli/MinimalCli.csproj -p:PackageVersion=2.0.0.${{github.run_number}} -o ./packages
3131

32-
- name: Publish MinimalCommandLine Artifacts
32+
- name: Publish Minimal Command Line Artifacts
3333
uses: actions/upload-artifact@v4
3434
with:
3535
name: Nugets
@@ -50,8 +50,8 @@ jobs:
5050

5151
- name: Display structure of downloaded files
5252
run: ls -R
53-
- name: Push MinimalCommandLine Nuget
54-
run: dotnet nuget push ./MinimalCli.0.5.0.${{github.run_number}}-alpha.nupkg --api-key ${{secrets.NUGETKEY}} --source https://api.nuget.org/v3/index.json
53+
- name: Push Minimal Command Line Nuget
54+
run: dotnet nuget push ./MinimalCli.2.0.0.${{github.run_number}}-alpha.nupkg --api-key ${{secrets.NUGETKEY}} --source https://api.nuget.org/v3/index.json
5555

5656
production:
5757
needs: integration
@@ -65,5 +65,5 @@ jobs:
6565
with:
6666
name: Nugets
6767

68-
- name: Push MinimalCommandLine Nuget
69-
run: dotnet nuget push ./MinimalCli.0.5.0.${{github.run_number}}.nupkg --api-key ${{secrets.NUGETKEY}} --source https://api.nuget.org/v3/index.json
68+
- name: Push Minimal Command Line Nuget
69+
run: dotnet nuget push ./MinimalCli.2.0.0.${{github.run_number}}.nupkg --api-key ${{secrets.NUGETKEY}} --source https://api.nuget.org/v3/index.json

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# System.CommandLine.Minimal
1+
# MinimalCli
22

3-
> A source generator that sits on top of the `System.CommandLine` namespace
3+
> A source generator that works with the `System.CommandLine` namespace
44
> to give an experience similar to the ASP.Net Core minimal API builders. This library
55
> uses the Hosting libraries so a dotnet developer feels at home.
66
>
@@ -52,7 +52,7 @@ will map the parameter `message` to a string Argument called `<Message>`.
5252

5353
Add a reference to the nuget package `MinimalCommandLine`.
5454

55-
- Via csproj: `<PackageReference Include="MinimalCommandLine" Version="0.5.0.10" />`
55+
- Via csproj: `<PackageReference Include="MinimalCommandLine" Version="2.0.0.36" />`
5656
- Via dotnet cli: `dotnet package add MinimalCommandLine`
5757
- Via Visual Studio Menu:
5858
* Tools >
@@ -74,7 +74,7 @@ using MinimalCli;
7474

7575
public class MyCommand
7676
{
77-
[Handler("mycommand")]
77+
[Handler("my-command")]
7878
public void Run(string myArgument, string? myOption = null)
7979
{
8080
Console.WriteLine("Arg:{0}, Option:{0}", myArgument, myOption);
@@ -83,14 +83,14 @@ public class MyCommand
8383
```
8484

8585
This registers the following:
86-
* A command called `mycommand` to the handler `void Run(..)`.
86+
* A command called `my-command` to the handler `void Run(..)`.
8787
* The parameter `myArgument` to an Argument called `<MyArgument>`.
8888
* The optional parameter `myOption` to an Option called `--my-option`.
8989

9090
The command can be called like this:
9191

9292
```bash
93-
mycommand "Foo" --my-option "Bar"
93+
my-command "Foo" --my-option "Bar"
9494
```
9595

9696
Conventionally a `System.CommandLine.Argument` is created when the parameter is required and
@@ -105,7 +105,7 @@ using MinimalCli;
105105

106106
public class MyCommand
107107
{
108-
[Handler("mycommand")]
108+
[Handler("my-command")]
109109
public void Execute(string myArgument, [Argument] string? myArgument2 = null)
110110
{
111111
Console.WriteLine("Arg:{0}, Arg2:{0}", myArgument, myArgument2);

src/DemoApp/DemoApp.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
</PropertyGroup>
1212

1313
<!--<ItemGroup>
14-
<PackageReference Include="MinimalCommandLine" Version="0.5.1-alpha" />
14+
<PackageReference Include="MinimalCli" Version="2.0.0.36-alpha" />
1515
</ItemGroup>-->
1616

1717
<ItemGroup>

src/HelloWorld/HelloWorld.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
</PropertyGroup>
1212

1313
<!--<ItemGroup>
14-
<PackageReference Include="MinimalCommandLine" Version="0.5.1-alpha" />
14+
<PackageReference Include="MinimalCli" Version="2.0.0.36-alpha" />
1515
</ItemGroup>-->
1616

1717
<ItemGroup>

0 commit comments

Comments
 (0)