scriptcs/scriptcs — pull request #282 by dotnetpowered (2013-05-20 03:55:41+00:00)
Title: New Feature: Add initialization scripts in Script Pack

Add a collection of scripts into a Script Pack allowing you to define functions and more.

Allows you to do something like this in your script pack:

void IScriptPack.Initialize(IScriptPackSession session)
{
session.AddInitializationScripts(
new string[] {
"Action ls = (filespec)=>{ foreach (var f in new System.IO.DirectoryInfo(\".\").GetFiles(filespec)) { Console.WriteLine(f);} };"
}
);
}

While allows you to do something like this in REPL:

ls("*.dll");