@@ -9,37 +9,7 @@ import { executeCommand, executeCommandWithProgress } from "./utils/cpUtils";
9
9
import { DialogOptions } from "./utils/uiUtils" ;
10
10
import * as wsl from "./utils/wslUtils" ;
11
11
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 {
43
13
private leetCodeBinaryPath : string ;
44
14
private leetCodeBinaryPathInWsl : string ;
45
15
@@ -142,4 +112,4 @@ class LeetCodeExecutor implements ILeetCodeExecutor {
142
112
}
143
113
}
144
114
145
- export const leetCodeExecutor : ILeetCodeExecutor = new LeetCodeExecutor ( ) ;
115
+ export const leetCodeExecutor : LeetCodeExecutor = new LeetCodeExecutor ( ) ;
0 commit comments