@adinsure-ops/ops-cli
Version:
Operations CLI for working with AdInsure
29 lines (28 loc) • 1.28 kB
TypeScript
import CommandBase from '../command.base.js';
interface Transformation {
name: string;
srcPath: string;
transform(): void;
}
interface DotfileLine {
prefix: string;
source: string;
transformData: string;
}
export default class PrepareContent extends CommandBase<typeof PrepareContent> {
static readonly dotfile = ".opsprepare";
static description: string;
static usage: string;
static examples: string[];
static flags: {
destination: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
source: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
};
parseDotfileLine(line: string, sourceDirectory: string): Promise<DotfileLine>;
readDotfile(sourceDirectory: string): Promise<DotfileLine[]>;
getTransformation(lineData: DotfileLine, baseSourcedir: string, baseDestinationDir: string): Promise<Transformation>;
prepareTransformations(linesData: DotfileLine[], baseSourceDir: string, baseDestinationDir: string): Promise<Transformation[]>;
runTransformations(transformations: Transformation[]): Promise<void>;
run(): Promise<void>;
}
export {};