diff options
author | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2024-03-05 17:52:29 +0100 |
---|---|---|
committer | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2024-03-07 09:34:01 +0100 |
commit | 56f5f380c3b3409eb5f14ac8dc5251d28aff63bb (patch) | |
tree | 550172b2c82e1573e3e1fa23bec12d702c6ff428 /src/buildtool/main/cli.cpp | |
parent | af0e6f9bd5c817403dc27558fce73a11ee9dbc83 (diff) | |
download | justbuild-56f5f380c3b3409eb5f14ac8dc5251d28aff63bb.tar.gz |
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.
Diffstat (limited to 'src/buildtool/main/cli.cpp')
-rw-r--r-- | src/buildtool/main/cli.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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); |