(showLocked: boolean, needTranslation: boolean)
| 89 | } |
| 90 | |
| 91 | public async listProblems(showLocked: boolean, needTranslation: boolean): Promise<string> { |
| 92 | const cmd: string[] = [await this.getLeetCodeBinaryPath(), "list"]; |
| 93 | if (!needTranslation) { |
| 94 | cmd.push("-T"); // use -T to prevent translation |
| 95 | } |
| 96 | if (!showLocked) { |
| 97 | cmd.push("-q"); |
| 98 | cmd.push("L"); |
| 99 | } |
| 100 | return await this.executeCommandEx(this.nodeExecutable, cmd); |
| 101 | } |
| 102 | |
| 103 | public async showProblem(problemNode: IProblem, language: string, filePath: string, showDescriptionInComment: boolean = false, needTranslation: boolean): Promise<void> { |
| 104 | const templateType: string = showDescriptionInComment ? "-cx" : "-c"; |
no test coverage detected