comment env-to-yaml script

This commit is contained in:
William Welling
2021-12-14 18:11:37 -06:00
parent c7321f9a22
commit b820794790

View File

@@ -2,8 +2,15 @@ import * as fs from 'fs';
import * as yaml from 'js-yaml'; import * as yaml from 'js-yaml';
import { join } from 'path'; import { join } from 'path';
const args = process.argv.slice(2); /**
* Script to help convert previous version environment.*.ts to yaml.
*
* Usage (see package.json):
*
* yarn env:yaml [relative path to environment.ts file] (optional relative path to write yaml file) *
*/
const args = process.argv.slice(2);
if (args[0] === undefined) { if (args[0] === undefined) {
console.log(`Usage:\n\tyarn env:yaml [relative path to environment.ts file] (optional relative path to write yaml file)\n`); console.log(`Usage:\n\tyarn env:yaml [relative path to environment.ts file] (optional relative path to write yaml file)\n`);
process.exit(0); process.exit(0);