Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

And then I guess the shell itself has mechanisms to easily attach or register new commandlets, to allow for easily add custom object processing?

I really like the consistency that those commands have: ConvertFrom-<ConverterFormat>.

No built in converter for the format you need? I'm just speculating here, but I guess you just need to implement this or that Interface and there you go.



Yes you can write your own cmdlets in either C# or powershell that you can install via modules [0]

You can also just write a function in your profile.

[0] https://docs.microsoft.com/en-us/powershell/scripting/develo...


You can define your own function and use it in your pipeline yes. You can have your function take pipeline input just like the built in cmdlets.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: