示例#1
0
        private async static Task <int> RunInteractiveWithSeed(string file, LogFactory logFactory, string[] arguments, string[] packageSources)
        {
            var options = new ExecuteInteractiveCommandOptions(new ScriptFile(file), arguments, packageSources);

            await new ExecuteInteractiveCommand(ScriptConsole.Default, logFactory).Execute(options);
            return(0);
        }
示例#2
0
        private static async Task <int> RunInteractive(bool useRestoreCache, LogFactory logFactory, string[] packageSources)
        {
            var options = new ExecuteInteractiveCommandOptions(null, Array.Empty <string>(), packageSources);

            await new ExecuteInteractiveCommand(ScriptConsole.Default, logFactory).Execute(options);
            return(0);
        }