PromptPlus 3.2.1
See the version list below for details.
dotnet add package PromptPlus --version 3.2.1
NuGet\Install-Package PromptPlus -Version 3.2.1
<PackageReference Include="PromptPlus" Version="3.2.1" />
paket add PromptPlus --version 3.2.1
#r "nuget: PromptPlus, 3.2.1"
// Install PromptPlus as a Cake Addin #addin nuget:?package=PromptPlus&version=3.2.1 // Install PromptPlus as a Cake Tool #tool nuget:?package=PromptPlus&version=3.2.1
Welcome to PromptPlus
Interactive command-line toolkit for C# with powerful controls and commands. PromptPlus was developed in c# with the **netstandard2.1, .NET 5 AND .NET6 ** target frameworks.
All controls input/filter using GNU Readline Emacs keyboard shortcuts.
PromptPlus has separate pakage integrate command line parse CommandDotNet(4.3.0/5.0.1):
- PromptPlus.CommandDotNet
Official pages :
Visit the PromptPlus official page for complete documentation
Visit the CommandDotNet official page for complete documentation
PromptPlus.CommandDotNet - Sample Usage
public class Program
{
static int Main(string[] args)
{
CultureInfo.DefaultThreadCurrentCulture = new CultureInfo("en-US");
CultureInfo.DefaultThreadCurrentUICulture = new CultureInfo("en-US");
PromptPlus.ConsoleDefaultColor(ConsoleColor.White, ConsoleColor.Black);
PromptPlus.Clear();
return new AppRunner<Examples>()
.UseDefaultMiddleware()
.UsePrompter()
.UseNameCasing(Case.KebabCase)
.UsePromptPlusAnsiConsole()
.UsePromptPlusArgumentPrompter()
.UsePromptPlusWizard()
.UsePromptPlusRepl(colorizeSessionInitMessage: (msg) => msg.Yellow().Underline())
.Run(args);
}
}
//for usage AppRunner see https://commanddotnet.bilal-fazlani.com/
PromptPlus Controls - Sample Usage
//ASCII text banners
PromptPlus.Banner("PromptPlus")
.Run(ConsoleColor.Green);
//MaskEdit Generic
var mask = PromptPlus.MaskEdit(MaskedType.Generic, "Inventory Number")
.Mask(@"\XYZ 9{3}-L{3}-C[ABC]N{1}[XYZ]-A{3}")
.Run(_stopApp);
if (mask.IsAborted)
{
return;
}
if (string.IsNullOrEmpty(mask.Result.Value))
{
Console.WriteLine($"your input was empty!");
}
else
{
Console.WriteLine($"your input was {mask.Result.ObjectValue}!");
}
//AnyKey
var key = PromptPlus.KeyPress()
.Run(_stopApp);
if (key.IsAborted)
{
return;
}
Console.WriteLine($"Hello, key pressed");
Supported platforms
- Windows
- Command Prompt, PowerShell, Windows Terminal
- Linux (Ubuntu, etc)
- Windows Terminal (WSL 2)
- macOS
- Terminal.app
License
This project is licensed under the MIT License
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. 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 is compatible. 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. |
.NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.1 is compatible. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.1
- Microsoft.Extensions.Logging (>= 7.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 7.0.0)
- System.ComponentModel.Annotations (>= 4.7.0)
- System.IO (>= 4.3.0)
- System.Text.Json (>= 4.7.2)
-
net6.0
- Microsoft.Extensions.Logging (>= 7.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 7.0.0)
- System.ComponentModel.Annotations (>= 5.0.0)
- System.IO (>= 4.3.0)
- System.Text.Json (>= 6.0.0)
-
net7.0
- Microsoft.Extensions.Logging (>= 7.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 7.0.0)
- System.ComponentModel.Annotations (>= 5.0.0)
- System.IO (>= 4.3.0)
- System.Text.Json (>= 7.0.1)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on PromptPlus:
Package | Downloads |
---|---|
PromptPlusCommandDotNet
Integration with the Command DotNet package with interactive command-line for toolkit for C# with powerful controls and commands. |
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on PromptPlus:
Repository | Stars |
---|---|
ividyon/WitchyBND
Unpacks/repacks FromSoftware archive formats and serializes FromSoftware data formats.
|
Version | Downloads | Last updated | |
---|---|---|---|
4.2.0 | 850 | 11/14/2023 | |
4.1.0 | 286 | 10/4/2023 | |
4.0.5 | 305 | 9/15/2023 | |
4.0.4 | 263 | 8/7/2023 | |
4.0.3 | 175 | 7/31/2023 | |
4.0.2 | 176 | 7/25/2023 | |
4.0.1 | 169 | 7/21/2023 | |
4.0.0 | 190 | 7/20/2023 | |
3.3.3 | 1,088 | 2/26/2023 | |
3.3.2 | 272 | 2/24/2023 | |
3.3.1 | 236 | 2/23/2023 | |
3.3.0 | 249 | 2/22/2023 | |
3.2.2 | 271 | 2/16/2023 | |
3.2.1 | 266 | 2/14/2023 | |
3.2.0 | 312 | 1/20/2023 | |
3.1.0 | 306 | 1/16/2023 | |
3.0.0 | 585 | 1/28/2022 | |
2.1.0 | 1,520 | 11/11/2021 |