(file:string, workspace = "eve")
| 29 | |
| 30 | /** Given an explicit workspace, return the contents of the file. */ |
| 31 | export function get(file:string, workspace = "eve"):string|undefined { |
| 32 | if(!workspaces[workspace]) { |
| 33 | console.error(`Unable to get '${file}' from unregistered workspace '${workspace}'`); |
| 34 | return; |
| 35 | } |
| 36 | |
| 37 | return fetchFile(file, workspace); |
| 38 | } |
| 39 | |
| 40 | /** Using the inferred workspace from the file path, return the contents of the file. */ |
| 41 | export function find(file:string):string|undefined { |