public static bool LoadFileIntoTranscript(string line) { if (Transcript.PushFile(line)) { Console.ForegroundColor = ConsoleColor.Green; Console.WriteLine(Preferences.FIRST_INDENTATION + "Added : " + line); Console.ResetColor(); return(true); } return(false); }
public static void ClearTranscript(string line) { if ( GetVerb(line).Equals(Operators.Verbs.Commands.force) || CommandLineInterface.AwaitConfirmationKeyPress ( "This will erase all definitions currently loaded in the transcript.\nContinue? (Y/N) " ) ) { Definition.Clear(); Transcript.Clear(); } }
public static void ShowInfo(string line) { string command = null, complement = null; SplitImperative(line, ref command, ref complement); switch (command) { case "transcript": Console.Write(Transcript.TableToString()); break; case "defs": case "defines": case "definitions": Console.Write(Definition.TableToString()); break; case "names": case "table": case "nametable": Console.Write(CommandLineInterface.Sequencer.Names.ToString()); break; case "commands": Console.Write(Algorithms.Collections.ToString(command_table)); break; case "verbs": Console.Write(Algorithms.Collections.ToString(verb_table)); break; default: { if (Operators.Verbs.Commands.gethelp.Contains(command)) { GetHelp(complement); } break; } } }