mirror of
https://github.com/tonytins/tomas.git
synced 2025-03-21 15:21:21 +00:00
Implicit usings applied to Tomas.Interface
This commit is contained in:
parent
a029d8d4d9
commit
e44f7e8f95
3 changed files with 17 additions and 19 deletions
|
@ -1,15 +1,14 @@
|
||||||
// I license this project under the BSD 3-Clause license.
|
// I license this project under the BSD 3-Clause license.
|
||||||
// See the LICENSE file in the project root for more information.
|
// See the LICENSE file in the project root for more information.
|
||||||
namespace Tomas.Interface
|
namespace Tomas.Interface;
|
||||||
|
|
||||||
|
public interface IProgram
|
||||||
{
|
{
|
||||||
public interface IProgram
|
/// <summary>
|
||||||
{
|
/// The program's main entry point. Boolean behaves as an exit point.
|
||||||
/// <summary>
|
/// True and False are the equivalent to C's 0 and 1, i.e. "Success" and "Failure," respectfully.
|
||||||
/// The program's main entry point. Boolean behaves as an exit point.
|
/// </summary>
|
||||||
/// True and False are the equivalent to C's 0 and 1, i.e. "Success" and "Failure," respectfully.
|
/// <param name="shell">Allows the program to interact with the shell.</param>
|
||||||
/// </summary>
|
/// <returns>Exit back to shell.</returns>
|
||||||
/// <param name="shell">Allows the program to interact with the shell.</param>
|
bool Run(IShell shell);
|
||||||
/// <returns>Exit back to shell.</returns>
|
|
||||||
bool Run(IShell shell);
|
|
||||||
}
|
|
||||||
}
|
}
|
|
@ -1,13 +1,11 @@
|
||||||
// I license this project under the BSD 3-Clause license.
|
// I license this project under the BSD 3-Clause license.
|
||||||
// See the LICENSE file in the project root for more information.
|
// See the LICENSE file in the project root for more information.
|
||||||
using System.Collections.Generic;
|
|
||||||
|
|
||||||
namespace Tomas.Interface
|
namespace Tomas.Interface;
|
||||||
|
|
||||||
|
public interface IShell
|
||||||
{
|
{
|
||||||
public interface IShell
|
string ReadLine { get; }
|
||||||
{
|
|
||||||
string ReadLine { get; }
|
|
||||||
|
|
||||||
Dictionary<string, IProgram> Programs { get; }
|
Dictionary<string, IProgram> Programs { get; }
|
||||||
}
|
|
||||||
}
|
}
|
|
@ -1,7 +1,8 @@
|
||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>netstandard2.0</TargetFramework>
|
<TargetFramework>net6.0</TargetFramework>
|
||||||
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|
Loading…
Add table
Reference in a new issue