blob: 04ff41f91ba82b6210d4aaf3569e553b9b0b2b81 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Tango.Console
{
public class ConsoleCommandExecutingEventArgs : EventArgs
{
private Action<String, String> _completedAction;
public ConsoleCommand Command { get; private set; }
public ConsoleCommandExecutingEventArgs(ConsoleCommand command, Action<String, String> completedAction)
{
Command = command;
_completedAction = completedAction;
}
public void Complete(String output, String nextWorkingFolder)
{
_completedAction.Invoke(output, nextWorkingFolder);
}
}
}
|