-
Notifications
You must be signed in to change notification settings - Fork 907
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* master: (maint) If statement formatting change (#3224) Add Assembly Loaded configuration option (maint) Resave without BOM (#3224) Update version check tests (#3174) Store non-normalized package version (maint) Add required whitespace (#3225) Add Pester Tests to ensure environment (#3201 #3225) Re-instate setting of config values (maint) Remove env variable for release version (maint) Fix encoding of file (#3194) Add tab completion for cache command (#2854) Re-save file with UTF-8 with BOM (#3218) Update Tab Expansion to use Test-Path (#3218) Remove try catch block for tab completion
- Loading branch information
Showing
13 changed files
with
209 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/chocolatey.resources/helpers/functions/Get-ChocolateyConfigValue.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
// Copyright © 2023-Present Chocolatey Software, Inc | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
namespace chocolatey | ||
{ | ||
using System.ComponentModel; | ||
|
||
public static class StringResources | ||
{ | ||
/// <summary> | ||
/// Resources for the names of available environment variables | ||
/// that will be created or used as part of executing | ||
/// Chocolatey CLI. | ||
/// </summary> | ||
/// <remarks> | ||
/// DEV NOTICE: Mark anything that is not meant for public consumption as | ||
/// internal constants and not browsable, even if used in other projects. | ||
/// </remarks> | ||
public static class EnvironmentVariables | ||
{ | ||
/// <summary> | ||
/// The version of the package that is being handled as it is defined in the embedded | ||
/// nuspec file. | ||
/// </summary> | ||
/// <remarks> | ||
/// Will be sets during package installs, upgrades and uninstalls. | ||
/// Environment variable is only for internal uses. | ||
/// </remarks> | ||
/// <seealso cref="PackageNuspecVersion" /> | ||
[EditorBrowsable(EditorBrowsableState.Never)] | ||
[Browsable(false)] | ||
internal const string ChocolateyPackageNuspecVersion = "chocolateyPackageNuspecVersion"; | ||
|
||
/// <summary> | ||
/// The version of the package that is being handled as it is defined in the embedded | ||
/// nuspec file. | ||
/// </summary> | ||
/// <remarks> | ||
/// Will be sets during package installs, upgrades and uninstalls. | ||
/// Environment variable is only for internal uses. | ||
/// </remarks> | ||
/// <seealso cref="ChocolateyPackageNuspecVersion" /> | ||
[EditorBrowsable(EditorBrowsableState.Never)] | ||
[Browsable(false)] | ||
internal const string PackageNuspecVersion = "packageNuspecVersion"; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.