nlu
Version:
Use this package to link your projects together for local development.
18 lines (11 loc) • 364 B
text/typescript
;
import {NluGlobalSettingsConf} from "../../../index";
export default function (opts: any, confPath: string, conf: NluGlobalSettingsConf, key: string, value?: string) {
if (!key) {
return console.log(conf);
}
if (key in conf) {
return console.log(conf[key]);
}
console.log(`(NLU global config does not have key: "${key}")`);
}