-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcli.ts
53 lines (47 loc) · 1.09 KB
/
cli.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import { writeFileStrSync } from "https://deno.land/std@0.125.0/fs/mod.ts";
/**
* 1:保障 github 上的浏览正常
* 2:保障 www.yalda.cn/leetcode-ts 上的浏览正常
* @author yalda
* @date 2019.08
*/
export class Leet {
private readonly tempCode: string =
"/**\n *\n * @time\n * @status\n * @runtime\n * @memory\n */\nvar subm = (target: any): any => {};\n";
private readonly draftCode: string =
"/**\n * @author yalda\n * @github github.com/guocaoyi\n * @website www.yalda.cn\n */\nvar subm = (target: any): any => {};\n";
/**
* leet create 0724. Find Pivot Indexs
*/
create() {
// step1:README.md
// step2:index.ts
// step3:.draft.ts
}
/**
* leet watch 0724
*/
watch() {
//
}
/**
* leet doc 0001 | all
*/
doc(filePath: string) {
let mark = new Writer();
mark
.load({ filePath })
.print(new Parser().load({ filePath }).getSourse)
.write();
}
/**
* leet index 制作索引
*/
summary(): any {
writeFileStrSync("", "", { encoding: "utf8" });
}
/**
* leet deploy 发布
*/
deploy() {}
}