TransformText() public method

public TransformText ( ) : string
return string
        /// <summary>
        /// Prints help for all commands in markdown format.
        /// </summary>
        private void ViewMarkdownHelp()
        {
            var commands = from c in _commandManager.GetCommands()
                           orderby c.CommandAttribute.CommandName
                           select c;

            foreach (var command in commands)
            {
                var template = new HelpCommandMarkdownTemplate
                {
                    CommandAttribute = command.CommandAttribute,
                    Options          = from item in _commandManager.GetCommandOptions(command)
                                       select new { Name = item.Value.Name, Description = item.Key.Description }
                };
                Console.WriteLine(template.TransformText());
            }
        }
Example #2
0
 /// <summary>
 /// Prints help for all commands in markdown format.
 /// </summary>
 private void ViewMarkdownHelp()
 {
     var commands = from c in _commandManager.GetCommands()
                    orderby c.CommandAttribute.CommandName
                    select c;
     foreach (var command in commands)
     {
         var template = new HelpCommandMarkdownTemplate
         {
             CommandAttribute = command.CommandAttribute,
             Options = from item in _commandManager.GetCommandOptions(command)
                       select new { Name = item.Value.Name, Description = item.Key.Description }
         };
         Console.WriteLine(template.TransformText());
     }
 }