{"repo":"shibayan/Sharprompt","free":true,"listed":false,"github":"https://github.com/shibayan/Sharprompt","clone":"git clone https://github.com/shibayan/Sharprompt.git","description":"Interactive command-line based application framework for C#","language":"C#","stars":847,"topics":["command-line","interactive","prompt","cli","csharp","terminal","dotnet"],"license":"MIT","category":"cli-tools","readme_excerpt":"Sharprompt Interactive command-line based application framework for C# Features - Multi-platform support - Supports the popular prompts ( Input / Password / Select / etc) - Supports model-based prompts - Validation of input value - Automatic generation of data source using Enum type - Customizable symbols and color schema - Unicode support (Multi-byte characters and Emoji😀🎉) Installation Quick start Examples The project in the folder samples/Sharprompt.Example contains all the samples. Please check it. Prompt types Input Takes a generic type parameter and performs type conversion as appropriate. When a default value is provided, pressing Enter with nothing typed accepts the default. Press Tab to insert the default value for editing, or Backspace to dismiss the default — the prompt then behaves as if no default value was provided, so an empty value can be submitted (subject to the usual required check for non-nullable types and any validators). Confirm Password Select MultiSelect (Checkbox) List Bind (Model-based prompts) Configuration Symbols Color schema Cancellation support Validators Sharprompt provides built-in validators that can be used with the validators parameter. Validator Description ----------- ------------- Validators.Required() Ensures the input is not empty Validators.MinLength(length) Ensures the input has at least the specified number of characters Validators.MaxLength(length) Ensures the input does not exceed the specified number of characters Validators.R","default_branch":null,"files":null,"tree":[],"storefront":"/r/shibayan","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/shibayan/Sharprompt/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}