From bcbfd1fc659df948899fa34e8a1af7fa6f7920e6 Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Wed, 6 Dec 2023 17:38:36 +0100 Subject: just-mr: move rc handling to a separate library --- src/other_tools/just_mr/cli.hpp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'src/other_tools/just_mr/cli.hpp') diff --git a/src/other_tools/just_mr/cli.hpp b/src/other_tools/just_mr/cli.hpp index c33d30d0..3d7a8980 100644 --- a/src/other_tools/just_mr/cli.hpp +++ b/src/other_tools/just_mr/cli.hpp @@ -89,6 +89,28 @@ struct MultiRepoRemoteAuthArguments { std::optional tls_client_key{std::nullopt}; }; +enum class SubCommand { + kUnknown, + kMRVersion, + kFetch, + kUpdate, + kSetup, + kSetupEnv, + kJustDo, + kJustSubCmd +}; + +struct CommandLineArguments { + SubCommand cmd{SubCommand::kUnknown}; + MultiRepoCommonArguments common; + MultiRepoLogArguments log; + MultiRepoSetupArguments setup; + MultiRepoFetchArguments fetch; + MultiRepoUpdateArguments update; + MultiRepoJustSubCmdsArguments just_cmd; + MultiRepoRemoteAuthArguments auth; +}; + static inline void SetupMultiRepoCommonArguments( gsl::not_null const& app, gsl::not_null const& clargs) { -- cgit v1.2.3