-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixing package name and adding some more options
- Loading branch information
Showing
24 changed files
with
278 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"version": 2, | ||
"dependencies": { | ||
".NETFramework,Version=v4.5": { | ||
"Microsoft.Build.Artifacts": { | ||
"type": "Direct", | ||
"requested": "[6.1.10, )", | ||
"resolved": "6.1.10", | ||
"contentHash": "7B6h7yAZ6RD4osQSaIUnmMZ96RXPHUzyCrK/kAYQjyTO2i71LjOAdR0HjSus7HRwYhi94f2iZ+f0qMO9b2ykkQ==" | ||
} | ||
} | ||
} | ||
} |
4 changes: 2 additions & 2 deletions
4
....Sample/Modules/Test/HelloWorldCommand.cs → ....Sample/Modules/Test/HelloWorldCommand.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
{ | ||
"version": 2, | ||
"dependencies": { | ||
"net8.0": { | ||
"Microsoft.Build.Artifacts": { | ||
"type": "Direct", | ||
"requested": "[6.1.10, )", | ||
"resolved": "6.1.10", | ||
"contentHash": "7B6h7yAZ6RD4osQSaIUnmMZ96RXPHUzyCrK/kAYQjyTO2i71LjOAdR0HjSus7HRwYhi94f2iZ+f0qMO9b2ykkQ==" | ||
}, | ||
"Microsoft.Extensions.DependencyInjection": { | ||
"type": "Direct", | ||
"requested": "[8.0.0, )", | ||
"resolved": "8.0.0", | ||
"contentHash": "V8S3bsm50ig6JSyrbcJJ8bW2b9QLGouz+G1miK3UTaOWmMtFwNNNzUf4AleyDWUmTrWMLNnFSLEQtxmxgNQnNQ==", | ||
"dependencies": { | ||
"Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0" | ||
} | ||
}, | ||
"System.CommandLine": { | ||
"type": "Direct", | ||
"requested": "[2.0.0-beta4.22272.1, )", | ||
"resolved": "2.0.0-beta4.22272.1", | ||
"contentHash": "1uqED/q2H0kKoLJ4+hI2iPSBSEdTuhfCYADeJrAqERmiGQ2NNacYKRNEQ+gFbU4glgVyK8rxI+ZOe1onEtr/Pg==" | ||
}, | ||
"YamlDotNet": { | ||
"type": "Direct", | ||
"requested": "[16.2.1, )", | ||
"resolved": "16.2.1", | ||
"contentHash": "im6zTVgesjcfTRfuMpnx51Rg2svWenp/3q5XBfcIzgj8PNIkkSD2xEl9HWcVi2SaJPP9XcXUdzed9gSDEuf1TA==" | ||
}, | ||
"Microsoft.Extensions.DependencyInjection.Abstractions": { | ||
"type": "Transitive", | ||
"resolved": "8.0.0", | ||
"contentHash": "cjWrLkJXK0rs4zofsK4bSdg+jhDLTaxrkXu4gS6Y7MAlCvRyNNgwY/lJi5RDlQOnSZweHqoyvgvbdvQsRIW+hg==" | ||
}, | ||
"xarch.commandline": { | ||
"type": "Project", | ||
"dependencies": { | ||
"Microsoft.Extensions.DependencyInjection": "[8.0.0, )", | ||
"System.CommandLine": "[2.0.0-beta4.22272.1, )", | ||
"System.Text.Json": "[8.0.5, )", | ||
"YamlDotNet": "[16.2.1, )" | ||
} | ||
}, | ||
"System.Text.Json": { | ||
"type": "CentralTransitive", | ||
"requested": "[8.0.5, )", | ||
"resolved": "8.0.5", | ||
"contentHash": "0f1B50Ss7rqxXiaBJyzUu9bWFOO2/zSlifZ/UNMdiIpDYe4cY4LQQicP4nirK1OS31I43rn062UIJ1Q9bpmHpg==" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...CommandLine/CommandContextDataProvider.cs → ...CommandLine/CommandContextDataProvider.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...nt.CommandLine/CommandExecutionContext.cs → ...ch.CommandLine/CommandExecutionContext.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...formManagement.CommandLine/ContextData.cs → src/XArch.CommandLine/ContextData.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ommandLine/ICommandContextDataProvider.cs → ...ommandLine/ICommandContextDataProvider.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...Management.CommandLine/ICommandRuntime.cs → src/XArch.CommandLine/ICommandRuntime.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ement.CommandLine/NamespaceContextData.cs → ...XArch.CommandLine/NamespaceContextData.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# XArch.CommandLine | ||
|
||
XArch.CommandLine is a library that provides a basic framework for building command-line applications. It is built on top of the `System.CommandLine` library and provides a more structured way to build command-line applications. | ||
|
||
## Features | ||
- Dependency injection | ||
- Module-based architecture | ||
- REPL support | ||
- Command-line parsing and completion support from `System.CommandLine` | ||
- Context-aware commands and ability to save state between commands | ||
|
||
## Example | ||
```CSharp | ||
internal class Program | ||
{ | ||
static async Task Main(string[] args) | ||
{ | ||
await CommandRuntimeBuilder | ||
.Create() | ||
.ConfigureServices(ConfigureServices) | ||
.RegisterModuleAssembly(Assembly.GetExecutingAssembly()) | ||
.UseRepl() | ||
.Build() | ||
.RunAsync(args); | ||
} | ||
|
||
private static void ConfigureServices(IServiceCollection services) | ||
{ | ||
} | ||
} | ||
``` |
2 changes: 1 addition & 1 deletion
2
...t.CommandLine/RegisterCommandAttribute.cs → ...h.CommandLine/RegisterCommandAttribute.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...rmManagement.CommandLine/Serialization.cs → src/XArch.CommandLine/Serialization.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>netstandard2.1</TargetFramework> | ||
<Nullable>enable</Nullable> | ||
<LangVersion>latest</LangVersion> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<PackageId>XArch.CommandLine</PackageId> | ||
<PackageReadmeFile>README.md</PackageReadmeFile> | ||
<Authors>Travis Sharp</Authors> | ||
<EnablePackageValidation>true</EnablePackageValidation> | ||
<ApiCompatRespectInternals>true</ApiCompatRespectInternals> | ||
<!--<PackRelease>true</PackRelease>--> | ||
<!--<CopyDocumentationFilesFromPackages>true</CopyDocumentationFilesFromPackages>--> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'"> | ||
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition="'$(TF_BUILD)' == 'true'"> | ||
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<None Include="README.md" Pack="true" PackagePath="\"/> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.Extensions.DependencyInjection" /> | ||
<PackageReference Include="YamlDotNet" /> | ||
<PackageReference Include="System.Text.Json" /> | ||
<PackageReference Include="System.CommandLine" /> | ||
</ItemGroup> | ||
|
||
</Project> |
Oops, something went wrong.