-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[vcpkg] Refactor Commands: Part 1 (#12585)
* Rename commands.exportifw.cpp -> export.ifw.cpp * move DryRun from commands.h -> commands.interface.h * move vcpkgcmdarguments and vcpkgpaths over to commands.interface.h * move vcpkg::Commands::BuildExternal -> commands.buildexternal.h * add commands.*.h for the commands.*.cpp * move vcpkg::Commands::* to commands.*.h * move vcpkg::Commands::{Hash,Fetch} to their own files * change include commands.h -> commands.*.h in commands.*.cpp * remove commands.*.h from commands.h * join vcpkg::Commands::* into one namespace line * fix vcxproj build
- Loading branch information
1 parent
37f7d69
commit 56fffbe
Showing
59 changed files
with
513 additions
and
284 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#pragma once | ||
|
||
#include <vcpkg/commands.interface.h> | ||
|
||
namespace vcpkg::Commands::Autocomplete | ||
{ | ||
void perform_and_exit(const VcpkgCmdArguments& args, const VcpkgPaths& paths); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#pragma once | ||
|
||
#include <vcpkg/commands.interface.h> | ||
|
||
namespace vcpkg::Commands::BuildExternal | ||
{ | ||
void perform_and_exit(const VcpkgCmdArguments& args, const VcpkgPaths& paths, Triplet default_triplet); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#pragma once | ||
|
||
#include <vcpkg/commands.interface.h> | ||
|
||
namespace vcpkg::Commands::Cache | ||
{ | ||
void perform_and_exit(const VcpkgCmdArguments& args, const VcpkgPaths& paths); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#pragma once | ||
|
||
#include <vcpkg/commands.interface.h> | ||
|
||
namespace vcpkg::Commands::CI | ||
{ | ||
extern const CommandStructure COMMAND_STRUCTURE; | ||
void perform_and_exit(const VcpkgCmdArguments& args, const VcpkgPaths& paths, Triplet default_triplet); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#pragma once | ||
|
||
#include <vcpkg/commands.interface.h> | ||
|
||
namespace vcpkg::Commands::CIClean | ||
{ | ||
void perform_and_exit(const VcpkgCmdArguments& args, const VcpkgPaths& paths); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#pragma once | ||
|
||
#include <vcpkg/commands.interface.h> | ||
|
||
namespace vcpkg::Commands::Contact | ||
{ | ||
extern const CommandStructure COMMAND_STRUCTURE; | ||
const std::string& email(); | ||
void perform_and_exit(const VcpkgCmdArguments& args, Files::Filesystem& fs); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#pragma once | ||
|
||
#include <vcpkg/commands.interface.h> | ||
|
||
namespace vcpkg::Commands::Create | ||
{ | ||
extern const CommandStructure COMMAND_STRUCTURE; | ||
int perform(const VcpkgCmdArguments& args, const VcpkgPaths& paths); | ||
void perform_and_exit(const VcpkgCmdArguments& args, const VcpkgPaths& paths); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#pragma once | ||
|
||
#include <vcpkg/commands.interface.h> | ||
|
||
namespace vcpkg::Commands::DependInfo | ||
{ | ||
extern const CommandStructure COMMAND_STRUCTURE; | ||
void perform_and_exit(const VcpkgCmdArguments& args, const VcpkgPaths& paths, Triplet default_triplet); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#pragma once | ||
|
||
#include <vcpkg/commands.interface.h> | ||
|
||
namespace vcpkg::Commands::Edit | ||
{ | ||
extern const CommandStructure COMMAND_STRUCTURE; | ||
void perform_and_exit(const VcpkgCmdArguments& args, const VcpkgPaths& paths); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#pragma once | ||
|
||
#include <vcpkg/commands.interface.h> | ||
|
||
namespace vcpkg::Commands::Env | ||
{ | ||
extern const CommandStructure COMMAND_STRUCTURE; | ||
void perform_and_exit(const VcpkgCmdArguments& args, const VcpkgPaths& paths, Triplet default_triplet); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#pragma once | ||
|
||
#include <vcpkg/commands.interface.h> | ||
|
||
namespace vcpkg::Commands::Fetch | ||
{ | ||
void perform_and_exit(const VcpkgCmdArguments& args, const VcpkgPaths& paths); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#pragma once | ||
|
||
#include <vcpkg/commands.interface.h> | ||
|
||
namespace vcpkg::Commands::FormatManifest | ||
{ | ||
extern const CommandStructure COMMAND_STRUCTURE; | ||
void perform_and_exit(const VcpkgCmdArguments& args, const VcpkgPaths& paths); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#pragma once | ||
|
||
#include <vcpkg/commands.interface.h> | ||
|
||
namespace vcpkg::Commands::Hash | ||
{ | ||
void perform_and_exit(const VcpkgCmdArguments& args, const VcpkgPaths& paths); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#pragma once | ||
|
||
#include <vcpkg/commands.interface.h> | ||
|
||
namespace vcpkg::Commands::Integrate | ||
{ | ||
extern const CommandStructure COMMAND_STRUCTURE; | ||
|
||
void perform_and_exit(const VcpkgCmdArguments& args, const VcpkgPaths& paths); | ||
void append_helpstring(HelpTableFormatter& table); | ||
std::string get_helpstring(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#pragma once | ||
|
||
#include <vcpkg/vcpkgcmdarguments.h> | ||
#include <vcpkg/vcpkgpaths.h> | ||
|
||
namespace vcpkg::Commands | ||
{ | ||
enum class DryRun : bool | ||
{ | ||
No, | ||
Yes, | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#pragma once | ||
|
||
#include <vcpkg/commands.interface.h> | ||
|
||
namespace vcpkg::Commands::List | ||
{ | ||
extern const CommandStructure COMMAND_STRUCTURE; | ||
void perform_and_exit(const VcpkgCmdArguments& args, const VcpkgPaths& paths); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#pragma once | ||
|
||
#include <vcpkg/commands.interface.h> | ||
|
||
namespace vcpkg::Commands::Owns | ||
{ | ||
extern const CommandStructure COMMAND_STRUCTURE; | ||
void perform_and_exit(const VcpkgCmdArguments& args, const VcpkgPaths& paths); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#pragma once | ||
|
||
#include <vcpkg/commands.interface.h> | ||
|
||
namespace vcpkg::Commands::PortHistory | ||
{ | ||
void perform_and_exit(const VcpkgCmdArguments& args, const VcpkgPaths& paths); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#pragma once | ||
|
||
#include <vcpkg/commands.interface.h> | ||
|
||
namespace vcpkg::Commands::PortsDiff | ||
{ | ||
void perform_and_exit(const VcpkgCmdArguments& args, const VcpkgPaths& paths); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#pragma once | ||
|
||
#include <vcpkg/commands.interface.h> | ||
|
||
namespace vcpkg::Commands::Search | ||
{ | ||
extern const CommandStructure COMMAND_STRUCTURE; | ||
void perform_and_exit(const VcpkgCmdArguments& args, const VcpkgPaths& paths); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#pragma once | ||
|
||
#include <vcpkg/cmakevars.h> | ||
#include <vcpkg/commands.interface.h> | ||
#include <vcpkg/portfileprovider.h> | ||
|
||
namespace vcpkg::Commands::SetInstalled | ||
{ | ||
extern const CommandStructure COMMAND_STRUCTURE; | ||
void perform_and_exit_ex(const VcpkgCmdArguments& args, | ||
const VcpkgPaths& paths, | ||
const PortFileProvider::PathsPortFileProvider& provider, | ||
IBinaryProvider& binary_provider, | ||
const CMakeVars::CMakeVarProvider& cmake_vars, | ||
const std::vector<FullPackageSpec>& specs, | ||
const Build::BuildPackageOptions& install_plan_options, | ||
DryRun dry_run, | ||
const Optional<fs::path>& pkgsconfig_path); | ||
void perform_and_exit(const VcpkgCmdArguments& args, const VcpkgPaths& paths, Triplet default_triplet); | ||
} |
Oops, something went wrong.