Skip to content

Commit

Permalink
Create separate environ variable helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
mglodack committed Apr 13, 2016
1 parent 7d9f555 commit b342a85
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/app/FakeLib/EnvironmentHelper.fs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ let environVars target =
/// Sets the environment variable with the given name
let setEnvironVar name value = Environment.SetEnvironmentVariable(name, value)

/// Sets the environment variable with the given name for the current user.
let setUserEnvironVar name value = Environment.SetEnvironmentVariable(name, value, EnvironmentVariableTarget.User)

/// Sets the environment variable with the given name for the current machine.
let setMachineEnvironVar name value = Environment.SetEnvironmentVariable(name, value, EnvironmentVariableTarget.Machine)

/// Sets the environment variable with the given name for the current process.
let setProcessEnvironVar name value = Environment.SetEnvironmentVariable(name, value, EnvironmentVariableTarget.Process)

Expand Down

0 comments on commit b342a85

Please sign in to comment.