( creates: EnvLocalAutoCreate[], create: EnvLocalAutoCreate )
| 60 | command: 'openssl', |
| 61 | args: ['rand', '-base64', '32'], |
| 62 | }; |
| 63 | } |
| 64 | |
| 65 | function maybeAddEnvLocalAutoCreate( |
| 66 | creates: EnvLocalAutoCreate[], |
| 67 | create: EnvLocalAutoCreate |
| 68 | ): void { |
| 69 | if (!creates.some(existing => existing.key === create.key)) { |
| 70 | creates.push(create); |
| 71 | } |
| 72 | } |