Beispiel #1
0
 public ScriptPublisher(ScriptProjectProvider scriptProjectProvider, ScriptEmitter scriptEmitter, ScriptConsole scriptConsole)
 {
     _scriptProjectProvider = scriptProjectProvider ?? throw new ArgumentNullException(nameof(scriptProjectProvider));
     _scriptEmitter         = scriptEmitter ?? throw new ArgumentNullException(nameof(scriptEmitter));
     _scriptConsole         = scriptConsole ?? throw new ArgumentNullException(nameof(scriptConsole));
     _scriptEnvironment     = ScriptEnvironment.Default;
 }
Beispiel #2
0
 public ScriptRunner(ScriptCompiler scriptCompiler, ScriptLogger logger, ScriptConsole scriptConsole)
 {
     Logger         = logger;
     ScriptCompiler = scriptCompiler;
     ScriptConsole  = scriptConsole;
 }
 public ScriptEmitter(ScriptConsole scriptConsole, ScriptCompiler scriptCompiler)
 {
     _scriptConsole  = scriptConsole;
     _scriptCompiler = scriptCompiler;
 }
Beispiel #4
0
 public Scaffolder(LogFactory logFactory, ScriptConsole scriptConsole, ScriptEnvironment scriptEnvironment)
 {
     _commandRunner     = new CommandRunner(logFactory);
     _scriptConsole     = scriptConsole;
     _scriptEnvironment = scriptEnvironment;
 }
Beispiel #5
0
 public InteractiveRunner(ScriptCompiler scriptCompiler, LogFactory logFactory, ScriptConsole console, string[] packageSources)
 {
     Logger          = logFactory.CreateLogger <InteractiveRunner>();
     ScriptCompiler  = scriptCompiler;
     Console         = console;
     _packageSources = packageSources ?? Array.Empty <string>();
     _globals        = new InteractiveScriptGlobals(Console.Out, CSharpObjectFormatter.Instance);
 }