vcpkg/toolsrc/include/vcpkg/update.h
Cengizhan Pasaoglu 0dcc11ac22
[vcpkg] Use more forward declarations rather than definitions (#13623)
Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
2020-10-08 22:31:21 -07:00

36 lines
962 B
C++

#pragma once
#include <vcpkg/fwd/portfileprovider.h>
#include <vcpkg/fwd/vcpkgcmdarguments.h>
#include <vcpkg/fwd/vcpkgpaths.h>
#include <vcpkg/commands.interface.h>
#include <vcpkg/packagespec.h>
#include <vcpkg/versiont.h>
namespace vcpkg
{
struct StatusParagraphs;
}
namespace vcpkg::Update
{
struct OutdatedPackage
{
static bool compare_by_name(const OutdatedPackage& left, const OutdatedPackage& right);
PackageSpec spec;
VersionDiff version_diff;
};
std::vector<OutdatedPackage> find_outdated_packages(const PortFileProvider::PortFileProvider& provider,
const StatusParagraphs& status_db);
void perform_and_exit(const VcpkgCmdArguments& args, const VcpkgPaths& paths);
struct UpdateCommand : Commands::PathsCommand
{
virtual void perform_and_exit(const VcpkgCmdArguments& args, const VcpkgPaths& paths) const override;
};
}