Issue and pull request templates

- Added code of conduct
- Code climate badges
This commit is contained in:
Tony Bark 2023-01-07 12:39:07 -05:00
parent ac28f2b9a4
commit f006ab41bf
8 changed files with 246 additions and 21 deletions

View file

@ -8,12 +8,12 @@ namespace Tomas.Kernel;
public class Shell : IShell
{
// The symbol to display before the cursor when the shell is waiting for user input
const char SYMBOL = '$';
// The symbol to display before the cursor when the shell is waiting for user input
const char SYMBOL = '$';
// A dictionary containing the programs available to the shell, with the keys being the program names
// and the values being the program objects
public Dictionary<string, IProgram> Programs => new()
// A dictionary containing the programs available to the shell, with the keys being the program names
// and the values being the program objects
public Dictionary<string, IProgram> Programs => new()
{
{"about", new About() },
{"fensay", new FenSay() },
@ -21,20 +21,20 @@ public class Shell : IShell
{"commands", new Commands() }
};
// A property that allows the shell to read a line of input from the user
public string ReadLine
{
get
{
// Write the SYMBOL character to the console
Console.Write(SYMBOL);
// A property that allows the shell to read a line of input from the user
public string ReadLine
{
get
{
// Write the SYMBOL character to the console
Console.Write(SYMBOL);
// Read a line of input from the user
var readl = Console.ReadLine();
// Read a line of input from the user
var readl = Console.ReadLine();
// Return the line of input
return readl;
}
}
// Return the line of input
return readl;
}
}
}