diff options
Diffstat (limited to 'toolsrc/include')
| -rw-r--r-- | toolsrc/include/vcpkg/commands.add-version.h | 13 | ||||
| -rw-r--r-- | toolsrc/include/vcpkg/commands.civerifyversions.h | 13 | ||||
| -rw-r--r-- | toolsrc/include/vcpkg/registries.h | 7 | ||||
| -rw-r--r-- | toolsrc/include/vcpkg/vcpkgpaths.h | 2 |
4 files changed, 35 insertions, 0 deletions
diff --git a/toolsrc/include/vcpkg/commands.add-version.h b/toolsrc/include/vcpkg/commands.add-version.h new file mode 100644 index 000000000..8b9e0336e --- /dev/null +++ b/toolsrc/include/vcpkg/commands.add-version.h @@ -0,0 +1,13 @@ +#pragma once + +#include <vcpkg/commands.interface.h> + +namespace vcpkg::Commands::AddVersion +{ + void perform_and_exit(const VcpkgCmdArguments& args, const VcpkgPaths& paths); + + struct AddVersionCommand : PathsCommand + { + void perform_and_exit(const VcpkgCmdArguments& args, const VcpkgPaths& paths) const override; + }; +}
\ No newline at end of file diff --git a/toolsrc/include/vcpkg/commands.civerifyversions.h b/toolsrc/include/vcpkg/commands.civerifyversions.h new file mode 100644 index 000000000..17d8f5613 --- /dev/null +++ b/toolsrc/include/vcpkg/commands.civerifyversions.h @@ -0,0 +1,13 @@ +#pragma once + +#include <vcpkg/commands.interface.h> + +namespace vcpkg::Commands::CIVerifyVersions +{ + void perform_and_exit(const VcpkgCmdArguments& args, const VcpkgPaths& paths); + + struct CIVerifyVersionsCommand : PathsCommand + { + void perform_and_exit(const VcpkgCmdArguments& args, const VcpkgPaths& paths) const override; + }; +}
\ No newline at end of file diff --git a/toolsrc/include/vcpkg/registries.h b/toolsrc/include/vcpkg/registries.h index 006bc789d..c36c0179d 100644 --- a/toolsrc/include/vcpkg/registries.h +++ b/toolsrc/include/vcpkg/registries.h @@ -9,8 +9,10 @@ #include <vcpkg/base/stringview.h> #include <vcpkg/base/view.h> +#include <vcpkg/versiondeserializers.h> #include <vcpkg/versiont.h> +#include <map> #include <memory> #include <string> #include <system_error> @@ -103,4 +105,9 @@ namespace vcpkg std::unique_ptr<Json::IDeserializer<std::vector<Registry>>> get_registry_array_deserializer( const fs::path& configuration_directory); + + ExpectedS<std::vector<std::pair<VersionT, std::string>>> get_builtin_versions(const VcpkgPaths& paths, + StringView port_name); + + ExpectedS<std::map<std::string, VersionT, std::less<>>> get_builtin_baseline(const VcpkgPaths& paths); } diff --git a/toolsrc/include/vcpkg/vcpkgpaths.h b/toolsrc/include/vcpkg/vcpkgpaths.h index 1f562c151..a175d51e2 100644 --- a/toolsrc/include/vcpkg/vcpkgpaths.h +++ b/toolsrc/include/vcpkg/vcpkgpaths.h @@ -122,6 +122,8 @@ namespace vcpkg fs::path git_checkout_port(Files::Filesystem& filesystem, StringView port_name, StringView git_tree) const; ExpectedS<std::string> git_show(const std::string& treeish, const fs::path& dot_git_dir) const; + ExpectedS<std::map<std::string, std::string, std::less<>>> git_get_local_port_treeish_map() const; + Optional<const Json::Object&> get_manifest() const; Optional<const fs::path&> get_manifest_path() const; const Configuration& get_configuration() const; |
