From 56f5f380c3b3409eb5f14ac8dc5251d28aff63bb Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Tue, 5 Mar 2024 17:52:29 +0100 Subject: just: 'analyse' and 'describe' require client-side authentication As these subcommands can access the serve endpoint, it is not enough anymore to just know the remote-execution endpoint, but one must also try to connect to it. Thus, the client-side authentication arguments need to be supported and read. The just.1 man page is also updated accordingly. --- src/buildtool/main/cli.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/buildtool/main/cli.cpp') diff --git a/src/buildtool/main/cli.cpp b/src/buildtool/main/cli.cpp index c4e51189..c5da32bb 100644 --- a/src/buildtool/main/cli.cpp +++ b/src/buildtool/main/cli.cpp @@ -28,6 +28,8 @@ auto SetupDescribeCommandArguments( SetupAnalysisArguments(app, &clargs->analysis, false); SetupLogArguments(app, &clargs->log); SetupServeEndpointArguments(app, &clargs->serve); + SetupCommonAuthArguments(app, &clargs->auth); + SetupClientAuthArguments(app, &clargs->cauth); SetupExecutionEndpointArguments(app, &clargs->endpoint); SetupCompatibilityArguments(app); SetupDescribeArguments(app, &clargs->describe); @@ -44,6 +46,8 @@ auto SetupAnalyseCommandArguments( SetupExecutionEndpointArguments(app, &clargs->endpoint); SetupExecutionPropertiesArguments(app, &clargs->endpoint); SetupServeEndpointArguments(app, &clargs->serve); + SetupCommonAuthArguments(app, &clargs->auth); + SetupClientAuthArguments(app, &clargs->cauth); SetupDiagnosticArguments(app, &clargs->diagnose); SetupCompatibilityArguments(app); SetupRetryArguments(app, &clargs->retry); -- cgit v1.2.3