A .NET library that makes it easier to create even more useful TextPrompt
s in Spectre.Console
by adding shell history super powers to support REPL environments.
A simple REPL app is included in the ReplTest
directory.
Detailed instructions for using Spectre.Console
are located on their project website, https://spectreconsole.net
- Supports up/down arrow using
TextPromptWithHistory
to scroll through history items. - Clones
TextPrompt
fromSpectre.Console
to provide other functionalit you would expect on any text prompt in the base library. - Written with unit testing in mind.
The fastest way of getting started using TextPromptWithHistory
is to install the NuGet package.
dotnet add package com.seanmcelroy.Spectre.Console.Community.TextPromptWithHistory
This is a community extension that is in no way associated with Spectre.Console
's project. However, the documentation for Spectre.Console
can be found at https://spectreconsole.net
This project is an extension that does not work without using Spectre.Console
.
To see TextPromptWithHistory
in action, please see the ReplTest
console app project which
demonstrates the usage and will give you the ability to enter commands to see the behavior first
hand.
Copyright © Sean A. McElroy
TextPromptWithHistory
is provided as-is under the MIT license. For more information see LICENSE.
This project incorporates code from Spectre.Console
, which those authors provide as-is under the MIT license. For more information see their project and associated licenses.