Skip to main content
Version: 23.5.0

CLI.(constructor)

构造 CLI 类的新实例

¥Constructs a new instance of the CLI class

签名

¥Signature

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
);
}

参数

¥Parameters

范围

类型

描述

opts

!!!IG0!!!

!!!IG1!!!

; }>;}

(可选的)

rl

readline.Interface

(可选的)