1 | import { Command } from '../command';
|
2 | /**
|
3 | * Interface for a class that controls and/or watches the behavior of commands.
|
4 | *
|
5 | * This may include logging their output, creating interactions between them, or changing when they
|
6 | * actually finish.
|
7 | */
|
8 | export interface FlowController {
|
9 | handle(commands: Command[]): {
|
10 | commands: Command[];
|
11 | onFinish?: () => void | Promise<void>;
|
12 | };
|
13 | }
|