文档部分基本完成,还需要完善生成目录
This commit is contained in:
1 parent
578109c8de
commit
365b1db47e
109 files changed
+6222
-289
No files matched your search
@@ -0,0 +1,17 @@
|
||||
import { generate_md, generate_pdf } from "./handlers.ts";
|
||||
|
||||
export function match_sub_command_to_function(sub_command: Array<string>) {
|
||||
switch (sub_command[0]) {
|
||||
case "generate":
|
||||
switch (sub_command[1]) {
|
||||
case "pdf":
|
||||
return generate_pdf;
|
||||
case "md":
|
||||
return generate_md;
|
||||
default:
|
||||
throw new Error(`Unknown sub-command: ${sub_command[1]}`);
|
||||
}
|
||||
default:
|
||||
throw new Error(`Unknown sub-command: ${sub_command[0]}`);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user