// file : bpkg/types-parsers.hxx -*- C++ -*- // license : MIT; see accompanying LICENSE file // CLI parsers, included into the generated source files. // #ifndef BPKG_TYPES_PARSERS_HXX #define BPKG_TYPES_PARSERS_HXX #include #include #include #include // bpkg::cli namespace #include namespace bpkg { namespace cli { template <> struct parser { static void parse (url&, bool&, scanner&); static void merge (url& b, const url& a) {b = a;} }; template <> struct parser { static void parse (path&, bool&, scanner&); static void merge (path& b, const path& a) {b = a;} }; template <> struct parser { static void parse (dir_path&, bool&, scanner&); static void merge (dir_path& b, const dir_path& a) {b = a;} }; template <> struct parser { static void parse (uuid&, bool&, scanner&); static void merge (uuid& b, const uuid& a) {b = a;} }; template <> struct parser { static void parse (butl::standard_version&, bool&, scanner&); static void merge (butl::standard_version& b, const butl::standard_version& a) { b = a; } }; template <> struct parser { static void parse (auth&, bool&, scanner&); static void merge (auth& b, const auth& a) {b = a;} }; template <> struct parser { static void parse (git_protocol_capabilities&, bool&, scanner&); static void merge (git_protocol_capabilities& b, const git_protocol_capabilities& a) { b = a; } }; template <> struct parser { static void parse (git_capabilities_map&, bool&, scanner&); static void merge (git_capabilities_map&, const git_capabilities_map&); }; template <> struct parser { static void parse (stdout_format&, bool&, scanner&); static void merge (stdout_format& b, const stdout_format& a) {b = a;} }; template <> struct parser { static void parse (repository_type&, bool&, scanner&); static void merge (repository_type& b, const repository_type& a) {b = a;} }; template struct parser> { static void parse (qualified_option&, bool&, scanner&); static void merge (qualified_option&, const qualified_option&); }; } } #include #endif // BPKG_TYPES_PARSERS_HXX