Skip to content

Commit

Permalink
Merge branch 'release/v3.1.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
joonro committed Jun 7, 2022
2 parents 9d43ab9 + e873178 commit 84c046b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.org
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ $Global:GetChildItemColorVerticalSpace = 1
* Authors
- [[http://github.com/joonro][Joon Ro]].
* Changelog
** v3.1.0
- ~Get-ChildItemColor~ only highlights names instead of highlighting the whole row. ([[https://github.com/joonro/Get-ChildItemColor/issues/30][#30]])
** v3.0.0
- ~Get-ChildItemColor~ is pipeline-aware and only adds color when it is not
being used as a part of a pipeline. It no longer overloads ~Out-Default~. ([[https://github.com/joonro/Get-ChildItemColor/issues/31][#31]])
Expand Down
5 changes: 4 additions & 1 deletion src/FileInfo.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ function Write-FileLength {
function Write-Color-LS {
param ([string]$Color = "White", $Item)

Write-host ("{0,-7} {1,25} {2,10} {3}" -f $Item.mode, ([String]::Format("{0,10} {1,8}", $Item.LastWriteTime.ToString("d"), $Item.LastWriteTime.ToString("t"))), (Write-FileLength $Item.length), $Item.name) -ForegroundColor $Color
Write-host ("{0,-7} " -f $Item.mode) -NoNewline
Write-host ("{0,25} " -f ([String]::Format("{0,10} {1,8}", $Item.LastWriteTime.ToString("d"), $Item.LastWriteTime.ToString("t")))) -NoNewline
Write-host ("{0,10} " -f (Write-FileLength $Item.length)) -NoNewline
Write-host ("{0}" -f $Item.name) -ForegroundColor $Color
}

function FileInfo {
Expand Down
2 changes: 1 addition & 1 deletion src/Get-ChildItemColor.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
RootModule = 'Get-ChildItemColor.psm1'

# Version number of this module.
ModuleVersion = '3.0.0'
ModuleVersion = '3.1.0'

# Supported PSEditions
# CompatiblePSEditions = @()
Expand Down

0 comments on commit 84c046b

Please sign in to comment.