public string Read(string question)
        {
            CommandDetector commandDetector = new CommandDetector();
            ICommand        command         = commandDetector.DetectCommand(question);

            return(command.BuildAnswer(question));
        }
Beispiel #2
0
        public static void Main(string[] args)
        {
            //Translate();
            //RunCommand();

            //System.Console.ReadLine();
            //var factory = new CoreCommandFactory();
            //var command = factory.Create("notes");
            //var response = command.Execute(new List<string>());
            //System.Console.WriteLine(response.ElementAtOrDefault(0));
            //System.Console.ReadLine();
            var commandDetector = new CommandDetector();

            while (true)
            {
                commandDetector.Detect();
            }
        }