1 | import { Task } from "./task.resolve";
|
2 | import Immutable = require("immutable");
|
3 | import { CommandTrigger } from "./command.run";
|
4 | import Rx = require("rx");
|
5 | /**
|
6 | * A task context is just an Immutable Map of key=>value pairs
|
7 | * that may be used to provide addition context to the task running
|
8 | * environment. This is especially useful in situations where you need
|
9 | * to do something that MUST block the task running altogether. An example
|
10 | * would be hashing files/directories to determine if a task/group of tasks should
|
11 | * run.
|
12 | */
|
13 | export default function getContext(tasks: Task[], trigger: CommandTrigger): Rx.Observable<Immutable.Map<string, any>>;
|