Пример #1
0
 public void task(string name, Action<NakeTaskParameter> callback, [CallerFilePath] string filePath = "", [CallerLineNumber] int lineNumber = 0)
 {
     var fullName = getFullTaskName(name);
     var task = new NakeTask(fullName, callback, this.currentDesc)
     {
         FilePath = filePath,
         LineNumber = lineNumber
     };
     this.tasks[fullName] = task;
     this.currentDesc = null;
 }
Пример #2
0
 public void task(string name, string deps, [CallerFilePath] string filePath = "", [CallerLineNumber] int lineNumber = 0)
 {
     var fullName = getFullTaskName(name);
     var task = new NakeTask(fullName, deps, this.currentDesc)
     {
         FilePath = filePath,
         LineNumber = lineNumber
     };
     this.tasks[fullName] = task;
     this.currentDesc = null;
 }