tomas/src/Tomas.Tests/Shell/MockShell.cs
Tony Bark 7c3230685b Rewritten IProgram interface and CST to support arguments.
- With the help of ChatGPT, the IProgram interface has been rewritten to handle command line arguments.
- Speaking of, the CST parser has been rewritten to finally support arguments with the help of ChatGPT too.
- Separately from the ChatGPT changes, the Run method has been renamed to Entry.
- Terminal's entry code is now top-level.

See ChangeLog.md for more details.
2023-01-08 22:27:21 -05:00

22 lines
661 B
C#

/*
In jurisdictions that recognize copyright waivers, I've waived all copyright
and related or neighboring rights for to this project. In areas where these
waivers are not recognized, BSD-3-Clause is enforced.
See the (UN)LICENSE file in the project root for more information.
*/
namespace Tomas.Tests.Shell;
internal class MockShell : IShell
{
public string? ReadLine { get; }
public Dictionary<string, IProgram> Programs => new()
{
{ "test", new MockProgram() },
};
public IEnumerable<KeyValuePair<string, object>>? ParseArguments(IProgram program, string[] arguments)
{
throw new NotImplementedException();
}
}