aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/yconf/patcher/config_patcher.h
blob: 79d7babe6e073c3cb05fefe3dda84ed781fc3e14 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#pragma once

#include <library/cpp/json/writer/json_value.h>

#include <util/generic/string.h>

namespace NConfigPatcher {
    struct TOptions {
        TString Prefix;
    };

    TString Patch(const TString& config, const TString& patch, const TOptions& options);
    TString Patch(const TString& config, const NJson::TJsonValue& parsedPatch, const TOptions& options);
    TString Diff(const TString& source, const TString& target);
}