mirror of
https://github.com/tonytins/tomas.git
synced 2025-07-21 23:04:52 -04:00
Programs now built using IProgram interface
- The old App abstract class has been scrapped in favor of the IProgram interface in the Tomas.Interface library. - A new terminal emulator was created when not on Windows. - In both OS and terminal, a single dictionary has the commands and classes that implement IProgram. - Start() now returns a boolean that behaves similar to C's main in returning an integer. - A new while loop in both terminal and kernel handles the execution of programs.
This commit is contained in:
parent
952554b476
commit
c11f987521
31 changed files with 387 additions and 219 deletions
7
src/Tomas.Interface/Shell/IProgram.cs
Normal file
7
src/Tomas.Interface/Shell/IProgram.cs
Normal file
|
@ -0,0 +1,7 @@
|
|||
namespace Tomas.Interface.Shell
|
||||
{
|
||||
public interface IProgram
|
||||
{
|
||||
bool Start();
|
||||
}
|
||||
}
|
7
src/Tomas.Interface/Shell/IShell.cs
Normal file
7
src/Tomas.Interface/Shell/IShell.cs
Normal file
|
@ -0,0 +1,7 @@
|
|||
namespace Tomas.Interface.Shell
|
||||
{
|
||||
public interface IShell
|
||||
{
|
||||
string ReadLine { get; }
|
||||
}
|
||||
}
|
7
src/Tomas.Interface/Tomas.Interface.csproj
Normal file
7
src/Tomas.Interface/Tomas.Interface.csproj
Normal file
|
@ -0,0 +1,7 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netstandard2.0</TargetFramework>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
Loading…
Add table
Add a link
Reference in a new issue