(text: any, envs: {[key: string]: string})
| 138 | } |
| 139 | |
| 140 | static expandText (text: any, envs: {[key: string]: string}) { |
| 141 | return this.expandTextWith(text, { |
| 142 | unescape: "$", |
| 143 | variable: (name) => envs[name] ?? "", |
| 144 | }); |
| 145 | } |
| 146 | |
| 147 | static expandVariables (variables: {[key: string]: string}) { |
| 148 | const _variables = {...variables}; // copy by value to prevent mutating the original input |
no test coverage detected