Пример #1
0
        public static async ValueTask Exec(ITerminal terminal, string fileName, CancellationToken token)
        {
            foreach (var MyLine in File.ReadLines(fileName))
            {
                if (MyLine == "" || MyLine.StartsWith("#"))
                {
                    continue;
                }

                await TerminalParser.InternalExecute(terminal, MyLine, token);
            }
        }