(text: string)
| 141 | } |
| 142 | |
| 143 | function parseValueRef(text: string): {filename: string; key: string} | null { |
| 144 | const match = /!(.*) (.*)/g.exec(text); |
| 145 | if (match) { |
| 146 | let filename = match[1]; |
| 147 | // This is mainly for backward compatibility. |
| 148 | if (!filename.endsWith(".yaml") && !filename.endsWith(".yml")) { |
| 149 | filename += ".yaml"; |
| 150 | } |
| 151 | return {filename, key: match[2]}; |
| 152 | } |
| 153 | |
| 154 | return null; |
| 155 | } |
| 156 | |
| 157 | export function writeMinimalDefaults(): void { |
| 158 | const minimal = { |
no outgoing calls
no test coverage detected