From 01435918582397e88d8341f5e152403cb3a187dc Mon Sep 17 00:00:00 2001 From: Joseph Doherty Date: Mon, 19 Oct 2026 19:44:49 -0400 Subject: [PATCH] docs(dotnet-client): keep XML docs with their CLI members Claude-Session: https://claude.ai/code/session_016J6isfcgqy4SB2RK3ZvFvT --- .../MxGatewayClientCli.cs | 29 +++++++++++++------ 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/clients/dotnet/ZB.MOM.WW.MxGateway.Client.Cli/MxGatewayClientCli.cs b/clients/dotnet/ZB.MOM.WW.MxGateway.Client.Cli/MxGatewayClientCli.cs index 9429ef9..a345908 100644 --- a/clients/dotnet/ZB.MOM.WW.MxGateway.Client.Cli/MxGatewayClientCli.cs +++ b/clients/dotnet/ZB.MOM.WW.MxGateway.Client.Cli/MxGatewayClientCli.cs @@ -353,11 +353,16 @@ public static class MxGatewayClientCli /// private const string DefaultVerifyPasswordEnvironmentName = "MXGATEWAY_VERIFY_PASSWORD"; + /// + /// Default environment variable holding the operator password for + /// acknowledge-alarm when --operator-password-env is not given. + /// + private const string OperatorPasswordEnvironmentName = "MXGATEWAY_OPERATOR_PASSWORD"; + /// /// Legacy environment variable, still honoured as a deprecated fallback /// for one release so existing scripts keep working. /// - private const string OperatorPasswordEnvironmentName = "MXGATEWAY_OPERATOR_PASSWORD"; private const string LegacyVerifyPasswordEnvironmentName = "MXGATEWAY_VERIFY_USER_PASSWORD"; /// @@ -381,14 +386,10 @@ public static class MxGatewayClientCli } /// - /// Resolves the effective MXAccess verify-user credential in this - /// order: --password, the deprecated --verify-user-password - /// alias, the environment variable named by --password-env (default - /// MXGATEWAY_VERIFY_PASSWORD), then the deprecated - /// MXGATEWAY_VERIFY_USER_PASSWORD. An empty value from any source is - /// treated as absent. The credential is never echoed; this resolver exists so - /// the error-redaction catch block can strip it from any surfaced error, - /// mirroring . + /// Resolves the acknowledge-alarm operator password: --operator-password, + /// then the environment variable named by --operator-password-env + /// (default MXGATEWAY_OPERATOR_PASSWORD). An empty value is treated as + /// absent. The value is never echoed; it is also fed to the error redactor. /// private static string? ResolveOperatorPassword(CliArguments arguments) { @@ -408,6 +409,16 @@ public static class MxGatewayClientCli return string.IsNullOrEmpty(password) ? null : password; } + /// + /// Resolves the effective MXAccess verify-user credential in this + /// order: --password, the deprecated --verify-user-password + /// alias, the environment variable named by --password-env (default + /// MXGATEWAY_VERIFY_PASSWORD), then the deprecated + /// MXGATEWAY_VERIFY_USER_PASSWORD. An empty value from any source is + /// treated as absent. The credential is never echoed; this resolver exists so + /// the error-redaction catch block can strip it from any surfaced error, + /// mirroring . + /// private static string? TryResolveVerifyUserPassword(CliArguments arguments) { string? password = arguments.GetOptional("password");