CLI.(constructor)
构造 CLI 类的新实例
¥Constructs a new instance of the CLI class
签名
¥Signature
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,
);
}
参数
¥Parameters
范围 | 类型 | 描述 |
|---|---|---|
opts | !!!IG0!!! !!!IG1!!! >>;} | (可选的) |
rl | readline.Interface | (可选的) |