Exemplo n.º 1
0
            public void PrintInformation()
            {
                if (Caption.IsNotNullOrWhiteSpace())
                {
                    ConsoleEx.Write(ConsoleColor.Green, "{0} ", Caption ?? "");
                }

                ConsoleEx.WriteLine(ConsoleColor.White, Version ?? "");

                if (Description.IsNotNullOrWhiteSpace())
                {
                    ConsoleEx.WriteLine(ConsoleColor.Gray, Description ?? "");
                }
            }
Exemplo n.º 2
0
            internal void PrintHelp(string indent)
            {
                if (Caption.IsNotNullOrWhiteSpace())
                {
                    ConsoleEx.WriteLine(ConsoleColor.Gray, "{0}{1}", indent, Caption ?? "");
                }

                ConsoleEx.WriteLine(ConsoleColor.White, "{0}{1}", indent, Command ?? "");

                if (Description.IsNotNullOrWhiteSpace())
                {
                    ConsoleEx.WriteLine(ConsoleColor.DarkGray, "{0}{1}", indent, Description ?? "");
                }
            }