Option to add information about important environment variables to cli action properties
Here is the help from tap sdk sign:
Usage: sign [-h] [-v] [-c] [-q] [--log <arg>] [--url <arg>] [--auth <arg>] [--https-cert-file <arg>] [--cert-name <arg>] <files>
-h, --help Write help information.
-v, --verbose Show verbose/debug-level log messages.
-c, --color Color messages according to their severity.
-q, --quiet Quiet console logging.
--log Specify log file location. Default is ./SessionLogs.
--url if not set, local signing is assumed.
--auth for example: user:password
--https-cert-file Expected HTTPS certificate
--cert-name The certificate to use in signing.
Currently this does not support environment variables, but that may be useful for builds. In that case, it would make sense to add:
[...]
--https-cert-file Expected HTTPS certificate
--cert-name The certificate to use in signing.
Environment variables:
TAP_SIGN_ADDRESS: The address of the signing server (Optional)
TAP_SIGN_CERT: The SSL certificate used for HTTPs communication.
The only obvious way may be something like this
// attribute specifying it:
[EnviromentVariable("TAP_SIGN_ADDRESS", "The address of the signing server (Optional).")]
public class MyCliAction : ICliAction{
// or:
public static EnvironmentVariable TapSignAddress {get;}= new EnvironmentVariable("TAP_SIGN_ADDRESS");
}
Edited by Rolf Madsen