From bf3d969ef2dbc615bd528f559920bcf532dda910 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sat, 15 Dec 2018 14:45:24 +0200 Subject: Implement bdep-release that manages project's version during release --- bdep/utility.hxx | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) (limited to 'bdep/utility.hxx') diff --git a/bdep/utility.hxx b/bdep/utility.hxx index 57764fa..1f45ded 100644 --- a/bdep/utility.hxx +++ b/bdep/utility.hxx @@ -19,6 +19,9 @@ #include #include +#include // manifest_parser::filter_function +#include // manifest_serializer::filter_function + #include #include #include @@ -208,25 +211,33 @@ namespace bdep T parse_manifest (const path&, const char* what, - bool ignore_unknown = false); + bool ignore_unknown = false, + function = {}); template T parse_manifest (istream&, const string& name, const char* what, - bool ignore_unknown = false); + bool ignore_unknown = false, + function = {}); template void - serialize_manifest (const T&, const path&, const char* what); + serialize_manifest ( + const T&, + const path&, + const char* what, + function = {}); template void - serialize_manifest (const T&, - ostream&, - const string& name, - const char* what); + serialize_manifest ( + const T&, + ostream&, + const string& name, + const char* what, + function = {}); // CLI (sub)command parsing helper. // -- cgit v1.1