Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add -e option to dotnet run #45795

Merged
merged 7 commits into from
Jan 9, 2025
Merged

Add -e option to dotnet run #45795

merged 7 commits into from
Jan 9, 2025

Conversation

tmat
Copy link
Member

@tmat tmat commented Jan 8, 2025

Implements #45740

@tmat tmat requested a review from a team as a code owner January 8, 2025 20:51
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-CLI untriaged Request triage from a team member labels Jan 8, 2025
Copy link
Member

@baronfel baronfel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This LGTM, but I left a note about how we can model the -e option more directly to make it easier for consumers to use.

src/Cli/dotnet/commands/dotnet-run/Program.cs Outdated Show resolved Hide resolved
@baronfel baronfel requested a review from a team January 9, 2025 03:16
@baronfel baronfel enabled auto-merge (squash) January 9, 2025 18:58
@baronfel baronfel merged commit 98842bc into dotnet:release/9.0.2xx Jan 9, 2025
29 of 31 checks passed
@tmat tmat deleted the EnvVars branch January 9, 2025 22:00
Copy link
Member

@dsplaisted dsplaisted left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like this was already merged, but I had one comment.

Comment on lines +5 to +6
"commandLineArgs": "run -e MyCoolEnvironmentVariableKey=OverriddenEnvironmentVariableValue",
"workingDirectory": "C:\\sdk5\\artifacts\\tmp\\Debug\\EnvOptionLaun---86C8BD0D"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like the changes to this file probably shouldn't be included in this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-CLI untriaged Request triage from a team member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants