obsidian-execute-code
obsidian-execute-code copied to clipboard
Refactoring the Settings
(Continuation from #268 )
Add an interface like below for each language with only path required. If args or inject doesn't exist, assume it is "" and if fileExtension doesn't exist, assume it is the same as the language etc. Maybe interactive should be required, but the idea is pretty similar. Let me know!
export interface LanguageSettings { path: string; args?: string; fileExtension?: string; inject?: string; interactive?: boolean; embedPlot?: boolean; useMain?: boolean; }