@@ -9,37 +9,7 @@ import { executeCommand, executeCommandWithProgress } from "./utils/cpUtils";
99import { DialogOptions } from "./utils/uiUtils" ;
1010import * as wsl from "./utils/wslUtils" ;
1111
12- export interface ILeetCodeExecutor {
13- meetRequirements ( ) : Promise < boolean > ;
14- getLeetCodeBinaryPath ( ) : Promise < string > ;
15-
16- /* section for cache command */
17- deleteCache ( ) : Promise < string > ;
18-
19- /* section for user command */
20- getUserInfo ( ) : Promise < string > ;
21- signOut ( ) : Promise < string > ;
22- // TODO: implement login when leetcode-cli support login in batch mode.
23- // signIn(): Promise<string>;
24-
25- /* section for problem command */
26- listProblems ( showLocked : boolean ) : Promise < string > ;
27- showProblem ( id : string , language : string , outdir : string ) : Promise < string > ;
28-
29- /* section for session command */
30- listSessions ( ) : Promise < string > ;
31- enableSession ( name : string ) : Promise < string > ;
32- createSession ( name : string ) : Promise < string > ;
33-
34- /* section for solution command */
35- submitSolution ( filePath : string ) : Promise < string > ;
36- testSolution ( filePath : string , testString ?: string ) : Promise < string > ;
37-
38- /* section for plugin command */
39- toggleLeetCodeCn ( isEnable : boolean ) : Promise < string > ;
40- }
41-
42- class LeetCodeExecutor implements ILeetCodeExecutor {
12+ class LeetCodeExecutor {
4313 private leetCodeBinaryPath : string ;
4414 private leetCodeBinaryPathInWsl : string ;
4515
@@ -142,4 +112,4 @@ class LeetCodeExecutor implements ILeetCodeExecutor {
142112 }
143113}
144114
145- export const leetCodeExecutor : ILeetCodeExecutor = new LeetCodeExecutor ( ) ;
115+ export const leetCodeExecutor : LeetCodeExecutor = new LeetCodeExecutor ( ) ;
0 commit comments