@arkts/sdk-downloader
Version:
Download and extract the ArkTS SDK.
15 lines (12 loc) • 1.14 kB
JavaScript
import "./download-Dayz2MQC.js";
import { runCommandLineDownload } from "./command-line-9KXYMiBC.js";
import { cac } from "cac";
//#region package.json
var version = "0.1.29";
//#endregion
//#region src/cli.ts
const cli = cac("arkcode-sdk-downloader");
cli.command("download", "Start a resumeable task for download OpenHarmony SDK.").option("--api-version <version>", "SDK version (e.g., API12, API13, API14, API15, API18)").option("--arch <arch>", "SDK architecture (e.g., X86, ARM)").option("--os <os>", "SDK operating system (e.g., Windows, Linux, MacOS)").option("--cache-dir <dir>", "Directory to store cache downloaded SDKs", { default: "./.cache" }).option("--target-dir <dir>", "Directory to save the downloaded SDK", { default: "./download" }).option("--log-type", "Log type, (default: explicit), can be 'explicit', 'full', or 'silent'", { default: "explicit" }).option("--log-timeout [ms]", "Timeout for log output in milliseconds, default is 5000ms", { default: 5e3 }).alias("d").action(async (options) => runCommandLineDownload(options));
cli.version(version).help().parse();
//#endregion
//# sourceMappingURL=cli.js.map