mirror of
https://github.com/tonytins/tomas.git
synced 2025-07-21 23:04:52 -04:00
Copyright waiver under the Unlicense with BSD 3-Clause fallback.
This commit is contained in:
parent
dc2176b26d
commit
2794aa17f4
24 changed files with 572 additions and 473 deletions
|
@ -1,14 +1,18 @@
|
|||
// I license this project under the BSD 3-Clause license.
|
||||
// See the LICENSE file in the project root for more information.
|
||||
/*
|
||||
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.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);
|
||||
/// <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,11 +1,14 @@
|
|||
// I license this project under the BSD 3-Clause license.
|
||||
// See the LICENSE file in the project root for more information.
|
||||
|
||||
/*
|
||||
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.Interface;
|
||||
|
||||
public interface IShell
|
||||
{
|
||||
string ReadLine { get; }
|
||||
string ReadLine { get; }
|
||||
|
||||
Dictionary<string, IProgram> Programs { get; }
|
||||
Dictionary<string, IProgram> Programs { get; }
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue