Esempio n. 1
0
 public static TemplateModel PipelineAndArgs(string pipeline, IEnumerable <string> args)
 {
     return(new TemplateModel
     {
         TemplateVariable.Pipeline(pipeline),
         TemplateVariable.Args(args)
     });
 }
Esempio n. 2
0
 public static TemplateModel Default(GlobalContext globalContext, SessionContext sessionContext)
 {
     return(new TemplateModel
     {
         TemplateVariable.Workbench(globalContext.WorkbenchDirectory),
         TemplateVariable.Userspace(sessionContext.CurrentUserspaceDirectory),
         TemplateVariable.Workspace(sessionContext.CurrentWorkspaceDirectory)
     });
 }