Skip to content

Commit

Permalink
refactor(scoop-config): Use underscores everywhere (ScoopInstaller#4745)
Browse files Browse the repository at this point in the history
  • Loading branch information
rashil2000 authored Feb 21, 2022
1 parent e1f569b commit b95ccbe
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
- **COMSPEC:** Deprecate use of subshell cmd.exe ([#4692](https://github.com/ScoopInstaller/Scoop/issues/4692))
- **git:** Use 'git -C' to specify the work directory instead of 'Push-Location'/'Pop-Location' ([#4697](https://github.com/ScoopInstaller/Scoop/issues/4697))
- **scoop-info:** Use List View for output ([#4741](https://github.com/ScoopInstaller/Scoop/issues/4741))
- **scoop-config:** Use underscores everywhere ([#4745](https://github.com/ScoopInstaller/Scoop/issues/4745))

### Builds

Expand Down
2 changes: 1 addition & 1 deletion lib/core.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ function app_status($app, $global) {

$status.outdated = $false
if ($status.version -and $status.latest_version) {
if (get_config 'force-update' $false) {
if (get_config 'force_update' $false) {
$status.outdated = ((Compare-Version -ReferenceVersion $status.version -DifferenceVersion $status.latest_version) -ne 0)
} else {
$status.outdated = ((Compare-Version -ReferenceVersion $status.version -DifferenceVersion $status.latest_version) -gt 0)
Expand Down
2 changes: 1 addition & 1 deletion lib/manifest.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function install_info($app, $version, $global) {
}

function default_architecture {
$arch = get_config 'default-architecture'
$arch = get_config 'default_architecture'
$system = if ([Environment]::Is64BitOperatingSystem) { '64bit' } else { '32bit' }
if ($null -eq $arch) {
$arch = $system
Expand Down
4 changes: 2 additions & 2 deletions libexec/scoop-config.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@
# * An empty or unset value for proxy is equivalent to 'default' (with no username or password)
# * To bypass the system proxy and connect directly, use 'none' (with no username or password)
#
# default-architecture: 64bit|32bit
# default_architecture: 64bit|32bit
# Allow to configure preferred architecture for application installation.
# If not specified, architecture is determined be system.
#
# debug: $true|$false
# Additional and detailed output will be shown.
#
# force-update: $true|$false
# force_update: $true|$false
# Force apps updating to bucket's version.
#
# show_update_log: $true|$false
Expand Down

0 comments on commit b95ccbe

Please sign in to comment.