config_patcher.h 438 B

123456789101112131415
  1. #pragma once
  2. #include <library/cpp/json/writer/json_value.h>
  3. #include <util/generic/string.h>
  4. namespace NConfigPatcher {
  5. struct TOptions {
  6. TString Prefix;
  7. };
  8. TString Patch(const TString& config, const TString& patch, const TOptions& options);
  9. TString Patch(const TString& config, const NJson::TJsonValue& parsedPatch, const TOptions& options);
  10. TString Diff(const TString& source, const TString& target);
  11. }