CLI.(constructor)
构造 CLI 类的新实例
签名
class CLI {
constructor(
opts?:
| string
| {
cachePath?: string;
scriptName?: string;
version?: string;
prefixCommand?: {
cmd: string;
description: string;
};
allowCachePathOverride?: boolean;
pinnedBrowsers?: Partial<
Record<
Browser,
{
buildId: string;
skipDownload: boolean;
}
>
>;
},
rl?: readline.Interface,
);
}
参数
|
参数 |
类型 |
说明 |
|---|---|---|
|
opts |
string | { cachePath?: string; scriptName?: string; version?: string; prefixCommand?: { cmd: string; description: string; }; allowCachePathOverride?: boolean; pinnedBrowsers?: Partial<Record<Browser, { buildId: string; skipDownload: boolean; }>>; } |
(可选) |
|
rl |
readline.Interface |
(可选) |