跳至主要內容
版本:23.11.1

CLI.(建構函式)

建構 CLI 類別的新實例

簽章

class CLI {
constructor(
opts?:
| string
| {
cachePath?: string;
scriptName?: string;
prefixCommand?: {
cmd: string;
description: string;
};
allowCachePathOverride?: boolean;
pinnedBrowsers?: Partial<{
[key in Browser]: {
buildId: string;
skipDownload: boolean;
};
}>;
},
rl?: readline.Interface,
);
}

參數

參數

類型

描述

opts

string | { cachePath?: string; scriptName?: string; prefixCommand?: { cmd: string; description: string; }; allowCachePathOverride?: boolean; pinnedBrowsers?: Partial<{ [key in Browser]: { buildId: string; skipDownload: boolean; }; }>; }

(選用)

rl

readline.Interface

(選用)