36 lines
745 B
C#
36 lines
745 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace TermApp
|
|
{
|
|
class Program
|
|
{
|
|
|
|
static void Main(string[] args)
|
|
{
|
|
|
|
Console.WriteLine("Hello, Works!");
|
|
|
|
CommandInterpreter interpreter = new CommandInterpreter();
|
|
Console.WriteLine("Type help to see avaliable Commands :.) or type exit to quit");
|
|
|
|
|
|
while (true)
|
|
{
|
|
|
|
Console.Write("Input >");
|
|
string input = Console.ReadLine();
|
|
if (string.IsNullOrWhiteSpace(input)) continue;
|
|
if (input.ToLower() == "exit") break;
|
|
|
|
|
|
interpreter.Execute(input);
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
}
|