SimpleLine 0.0.2-alpha
See the version list below for details.
dotnet add package SimpleLine --version 0.0.2-alpha
NuGet\Install-Package SimpleLine -Version 0.0.2-alpha
<PackageReference Include="SimpleLine" Version="0.0.2-alpha" />
<PackageVersion Include="SimpleLine" Version="0.0.2-alpha" />
<PackageReference Include="SimpleLine" />
paket add SimpleLine --version 0.0.2-alpha
#r "nuget: SimpleLine, 0.0.2-alpha"
#:package SimpleLine@0.0.2-alpha
#addin nuget:?package=SimpleLine&version=0.0.2-alpha&prerelease
#tool nuget:?package=SimpleLine&version=0.0.2-alpha&prerelease
SimpleLine Library
About
Simple Line an open source library that targets to simplify command line interaction.
Allows you to define new commands without having to think about getting values, type conversion,
calling a specific type, and a lot of other troubles.
It s written in C# language.
Why?
SimpleLine library makes it easy to write command-line applications.
- Facilitates development
- Fairly easy to use.
- Easy enough to embed.
- Does not affect the testability of the system.
Installation
.NET CLI
> dotnet add package SimpleLine --version 0.0.1-alpha
Package Manager
PM> NuGet\Install-Package SimpleLine -Version 0.0.1-alpha
PackageReference
<PackageReference Include="SimpleLine" Version="0.0.1-alpha" />
Usage
To use the library, you need to complete several steps
1. Define Command
using SimpleLineLibrary.Setup;
[CommandDefinitions]
public class Example
{
[Command("example")]
public void Foo(int x)
{
Console.WriteLine($"result: {x * 2}");
}
}
2. Run Library
using SimpleLineLibrary;
internal class Program
{
static void Main(string[] args)
{
var conf = Configuration.Default(typeof(Program).Assembly);
SimpleLine.Build(conf).Run(args);
}
}
3. Invoke
C:\> dotnet program.dll example -x 10
result: 20
Feedback or Suggestion
Docs
Docs not write now
Fully documentation about project docs link
License
GNU General Public License version 2
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net6.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.2.1-beta | 145 | 7/6/2024 |
| 0.1.1-beta | 117 | 6/29/2024 |
| 0.1.0-beta | 124 | 6/29/2024 |
| 0.0.2-alpha | 134 | 6/23/2024 |
| 0.0.1-alpha | 128 | 6/22/2024 |