export function findMissingConfig()

in util/config/configurator/configurator.ts [273:289]


export function findMissingConfig(
  config: Record<string, any>,
  opsCurrentConfig: string
): Prompts {
  let newConfig: Record<string, any> = {};

  let opsConfigKeys = opsCurrentConfig.split("\n").map((line) => line.split("=")[0]);

  for (const key in config) {
    if (opsConfigKeys.includes(key)) {
      continue;
    }
    newConfig[key] = config[key];
  }

  return newConfig;
}