diff options
author | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2023-08-24 14:02:37 +0200 |
---|---|---|
committer | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2023-08-25 18:11:23 +0200 |
commit | 089733c819066b801e28d6441cbff887e60aef51 (patch) | |
tree | b5d1528c0ce3e25f042c70684812711fa33fb9b8 /src/other_tools/just_mr/cli.hpp | |
parent | 833974c986eb46f88c87b3a95b4b840a333b24da (diff) | |
download | justbuild-089733c819066b801e28d6441cbff887e60aef51.tar.gz |
just-mr fetch: Allow to back up fetched archives to a given remote CAS
Diffstat (limited to 'src/other_tools/just_mr/cli.hpp')
-rw-r--r-- | src/other_tools/just_mr/cli.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
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<std::filesystem::path> 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( |