-
Notifications
You must be signed in to change notification settings - Fork 9
[FEATURE] Add Command to Set Environment Variable #38
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or requestgitautoGitAuto label to trigger the app in a issue.GitAuto label to trigger the app in a issue.good first issueGood for newcomersGood for newcomershacktoberfestParticipation in the Hacktoberfest eventParticipation in the Hacktoberfest eventhelp wantedExtra attention is neededExtra attention is needed📝 documentationTasks related to writing or updating documentationTasks related to writing or updating documentation🕓 medium effortA task that can be completed in a few hoursA task that can be completed in a few hours🛠 WIPWork in progressWork in progress🧪 testsTasks related to testingTasks related to testing
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgitautoGitAuto label to trigger the app in a issue.GitAuto label to trigger the app in a issue.good first issueGood for newcomersGood for newcomershacktoberfestParticipation in the Hacktoberfest eventParticipation in the Hacktoberfest eventhelp wantedExtra attention is neededExtra attention is needed📝 documentationTasks related to writing or updating documentationTasks related to writing or updating documentation🕓 medium effortA task that can be completed in a few hoursA task that can be completed in a few hours🛠 WIPWork in progressWork in progress🧪 testsTasks related to testingTasks related to testing
Projects
StatusShow more project fields
In Progress
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:
UserorMachinescope).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
--targetis not provided, it will default toUser.Example Code:
Additional Context:
EnvironmentVariableTarget).