Re:GitHub – nushell/nushell: A new type of shell
by vips7L on Wednesday June 16, 2021 @11:55AM
(#27529964)
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...
Re:GitHub – nushell/nushell: A new type of shell
by godtoldmetodoit on Wednesday June 16, 2021 @11:43AM
(#27529821)
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.
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.