Livt packages
Eccelerators.Cli
Version 1.4.1
Transport-independent, bounded command-line input, parsing, editing, and output for Livt FPGA applications.
Published files (23)
tests/CommandFallback.lvt
namespace Eccelerators.Cli.Tests
using Eccelerators.Cli
/**
* Application-defined fallback: the package does not prescribe unknown responses.
*/
component CommandFallback : ICommandRegistry
{
cli: Cli
public attempts: int
new(cli: Cli)
{
this.cli = cli
}
override fn TryRespond() bool
{
this.attempts++
return this.cli.TryWriteLine("No handler".Encode())
}
}