aboutsummaryrefslogtreecommitdiff
path: root/sandbox/testAppNevena/Front/node_modules/@angular/cli/models/schematic-command.d.ts
blob: 267b8fc29ba4aa73c583eaa8f7d0ab23d3e316a1 (plain) (blame)
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */
import { logging } from '@angular-devkit/core';
import { workflow } from '@angular-devkit/schematics';
import { FileSystemCollection, FileSystemEngine, FileSystemSchematic, NodeWorkflow } from '@angular-devkit/schematics/tools';
import { BaseCommandOptions, Command } from './command';
import { Arguments, CommandContext, CommandDescription, Option } from './interface';
export interface BaseSchematicSchema {
    debug?: boolean;
    dryRun?: boolean;
    force?: boolean;
    interactive?: boolean;
    defaults?: boolean;
    packageRegistry?: string;
}
export interface RunSchematicOptions extends BaseSchematicSchema {
    collectionName: string;
    schematicName: string;
    additionalOptions?: {
        [key: string]: {};
    };
    schematicOptions?: string[];
    showNothingDone?: boolean;
}
export declare class UnknownCollectionError extends Error {
    constructor(collectionName: string);
}
export declare abstract class SchematicCommand<T extends BaseSchematicSchema & BaseCommandOptions> extends Command<T> {
    protected readonly allowPrivateSchematics: boolean;
    protected readonly useReportAnalytics = false;
    protected _workflow: NodeWorkflow;
    protected defaultCollectionName: string;
    protected collectionName: string;
    protected schematicName?: string;
    constructor(context: CommandContext, description: CommandDescription, logger: logging.Logger);
    initialize(options: T & Arguments): Promise<void>;
    printHelp(): Promise<number>;
    printHelpUsage(): Promise<void>;
    protected getEngine(): FileSystemEngine;
    protected getCollection(collectionName: string): FileSystemCollection;
    protected getSchematic(collection: FileSystemCollection, schematicName: string, allowPrivate?: boolean): FileSystemSchematic;
    protected setPathOptions(options: Option[], workingDir: string): {
        [name: string]: string;
    };
    protected createWorkflow(options: BaseSchematicSchema): Promise<workflow.BaseWorkflow>;
    protected getDefaultSchematicCollection(): Promise<string>;
    protected runSchematic(options: RunSchematicOptions): Promise<number | void>;
    protected parseFreeFormArguments(schematicOptions: string[]): Promise<Arguments>;
    protected parseArguments(schematicOptions: string[], options: Option[] | null): Promise<Arguments>;
}