Skip to content

Releases: santisq/PSTree

v2.1.16

26 Feb 17:59
Compare
Choose a tag to compare

What's Changed

  • Added method .GetFormattedLength(). Outputs the friendly .Length representation of PSTreeFile and PSTreeDirectory instances.

    PS ..\PSTree> (Get-PSTree D:\ -RecursiveSize -Depth 0).GetFormattedLength()
    629.59 GB

Full Changelog: v2.1.15...v2.1.16

v2.1.15

06 Oct 03:19
31e17cd
Compare
Choose a tag to compare

What's Changed

  • Add -Include Parameter by @santisq in #26. Works very similar to -Exclude, the patterns are evaluated against the items .FullName property, however this parameter targets only files (FileInfo instances).

Full Changelog: v2.1.14...v2.1.15

v2.1.14

12 Sep 00:59
Compare
Choose a tag to compare

What's Changed

  • No changes to the cmdlet but a few improvements to the code base:
    • #16 PSTreeCache and PSTreeIndexer internal classes have been sealed following the recommendations from dotnet/runtime#49944.
    • #17 Indent extension method has been changed to use StringBuilder.
    • #19 Improved ConvertToTree method. Was too complicated and inefficient, there was also no need to use Regex.
    • #20 -Depth parameter type was changed from int to uint and the documentation was updated accordingly.

Full Changelog: v2.1.13...v2.1.14

v2.1.13

28 Jul 23:49
Compare
Choose a tag to compare

What's Changed

  • Added .ToString() method to PSTreeFileSystemInfo<T> instances, the method resolves to the instances .FullName property similar to FileSystemInfo.ToString Method. Now it should be possible to pipe Get-PSTree output to Get-Item and Get-ChildItem when needed:

    Get-PStree -Depth 0 | Get-Item
  • Added .Refresh() method to PSTreeFileSystemInfo<T>, functionality is the same as FileSystemInfo.Refresh Method.

  • Reorganizing source files and Pester tests.

  • Added more Pester tests.

  • Fixed a few documentation typos.

Full Changelog: v2.1.12...v2.1.13

v2.1.12

04 Jul 00:24
496cbcc
Compare
Choose a tag to compare

What's Changed

  • Added -Path parameter, now both -Path and -LiteralPath parameters take string[] as input and support pipeline input.

  • Added Pester tests, Code Coverage and coverage upload to codecov.io.

  • Removed .Size Property from PSTreeFile and PSTreeDirectory instances. The Size column has been renamed to Length and moved to the left-hand side of the Hierarchy column (I know it looks much better on the right-hand side 😑 but having it in the left allows for fixed width in the first 2 columns, which in turn brings less formatting issues 🤷‍♂️...).

    The default display for this column is available through [PSTree.Internal._Format]::GetFormattedLength(...), for example:

    Get-PSTree | Select-Object Hierarchy, @{ N='Size'; E={ [PSTree.Internal._Format]::GetFormattedLength($_.Length) }}
  • Added GroupBy tag to the default view, now trees are grouped by the source Path omg! Little example:

    PS ..\PSTree> Get-PSTree .\src\, .\module\ -Exclude *\obj, *\bin
    
      Source: C:\path\to\PSTree\src
    
    Mode            Length Hierarchy
    ----            ------ ---------
    d----          0.00  B src
    d----         10.30 KB └── PSTree
    -a---        931.00  B     ├── ExceptionHelpers.cs
    -a---        439.00  B     ├── PSTree.csproj
    -a---          1.06 KB     ├── PSTreeDirectory.cs
    -a---          4.01 KB     ├── PSTreeExtensions.cs
    -a---        517.00  B     ├── PSTreeFile.cs
    -a---        399.00  B     ├── PSTreeFileSystemInfo.cs
    -a---          1.51 KB     ├── PSTreeFileSystemInfo_T.cs
    -a---        897.00  B     ├── PSTreeHelper.cs
    -a---        619.00  B     ├── PSTreeIndexer.cs
    d----          1.13 KB     ├── Internal
    -a---          1.13 KB     │   └── _Format.cs
    d----          5.68 KB     └── Commands
    -a---          5.68 KB         └── GetPSTreeCommand.cs
    
      Source: C:\path\to\PSTree\module
    
    Mode            Length Hierarchy
    ----            ------ ---------
    d----          6.22 KB module
    -a---          1.54 KB ├── PSTree.Format.ps1xml
    -a---          4.67 KB └── PSTree.psd1

Full Changelog: v2.1.11...v2.1.12

v2.1.11

23 Mar 13:46
Compare
Choose a tag to compare

What's Changed

  • Fixed documentation typos and grammar mistakes.
  • Fixed a bug that would make piping FileInfo instances to the cmdlet not register their size.

Full Changelog: v2.1.10...v2.1.11

v2.1.10

23 Mar 01:18
Compare
Choose a tag to compare

What's Changed

  • Fixed a bug that would make piping FileInfo objects fail.

Full Changelog: v2.1.9...v2.1.10

v2.1.9

23 Mar 00:40
Compare
Choose a tag to compare

What's Changed

  • Refactoring PSTree to binary Module by @santisq in #10
    • Get-PSTree is now a binary cmdlet. Functionality remains the same. Big thanks to SeeminglyScience and jborean93 for all their help!
    • Added -Exclude parameter to the cmdlet. The parameter accepts wildcards and patterns are matched with the object's .FullName property. For more details checkout cmdlet docs.

Full Changelog: v2.1.8...v2.1.9

v2.1.8

25 Feb 20:23
20d7204
Compare
Choose a tag to compare

What's Changed

  • Fixes #7 ets properties for exporting output by @santisq in #8
  • Fixed a bug that made Get-PSTree use -Recurse by default.
  • Added ETS properties to PSTreeDirectory and PSTreeFile instances that would make exporting the output easier.

Full Changelog: v2.1.7...v2.1.8

v2.1.7

31 Oct 23:33
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: https://github.com/santisq/PSTree/commits/v2.1.7