Open guibranco opened 1 hour ago
Click the checkbox below to generate a PR!
@guibranco, You have 5 requests left in this cycle which refreshes on 2024-10-21 10:07:38+00:00. If you have any questions or concerns, please contact us at info@gitauto.ai.
Description:
I would like to request a feature that adds a new command to a .NET tool project, allowing users to set environment variables via the command-line interface (CLI). The command should accept two arguments:
User
orMachine
scope).The tool should apply the environment variable to the appropriate scope based on the input.
Why is this needed?
This feature would allow users to easily set environment variables through a .NET CLI tool, simplifying environment setup, especially in CI/CD pipelines or automated scripts. Having the ability to specify the target (User or Machine) will give flexibility based on the user's needs.
Suggested Implementation:
Example Command Usage:
If
--target
is not provided, it will default toUser
.Example Code:
Additional Context:
EnvironmentVariableTarget
).