nlu
Version:
Use this package to link your projects together for local development.
25 lines (16 loc) • 493 B
text/typescript
;
import {NluGlobalSettingsConf} from "../../../index";
import * as fs from 'fs';
import log from "../../../logging";
import chalk from "chalk";
export default function (opts: any, confPath: string, conf: NluGlobalSettingsConf) {
fs.writeFile(confPath, '{}', err => {
if (err) {
log.error('Could not write out global config.');
log.error('Here is the config object:', conf);
log.error(err);
process.exit(1);
}
process.exit(0);
});
}