|
@@ -19,7 +19,7 @@ namespace BO.Console.Commands.User
|
|
|
{
|
|
{
|
|
|
#region *** Constants ***
|
|
#region *** Constants ***
|
|
|
private const string CS_CMD_USERGET_NAME = "user_getapikey";
|
|
private const string CS_CMD_USERGET_NAME = "user_getapikey";
|
|
|
- private const string CS_CMD_USERGET_DESCR = "Get default single user workspace api-key or api-password and process result.";
|
|
|
|
|
|
|
+ private const string CS_CMD_USERGET_DESCR = "Get default single user workspace api-key or api-password and process result. Should be run as Administrator.";
|
|
|
|
|
|
|
|
private const string CS_ARG_NAME_TYPE = "outt";
|
|
private const string CS_ARG_NAME_TYPE = "outt";
|
|
|
private const string CS_ARG_HINT_TYPE = "<output_target>";
|
|
private const string CS_ARG_HINT_TYPE = "<output_target>";
|
|
@@ -75,6 +75,8 @@ namespace BO.Console.Commands.User
|
|
|
WriteCaption($"Value '{value}' was set to clipboard.");
|
|
WriteCaption($"Value '{value}' was set to clipboard.");
|
|
|
break;
|
|
break;
|
|
|
case OutputTargetEnum.Var:
|
|
case OutputTargetEnum.Var:
|
|
|
|
|
+ WriteWarning("This feature must run in Administration mode (as Administrator).");
|
|
|
|
|
+
|
|
|
if (ValueType == ValueTypeApiKeyEnum.ApiKey || ValueType == ValueTypeApiKeyEnum.ApiBoth)
|
|
if (ValueType == ValueTypeApiKeyEnum.ApiKey || ValueType == ValueTypeApiKeyEnum.ApiBoth)
|
|
|
{
|
|
{
|
|
|
Environment.SetEnvironmentVariable(CS_ENV_VAR_VALUE_KEY, workspace.ApiKeyNormalized, EnvironmentVariableTarget.Process);
|
|
Environment.SetEnvironmentVariable(CS_ENV_VAR_VALUE_KEY, workspace.ApiKeyNormalized, EnvironmentVariableTarget.Process);
|