2023-04-06 12:23:10 +00:00
|
|
|
---
|
|
|
|
sidebar_label: CLI.(constructor)
|
|
|
|
---
|
|
|
|
|
|
|
|
# CLI.(constructor)
|
|
|
|
|
|
|
|
Constructs a new instance of the `CLI` class
|
|
|
|
|
|
|
|
#### Signature:
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
class CLI {
|
2023-11-23 08:51:37 +00:00
|
|
|
constructor(
|
|
|
|
opts?:
|
|
|
|
| string
|
|
|
|
| {
|
|
|
|
cachePath?: string;
|
|
|
|
scriptName?: string;
|
|
|
|
prefixCommand?: {
|
|
|
|
cmd: string;
|
|
|
|
description: string;
|
|
|
|
};
|
|
|
|
allowCachePathOverride?: boolean;
|
|
|
|
pinnedBrowsers?: Partial<{
|
|
|
|
[key in Browser]: string;
|
|
|
|
}>;
|
|
|
|
},
|
|
|
|
rl?: readline.Interface
|
|
|
|
);
|
2023-04-06 12:23:10 +00:00
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
2023-11-29 12:06:05 +00:00
|
|
|
| Parameter | Type | Description |
|
|
|
|
| --------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------ |
|
|
|
|
| opts | string \| { cachePath?: string; scriptName?: string; prefixCommand?: { cmd: string; description: string; }; allowCachePathOverride?: boolean; pinnedBrowsers?: Partial<{ \[key in [Browser](./browsers.browser.md)\]: string; }>; } | _(Optional)_ |
|
|
|
|
| rl | readline.Interface | _(Optional)_ |
|