summaryrefslogtreecommitdiff
path: root/src/buildtool/common/cli.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildtool/common/cli.hpp')
-rw-r--r--src/buildtool/common/cli.hpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/buildtool/common/cli.hpp b/src/buildtool/common/cli.hpp
index c90e54f9..a1438400 100644
--- a/src/buildtool/common/cli.hpp
+++ b/src/buildtool/common/cli.hpp
@@ -160,6 +160,7 @@ struct ServiceArguments {
struct ServeArguments {
std::filesystem::path config{};
+ std::optional<std::string> remote_serve_address{};
// repositories populated from just-serve config file
std::vector<std::filesystem::path> repositories{};
};
@@ -403,6 +404,15 @@ static inline auto SetupEndpointArguments(
->expected(1, 1);
}
+static inline auto SetupServeEndpointArguments(
+ gsl::not_null<CLI::App*> const& app,
+ gsl::not_null<ServeArguments*> const& clargs) {
+ app->add_option("--remote-serve-address",
+ clargs->remote_serve_address,
+ "Address of the serve service.")
+ ->type_name("NAME:PORT");
+}
+
static inline auto SetupCommonBuildArguments(
gsl::not_null<CLI::App*> const& app,
gsl::not_null<BuildArguments*> const& clargs) {