Complete() 공개 메소드

Returns all complete commands, sorted by command name.
public Complete ( ) : List
리턴 List
예제 #1
0
        /// <summary>
        /// Display the complete commands in GitSharp.
        /// </summary>
        private static void ShowComplete()
        {
            CommandCatalog catalog = new CommandCatalog();

            foreach (CommandRef c in catalog.Complete())
            {
                Console.Write("      ");
                Console.Write(c.getName());
                for (int i = c.getName().Length + 8; i < 31; i++)
                {
                    Console.Write(" ");
                }
                Console.Write(c.getUsage());
                Console.WriteLine();
            }
        }
예제 #2
0
 /// <summary>
 /// Display the complete commands in GitSharp.
 /// </summary>
 private static void ShowComplete()
 {
     CommandCatalog catalog = new CommandCatalog();
     foreach (CommandRef c in catalog.Complete())
     {
         Console.Write("      ");
         Console.Write(c.getName());
         for (int i = c.getName().Length + 8; i < 31; i++)
             Console.Write(" ");
         Console.Write(c.getUsage());
         Console.WriteLine();
     }
 }