From 9ee2086f9f910ac7cd930dffc4888c7c515962fc Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Wed, 27 Mar 2024 15:30:37 +0100 Subject: just install-cas: add option --archive Trees are first-class objects for justbuild. To allow interoperation with other tools, it is necessary to provide those objects in a standard format; for directories, those are archives. Hence procive a corresponding option. --- src/buildtool/common/cli.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/buildtool/common/cli.hpp') diff --git a/src/buildtool/common/cli.hpp b/src/buildtool/common/cli.hpp index e7f78201..7ede3217 100644 --- a/src/buildtool/common/cli.hpp +++ b/src/buildtool/common/cli.hpp @@ -138,6 +138,7 @@ struct FetchArguments { std::optional sub_path{}; bool remember{false}; bool raw_tree{}; + bool archive{}; }; /// \brief Arguments required for running from graph file. @@ -600,9 +601,11 @@ static inline auto SetupFetchArguments( "tree).") ->type_name("PATH"); + app->add_flag( + "--archive", clargs->archive, "Dump the tree as a single archive."); app->add_flag("--raw-tree", clargs->raw_tree, - "Dump raw tree object (omit pretty printing)"); + "Dump raw tree object (omit pretty printing)."); app->add_flag( "--remember", clargs->remember, "Copy object to local CAS first"); -- cgit v1.2.3