static void Main(string[] args) { var execFunctions = new SPFunctions { { "deploy", options => { Deploy.Demo(options.Context); Deploy.ImportDemo(options.Context); } }, { "demo", options => { Deploy.ImportDemo(options.Context); } }, { "retract", options => { Deploy.DemoRetractLite(options.Context); } } }; var forcePropmts = true; SharePoint.RunCSOM("--configPath='./configs/private.demo.json' --forcePrompts=" + forcePropmts, execFunctions); Console.WriteLine("Finished"); Console.ReadKey(); }
static void Main(string[] args) { var fun = new SPFunctions() { { "artefacts", options => { var l = ""; } }, { "data", options => { var l = ""; } }, { "full", "KJNKJNKJN", options => { var l = ""; } }, { "divarts", "Description of divarts", options => { options.EnsureCustomParam("Test4"); var MyCustomArg2 = options.LoadedSettings["custom"]["MyCustomArg2"]; var MyCustomArg5 = options.LoadedSettings["custom"]["MyCustomArg5"]; var l = ""; } }, { "divfields", options => { var l = ""; } }, { "divct", options => { var l = ""; } }, { "divlists", "Description of divlists", options => { var l = ""; } }, { "divquicklaunch", options => { var l = ""; } }, { "test_provision", options => { var l = ""; } } }; SharePoint.RunCSOM(string.Join(" ", args), fun); var t = ""; }