1 | import { CrossbowConfiguration } from "./config";
|
2 | import { CommandTrigger } from "./command.run";
|
3 | import { ExternalFileInput, ExternalFile } from "./file.utils";
|
4 | import { Task } from "./task.resolve";
|
5 | import { CrossbowInput } from "./index";
|
6 | export declare enum InputErrorTypes {
|
7 | InputFileNotFound,
|
8 | NoTasksAvailable,
|
9 | NoWatchersAvailable,
|
10 | FileNotFound,
|
11 | NotAFile,
|
12 | InvalidYaml,
|
13 | InvalidInput,
|
14 | InvalidJson,
|
15 | BinDirectoryNotFound,
|
16 | BinPathNotADirectory,
|
17 | EnvFileNotFound,
|
18 | EnvFileParseError,
|
19 | }
|
20 | export interface InputFileNotFoundError extends InputError {
|
21 | }
|
22 | export interface NoTasksAvailableError extends InputError {
|
23 | }
|
24 | export interface NoWatchersAvailableError extends InputError {
|
25 | }
|
26 | export interface InputError {
|
27 | type: InputErrorTypes;
|
28 | }
|
29 | export interface InputFiles {
|
30 | all: ExternalFileInput[];
|
31 | valid: ExternalFileInput[];
|
32 | invalid: ExternalFileInput[];
|
33 | }
|
34 | export declare function locateModule(config: CrossbowConfiguration, taskName: string): ExternalFile[];
|
35 | export declare function getChildTaskNames(task: Task): string[];
|
36 |
|
37 |
|
38 |
|
39 |
|
40 |
|
41 |
|
42 |
|
43 |
|
44 |
|
45 |
|
46 |
|
47 |
|
48 |
|
49 |
|
50 |
|
51 | export declare function envifyObject(object: any, prefix: string, objectKeyName: string): any;
|
52 | export declare function envifyObjectPlain(object: any, prefixes: string[]): any;
|
53 | export declare function excludeKeys(input: any, blacklist: string[]): any;
|
54 |
|
55 |
|
56 |
|
57 |
|
58 |
|
59 |
|
60 |
|
61 |
|
62 |
|
63 |
|
64 |
|
65 |
|
66 |
|
67 | export declare function getContextEnv(trigger: CommandTrigger, ctx: any): any;
|
68 | export declare function getCBEnv(trigger: CommandTrigger): {};
|
69 | export declare function getFunctionName(fn: any): string;
|
70 | export declare const removeNewlines: (x: string) => string;
|
71 | export declare const escapeNewLines: (x: string) => string;
|
72 | export declare const removeTrailingNewlines: (x: string) => string;
|
73 | export declare function stringifyObj(incoming: any, max?: number): string;
|
74 | export declare function isPlainObject(val: any): boolean;
|
75 | export declare function isString(val: any): boolean;
|
76 | export declare function isFunction(val: any): boolean;
|
77 | export declare function isReport(report: any): boolean;
|
78 | export declare function isPrivateTask(taskName: string): boolean;
|
79 | export declare function isPublicTask(taskName: string): boolean;
|
80 | export declare function isParentGroupName(name: string): RegExpMatchArray;
|
81 | export declare function isParentRef(name: string, names: string[]): boolean;
|
82 | export declare function getChildItems(name: string, input: any): any;
|
83 | export declare function getPossibleTaskNames(input: CrossbowInput): any[];
|
84 | export declare function getChildName(name: any): any;
|
85 | export declare function isInternal(incoming: string): boolean;
|
86 | export declare function isSupportedFileType(incoming: any): boolean;
|
87 | export declare function _e(x: any): any;
|
88 | export declare function __e(x: any): any;
|
89 | export declare function longestString(col: string[]): number;
|
90 | export declare function getLongestTaskName(tasks: Task[]): number;
|
91 | export declare function padLine(incoming: any, max?: any): any;
|
92 | export declare function concatProps(tasks: any, initial: string[], propname: string): string[];
|