Example #1
0
        public void Run(InteractiveShell.InteractiveShell gui)
        {
            ShellTitleDisplayOptions titleDispOptions = new ShellTitleDisplayOptions()
            {
                LeftOffset = 2,
                SubtitleVerticalPadding = 0
            };

            gui.DrawTitle(Program.AppName, "Enter command to execute:", titleDispOptions, true);
            gui.Reset();

            Console.Write("  >");
            string?command = Console.ReadLine();

            if (string.IsNullOrEmpty(command))
            {
                return;
            }

            RunCommand(command, gui);
        }