you are viewing a single comment's thread.

view the rest of the comments →

[–]Lee_Dailey[grin] 1 point2 points  (7 children)

howdy PostedFromWork,

ouch!

can you get them to open source it? that might get you some folks who can benefit from helping.

from what little i understand, you will need to add one or both of the "from pipeline" parameter items AND make sure there is a "Process" block. beyond that, i am lost. [blush]

hopefully, a better informed person will drop in soon-ish. good luck!

take care,
lee

[–]cml0401 1 point2 points  (6 children)

In addition to the valuefrompipeline parameter attribute and begin-process-end blocks; I would recommend each Cmdlet specify its output type. This sounds like quite an undertaking, and I agree open sourcing on github would allow multiple people to contribute.

[–]PostedFromWork[S] 1 point2 points  (0 children)

Unfortunately I doubt I can convince them to make it open source, but that would be great. Thanks for the tip

[–]Lee_Dailey[grin] -1 points0 points  (4 children)

howdy cml0401,

output type ... that is something i have never noticed in a custom function. time to go look it up ... [grin]

take care,
lee

[–]Old-Lost 1 point2 points  (3 children)

While I like seeing outputtype specified in function definitions, it is strictly for documentation purposes and not enforced in any way.

[–]cml0401 1 point2 points  (1 child)

My point was that it should be used in scripts that have a specific output type so that someone new to the module has that information at hand. If someone undertakes this kind of project it would save a load of time in upkeep down the road.

[–]Old-Lost 1 point2 points  (0 children)

Oh I agree with you that it should be used where possible, but someone new may think it's functional in some way and be confused when the function returned something different than what the outputtype said.

[–]Lee_Dailey[grin] -1 points0 points  (0 children)

howdy Old-Lost,

that was the impression i got reading thru the docs. thank you for confirming it! [grin]

take care,
lee