Last change
on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
963 bytes
|
Line | |
---|
1 | /**
|
---|
2 | * @license
|
---|
3 | * Copyright Google LLC All Rights Reserved.
|
---|
4 | *
|
---|
5 | * Use of this source code is governed by an MIT-style license that can be
|
---|
6 | * found in the LICENSE file at https://angular.io/license
|
---|
7 | */
|
---|
8 | import { logging } from '@angular-devkit/core';
|
---|
9 | import { Observable } from 'rxjs';
|
---|
10 | export interface RequiredWorkflowExecutionContext {
|
---|
11 | collection: string;
|
---|
12 | schematic: string;
|
---|
13 | options: object;
|
---|
14 | }
|
---|
15 | export interface WorkflowExecutionContext extends RequiredWorkflowExecutionContext {
|
---|
16 | debug: boolean;
|
---|
17 | logger: logging.Logger;
|
---|
18 | parentContext?: Readonly<WorkflowExecutionContext>;
|
---|
19 | allowPrivate?: boolean;
|
---|
20 | }
|
---|
21 | export interface LifeCycleEvent {
|
---|
22 | kind: 'start' | 'end' | 'workflow-start' | 'workflow-end' | 'post-tasks-start' | 'post-tasks-end';
|
---|
23 | }
|
---|
24 | export interface Workflow {
|
---|
25 | readonly context: Readonly<WorkflowExecutionContext>;
|
---|
26 | execute(options: Partial<WorkflowExecutionContext> & RequiredWorkflowExecutionContext): Observable<void>;
|
---|
27 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.