core: lang: add disabled option

This commit is contained in:
undefined committed 2023-01-30 07:01:32 +08:00
1 parent 2cd89d7258
commit 88461a78cd
3 files changed
+5 -2

No files matched your search

+2
View File
@@ -1,6 +1,7 @@
import yaml from 'js-yaml';
export interface LangConfig {
disabled?: boolean;
compile?: string;
execute: string;
code_file: string;
@@ -41,6 +42,7 @@ export function parseLang(config: string): Record<string, LangConfig> {
entry.execute ||= '/w/foo';
entry.key = key;
entry.hidden ||= false;
entry.disabled ||= false;
}
return file;
}