summaryrefslogtreecommitdiffhomepage
path: root/windows/winfw/src/extras/cli/util.h
blob: e7deeebb3e54f97af25adf5b58f0bc7978d763a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#pragma once

#include <functional>
#include <memory>
#include <string>
#include "propertylist.h"
#include <libwfp/filterengine.h>
#include <libcommon/string.h>

typedef std::function<void(const std::wstring &)> MessageSink;

struct PrettyPrintOptions
{
	size_t indent;
	bool useSeparator;
};

void PrettyPrintProperties(MessageSink, PrettyPrintOptions options, const PropertyList &properties);

std::wstring GetArgumentValue(const common::string::KeyValuePairs &arguments, const std::wstring &key);