chocolatey / chocolatey/docs

Incorrect default for scope in powershell helpers

Open
#626 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
MDX
Stars
223
Forks
248
Avg merge
1d 26m
Merged PRs (30d)
4

Description

### What You Are Seeing?

In `Install-ChocolateyEnvironmentVariable` and `Install-ChocolateyPath`, the default scope for change is shown as `Process` for both, while they both actually default to `user` scope (if you look at the actual powershell code).

![image](https://user-images.githubusercontent.com/38865330/208503296-14de6c07-c4c9-4d13-b03f-33a9f69b59fd.png)

https://github.com/chocolatey/choco/blob/cdd1c0036f4c092625886d71fbff2e628b838742/src/chocolatey.resources/helpers/functions/Install-ChocolateyPath.ps1#L71

https://docs.chocolatey.org/en-us/create/functions/install-chocolateyenvironmentvariable#syntax
https://docs.chocolatey.org/en-us/create/functions/install-chocolateypath#syntax

### What is Expected?

That they show the correct default.

### How Did You Get This To Happen? (Steps to Reproduce)

N/A

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.