Skip to content

Conversation

@DecSmith42
Copy link
Owner

No description provided.

Enhanced `ProcessRunner` to support adding custom environment variables via `ProcessRunOptions`. Updated logging to include environment variables when applicable (secrets will still be masked).
Copilot AI review requested due to automatic review settings September 29, 2025 01:12
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds support for custom environment variables when using ProcessRunner to execute processes. The implementation allows users to specify environment variables through the ProcessRunOptions class, which are then applied to the process during execution.

  • Added EnvironmentVariables property to ProcessRunOptions as a Dictionary<string, string?>
  • Updated logging logic in both Run and RunAsync methods to handle different combinations of WorkingDirectory and EnvironmentVariables
  • Implemented environment variable setting in process StartInfo for both synchronous and asynchronous execution paths

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.

File Description
DecSm.Atom/Process/ProcessRunOptions.cs Added EnvironmentVariables property with comprehensive documentation
DecSm.Atom/Process/ProcessRunner.cs Enhanced logging and added environment variable configuration for process execution
Multiple .csproj files Updated package dependencies to newer versions

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants