private void PrintDescription(BaseCommand command)
 {
     if (command.Description.Length > 0)
     {
         console.WriteLine(command.Description);
         console.WriteEmptyLine();
     }
 }
        private void ExecuteQuestions(BaseCommand command)
        {
            for (int i = 0; i < command.Questions.Count; i++)
            {
                console.WriteEmptyLine();
                console.WriteSectionLine("Question {0} of {1}", i + 1, command.Questions.Count);

                questionRuntime.Execute(command.Questions[i]);

                console.WriteEmptyLine();
                console.WriteLine("OK! Using answer: {0}", command.Questions[i].Answer.Value);
            }
        }
Пример #3
0
 public void AddCommand(BaseCommand command)
 {
     commands.Add(command);
 }