Skip to content

Commit 42edacf

Browse files
authored
Change namespace to MinimalCli (#62)
1 parent 1c399fe commit 42edacf

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+101
-87
lines changed

.github/workflows/cd-build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,16 @@ jobs:
1818
dotnet-version: 8.0.x
1919

2020
- name: Restore dependencies
21-
run: dotnet restore src/System.CommandLine.Minimal.sln
21+
run: dotnet restore src/MinimalCli.sln
2222
# build solution here instead of project
2323
- name: Build Minimal CommandLine
24-
run: dotnet build src/System.CommandLine.Minimal.sln -c Release --no-restore
24+
run: dotnet build src/MinimalCli.sln -c Release --no-restore
2525

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

3232
- name: Publish MinimalCommandLine Artifacts
3333
uses: actions/upload-artifact@v4

.github/workflows/pr-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ jobs:
1616
dotnet-version: 8.0.x
1717

1818
- name: Restore dependencies
19-
run: dotnet restore src/System.CommandLine.Minimal.sln
19+
run: dotnet restore src/MinimalCli.sln
2020

2121
- name: Build Minimal CommandLine
22-
run: dotnet build src/System.CommandLine.Minimal.sln -c Release --no-restore
22+
run: dotnet build src/MinimalCli.sln -c Release --no-restore
2323

2424
- name: Build HelloWorld Demo
2525
run: dotnet build src/HelloWorld/HelloWorld.csproj -c Release --no-restore

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
First, create a new console application, then create a class to house the logic for your command:
1818

1919
```csharp
20-
using System.CommandLine.Minimal;
20+
using MinimalCli;
2121

2222
public class HelloWorld
2323
{
@@ -33,7 +33,7 @@ public class HelloWorld
3333
Next, setup your Console App's `Program.cs` file:
3434

3535
```csharp
36-
using System.CommandLine.Minimal;
36+
using MinimalCli;
3737

3838
var builder = new MinimalCommandLineBuilder(args)
3939

@@ -70,7 +70,7 @@ Add a reference to the nuget package `MinimalCommandLine`.
7070
A simple command with an Argument and an Option:
7171

7272
```csharp
73-
using System.CommandLine.Minimal;
73+
using MinimalCli;
7474

7575
public class MyCommand
7676
{
@@ -101,7 +101,7 @@ a `System.CommandLine.Option` is created when the parameter is optional.
101101
A simple command with two Arguments: a required Argument and an optional Argument:
102102

103103
```csharp
104-
using System.CommandLine.Minimal;
104+
using MinimalCli;
105105

106106
public class MyCommand
107107
{
@@ -123,7 +123,7 @@ registering a command, the source generator creates an extension method that you
123123
the descriptions, aliases, default values, and any other System.CommandLine functionality.
124124

125125
```csharp
126-
using System.CommandLine.Minimal;
126+
using MinimalCli;
127127

128128
// after creating a 'greet' command that accepts a 'name' argument:
129129

src/DemoApp/DemoApp.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
</ItemGroup>-->
1616

1717
<ItemGroup>
18-
<ProjectReference Include="..\System.CommandLine.Minimal.Core\System.CommandLine.Minimal.Core.csproj" />
19-
<ProjectReference Include="..\System.CommandLine.Minimal.SourceGenerator\System.CommandLine.Minimal.SourceGenerator.csproj">
18+
<ProjectReference Include="..\MinimalCli.Core\MinimalCli.Core.csproj" />
19+
<ProjectReference Include="..\MinimalCli.SourceGenerator\MinimalCli.SourceGenerator.csproj">
2020
<OutputItemType>Analyzer</OutputItemType>
2121
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
2222
</ProjectReference>

src/DemoApp/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using DemoApp.Services;
22
using Microsoft.Extensions.DependencyInjection;
33
using System.CommandLine;
4-
using System.CommandLine.Minimal;
4+
using MinimalCli;
55

66
MinimalCommandLineBuilder builder = new(args);
77

src/DemoApp/Services/IntermediateCaGenerator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System.CommandLine.Minimal;
1+
using MinimalCli;
22
using System.Security.Cryptography;
33
using System.Security.Cryptography.X509Certificates;
44

src/DemoApp/Services/RootCaGenerator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System.CommandLine.Minimal;
1+
using MinimalCli;
22
using System.Security.Cryptography;
33
using System.Security.Cryptography.X509Certificates;
44

src/DemoApp/Services/SSLCertificateGenerator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System.CommandLine.Minimal;
1+
using MinimalCli;
22
using System.Net;
33
using System.Security.Cryptography;
44
using System.Security.Cryptography.X509Certificates;

src/HelloWorld/HelloWorld.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
</ItemGroup>-->
1616

1717
<ItemGroup>
18-
<ProjectReference Include="..\System.CommandLine.Minimal.Core\System.CommandLine.Minimal.Core.csproj" />
19-
<ProjectReference Include="..\System.CommandLine.Minimal.SourceGenerator\System.CommandLine.Minimal.SourceGenerator.csproj">
18+
<ProjectReference Include="..\MinimalCli.Core\MinimalCli.Core.csproj" />
19+
<ProjectReference Include="..\MinimalCli.SourceGenerator\MinimalCli.SourceGenerator.csproj">
2020
<OutputItemType>Analyzer</OutputItemType>
2121
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
2222
</ProjectReference>

src/HelloWorld/HelloWorldClass.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
using System.CommandLine;
2-
using System.CommandLine.Minimal;
1+
using MinimalCli;
32

43
namespace Hello;
54

0 commit comments

Comments
 (0)