(file:string, content:string, workspace = "eve")
| 47 | |
| 48 | /** Given an explicit workspace, update the contents of the file. */ |
| 49 | export function set(file:string, content:string, workspace = "eve") { |
| 50 | if(!workspaces[workspace]) { |
| 51 | console.error(`Unable to set '${file}' from unregistered workspace '${workspace}'`); |
| 52 | return; |
| 53 | } |
| 54 | |
| 55 | saveFile(file, content, workspace); |
| 56 | } |
| 57 | |
| 58 | /** Using the inferred workspace from the file path, update the contents of the file. */ |
| 59 | export function save(file:string, content:string) { |