import { CommandArgs, help, longName, required, hasArg } from "../../../util/commandline"; import { AppiumPreparer } from "../lib/appium-preparer"; import { PrepareTestsCommand } from "../lib/prepare-tests-command"; import { Messages } from "../lib/help-messages"; @help(Messages.TestCloud.Commands.PrepareAppium) export default class PrepareAppiumCommand extends PrepareTestsCommand { @help(Messages.TestCloud.Arguments.AppiumBuildDir) @longName("build-dir") @hasArg @required buildDir: string; constructor(args: CommandArgs) { super(args); } protected prepareManifest(): Promise { const preparer = new AppiumPreparer(this.artifactsDir, this.buildDir); return preparer.prepare(); } protected getSourceRootDir() { return this.buildDir; } }