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

(#2854) Add helper to read config values #2952

Merged
merged 4 commits into from
Jun 20, 2023

Commits on Jun 20, 2023

  1. (chocolatey#2854) Add helper to read config values

    This adds a PowerShell helper to get config values from the Chocolatey
    configuration file. This helper is intended to be used to allow hook scripts
    to access configuration values set in the config.
    TheCakeIsNaOH authored and corbob committed Jun 20, 2023
    Configuration menu
    Copy the full SHA
    124fd53 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    575fddb View commit details
    Browse the repository at this point in the history
  3. (chocolatey#2854) Pester tests to Get-ChocolateyConfigValue

    Add pester tests around the functionality added by
    Get-ChocolateyConfigValue
    corbob committed Jun 20, 2023
    Configuration menu
    Copy the full SHA
    2021987 View commit details
    Browse the repository at this point in the history
  4. (chocolatey#2854) Do Write-Error instead of Write-Warning

    The catch of Get-ChocolateyConfigValue should reasonably be an error and
    not a warning. Changing this to send an error so the package can handle
    it if desired.
    corbob committed Jun 20, 2023
    Configuration menu
    Copy the full SHA
    de30163 View commit details
    Browse the repository at this point in the history