From 089733c819066b801e28d6441cbff887e60aef51 Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Thu, 24 Aug 2023 14:02:37 +0200 Subject: just-mr fetch: Allow to back up fetched archives to a given remote CAS --- src/other_tools/just_mr/cli.hpp | 5 +++++ 1 file changed, 5 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 60c8f745..484665a5 100644 --- a/src/other_tools/just_mr/cli.hpp +++ b/src/other_tools/just_mr/cli.hpp @@ -63,6 +63,7 @@ struct MultiRepoSetupArguments { struct MultiRepoFetchArguments { std::optional fetch_dir{std::nullopt}; + bool backup_to_remote{false}; }; struct MultiRepoUpdateArguments { @@ -243,6 +244,10 @@ static inline void SetupMultiRepoFetchArguments( }, "Directory to write distfiles when fetching.") ->type_name("PATH"); + app->add_flag("--backup-to-remote", + clargs->backup_to_remote, + "Backup fetched archives to a remote CAS, if a " + "remote-execution service is provided."); } static inline void SetupMultiRepoUpdateArguments( -- cgit v1.2.3