Skip to content

Commit 56fffbe

Browse files
authored
[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
1 parent 37f7d69 commit 56fffbe

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+513
-284
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#pragma once
2+
3+
#include <vcpkg/commands.interface.h>
4+
5+
namespace vcpkg::Commands::Autocomplete
6+
{
7+
void perform_and_exit(const VcpkgCmdArguments& args, const VcpkgPaths& paths);
8+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#pragma once
2+
3+
#include <vcpkg/commands.interface.h>
4+
5+
namespace vcpkg::Commands::BuildExternal
6+
{
7+
void perform_and_exit(const VcpkgCmdArguments& args, const VcpkgPaths& paths, Triplet default_triplet);
8+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#pragma once
2+
3+
#include <vcpkg/commands.interface.h>
4+
5+
namespace vcpkg::Commands::Cache
6+
{
7+
void perform_and_exit(const VcpkgCmdArguments& args, const VcpkgPaths& paths);
8+
}

toolsrc/include/vcpkg/commands.ci.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#pragma once
2+
3+
#include <vcpkg/commands.interface.h>
4+
5+
namespace vcpkg::Commands::CI
6+
{
7+
extern const CommandStructure COMMAND_STRUCTURE;
8+
void perform_and_exit(const VcpkgCmdArguments& args, const VcpkgPaths& paths, Triplet default_triplet);
9+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#pragma once
2+
3+
#include <vcpkg/commands.interface.h>
4+
5+
namespace vcpkg::Commands::CIClean
6+
{
7+
void perform_and_exit(const VcpkgCmdArguments& args, const VcpkgPaths& paths);
8+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#pragma once
2+
3+
#include <vcpkg/commands.interface.h>
4+
5+
namespace vcpkg::Commands::Contact
6+
{
7+
extern const CommandStructure COMMAND_STRUCTURE;
8+
const std::string& email();
9+
void perform_and_exit(const VcpkgCmdArguments& args, Files::Filesystem& fs);
10+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#pragma once
2+
3+
#include <vcpkg/commands.interface.h>
4+
5+
namespace vcpkg::Commands::Create
6+
{
7+
extern const CommandStructure COMMAND_STRUCTURE;
8+
int perform(const VcpkgCmdArguments& args, const VcpkgPaths& paths);
9+
void perform_and_exit(const VcpkgCmdArguments& args, const VcpkgPaths& paths);
10+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#pragma once
2+
3+
#include <vcpkg/commands.interface.h>
4+
5+
namespace vcpkg::Commands::DependInfo
6+
{
7+
extern const CommandStructure COMMAND_STRUCTURE;
8+
void perform_and_exit(const VcpkgCmdArguments& args, const VcpkgPaths& paths, Triplet default_triplet);
9+
}

toolsrc/include/vcpkg/commands.edit.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#pragma once
2+
3+
#include <vcpkg/commands.interface.h>
4+
5+
namespace vcpkg::Commands::Edit
6+
{
7+
extern const CommandStructure COMMAND_STRUCTURE;
8+
void perform_and_exit(const VcpkgCmdArguments& args, const VcpkgPaths& paths);
9+
}

toolsrc/include/vcpkg/commands.env.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#pragma once
2+
3+
#include <vcpkg/commands.interface.h>
4+
5+
namespace vcpkg::Commands::Env
6+
{
7+
extern const CommandStructure COMMAND_STRUCTURE;
8+
void perform_and_exit(const VcpkgCmdArguments& args, const VcpkgPaths& paths, Triplet default_triplet);
9+
}

0 commit comments

Comments
 (0)