mirror of
https://github.com/tonytins/tomas.git
synced 2025-04-30 03:31:39 -04:00
- 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.
22 lines
661 B
C#
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();
|
|
}
|
|
}
|