mirror of
https://github.com/tonytins/tomas.git
synced 2025-07-21 14:54:57 -04:00
Switched to BSD 3-Cluase license
- Use global usings in main kernal project
This commit is contained in:
parent
7c16857c9a
commit
7b47f7afd8
17 changed files with 217 additions and 819 deletions
|
@ -1,15 +1,15 @@
|
|||
// I license this project under the GPL 3.0 license.
|
||||
// I license this project under the BSD 3-Clause license.
|
||||
// See the LICENSE file in the project root for more information.
|
||||
namespace Tomas.Interface
|
||||
{
|
||||
public interface IProgram
|
||||
{
|
||||
/// <summary>
|
||||
/// The program's main entry point. Boolean behaves as an exit point.
|
||||
/// True and False are the equivalent to C's 0 and 1, i.e. "Success" and "Failure," respectfully.
|
||||
/// </summary>
|
||||
/// <param name="shell">Allows the program to interact with the shell.</param>
|
||||
/// <returns>Exit back to shell.</returns>
|
||||
bool Run(IShell shell);
|
||||
}
|
||||
public interface IProgram
|
||||
{
|
||||
/// <summary>
|
||||
/// The program's main entry point. Boolean behaves as an exit point.
|
||||
/// True and False are the equivalent to C's 0 and 1, i.e. "Success" and "Failure," respectfully.
|
||||
/// </summary>
|
||||
/// <param name="shell">Allows the program to interact with the shell.</param>
|
||||
/// <returns>Exit back to shell.</returns>
|
||||
bool Run(IShell shell);
|
||||
}
|
||||
}
|
|
@ -1,14 +1,13 @@
|
|||
// I license this project under the GPL 3.0 license.
|
||||
// I license this project under the BSD 3-Clause license.
|
||||
// See the LICENSE file in the project root for more information.
|
||||
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Tomas.Interface
|
||||
{
|
||||
public interface IShell
|
||||
{
|
||||
string ReadLine { get; }
|
||||
public interface IShell
|
||||
{
|
||||
string ReadLine { get; }
|
||||
|
||||
Dictionary<string, IProgram> Programs { get; }
|
||||
}
|
||||
Dictionary<string, IProgram> Programs { get; }
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue