Esempio n. 1
0
        public override object Execute(List <string> args)
        {
            if (args.Count != 1)
            {
                return(false);
            }

            var srcTxt = new FileInfo(args[0]);

            if (!srcTxt.Exists)
            {
                throw new FileNotFoundException(srcTxt.FullName);
            }

            ScriptCompiler scriptCompiler = new ScriptCompiler(Cache, Definition);

            scriptCompiler.CompileFile(srcTxt);

            Console.WriteLine("Done.");

            return(true);
        }