SimpleLine 0.0.1-alpha
See the version list below for details.
dotnet add package SimpleLine --version 0.0.1-alpha
NuGet\Install-Package SimpleLine -Version 0.0.1-alpha
<PackageReference Include="SimpleLine" Version="0.0.1-alpha" />
<PackageVersion Include="SimpleLine" Version="0.0.1-alpha" />
<PackageReference Include="SimpleLine" />
paket add SimpleLine --version 0.0.1-alpha
#r "nuget: SimpleLine, 0.0.1-alpha"
#:package SimpleLine@0.0.1-alpha
#addin nuget:?package=SimpleLine&version=0.0.1-alpha&prerelease
#tool nuget:?package=SimpleLine&version=0.0.1-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
NuGet:
Install library via "Package Manager"
PM> NuGet\Install-Package SimpleLine -Version 0.0.1
Usage
To use the library, you need to complete several steps
1. Define Command
[CommandDefinitions]
public class Example
{
[Command("Example")]
public void Foo(int x)
{
Console.WriteLine($"result: {x * 2}");
}
}
2. Run Library
internal class Program
{
static void Main(string[] args)
{
var conf = Configuration.Default(typeof(Program).Assembly);
SimpleLine.Build(conf).Run(args);
}
}
Invoke
C:\> dotnet program.dll example -x 10
result: 20
Docs
Fully documentation about project
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 |