monica_b1998@lemmy.world to Powershell@programming.dev · 2 months agoPipeline & object manipulation cheatsheetslicker.meexternal-linkmessage-square3fedilinkarrow-up112arrow-down10
arrow-up112arrow-down1external-linkPipeline & object manipulation cheatsheetslicker.memonica_b1998@lemmy.world to Powershell@programming.dev · 2 months agomessage-square3fedilink
minus-squarepurplemonkeymad@programming.devlinkfedilinkarrow-up3·2 months agoCouple of little additions that you might like. You can expand properties using foreach-object as well. Eg Get-childitem | foreach-object name If you specify a method name instead of a property, it will call the method on the input object. You can also inspect types using [typename].getmembers() to list properties and methods without having to create an instance for get-member.
Couple of little additions that you might like.
You can expand properties using foreach-object as well. Eg
If you specify a method name instead of a property, it will call the method on the input object.
You can also inspect types using [typename].getmembers() to list properties and methods without having to create an instance for get-member.