Huddled Masses
You can do more than breathe for free...
Browse: Home / Pipeline

Pipeline

PowerShell: Determine your function’s position in the pipeline

By Joel 'Jaykul' Bennett on 27-Dec-2009

I just posted an article to the FAQ on the PoshCode Wiki answering this question that came up again on our IRC PowerShell user group today. It came up in the context of determining whether a function was the last function on the pipeline, because one of our users was looking for a way (other [...]

Posted in Huddled | Tagged Debugging, Pipeline, PowerShell, PowerShell Functions | 1 Response

Using Script Functions in the PowerShell Pipeline ( Take Two )

By Joel 'Jaykul' Bennett on 13-Apr-2009

One of the consistent questions about PowerShell is: what’s the best way to write a script or a function to process pipeline objects and be able to take it’s parameters as a normal function? Of scripts and functions The first thing to know is that in PowerShell, there’s really no difference between a script (just [...]

Posted in Huddled | Tagged Advanced Functions, Pipeline, PowerShell, PowerShell Functions

Ideas for Writing Composable PowerShell scripts

By Joel 'Jaykul' Bennett on 28-May-2008

I was just having some fun with some recent blog posts… WPF & PowerShell – Part 5 has a script for “Get-Listbox” and for “Show-Control” and Halr9000 wrote a script he called Get-PSBlogroll I had modified the example from the WPF post to create a listbox which will “start” whatever you double click … Get-Listbox [...]

Posted in Huddled | Tagged Pipeline, PowerShell, PowerTips, Scripting, WPF | 1 Response

Pipeline Input vs Parameters in PowerShell scripts

By Joel 'Jaykul' Bennett on 25-Apr-2008

A relatively new PowerShell user came into #PowerShell on IRC.FreeNode.net this week to ask a question about scripts and the pipeline, and the conversation went so well, that I thought I’d share it with you all in case it helps clear things up for you. We’ll call him “user” since he left before I could [...]

Posted in Huddled | Tagged Pipeline, PowerShell, PowerShell Functions

Reservoir sampling and performance considerations

By Joel 'Jaykul' Bennett on 20-Jan-2008

I started this post a few weeks ago, but never quite got around to posting it, and then I saw today that Dmitry wrote about the memory problems with using measure-object and I thought this would be a great time to post this. Essentially, this is a continuation of my exploration of development in the [...]

Posted in Huddled | Tagged Development, Performance, Pipeline, PowerShell, Randomization, Reservoir Sampling | 2 Responses

What’s the desired behavior of inputObject?

By Joel 'Jaykul' Bennett on 22-Dec-2007

In response to Kirk Munro’s comment on my Writing Cmdlets for the PowerShell Pipeline post: You know, I’ve looked at your articles about cmdlets/functions in the pipeline and I feel you’re missing something. The purpose of the InputObject parameter is to pass in a collection as a single object. This is as opposed to using [...]

Posted in Huddled | Tagged Behavior, Bugs, Cmdlet, Development, Documentation, Expectations, Pipeline, PowerShell, Users | 1 Response

PowerShell 2.0 CTP – Script Cmdlets

By Joel 'Jaykul' Bennett on 06-Nov-2007

Well, the first alpha CTP release of PowerShell 2.0 is out, and there’s a lot of new stuff in it … but I won’t repeat the list from the PowerShell blog, because I’m sure you’ve seen it five or six times already. Instead, lets just skip straight to talking about one of the features we’ve [...]

Posted in Huddled | Tagged Alpha, Beta, Cmdlet, CTP, Development, Pipeline, PowerShell, Scripting | 2 Responses

Writing Cmdlets for the PowerShell Pipeline

By Joel 'Jaykul' Bennett on 06-Nov-2007

In a continuation of what is, sadly, becoming a series on how the PowerShell Pipeline works … Karl Prosser brought to my attention that certain powershell commands which have an -InputObject parameter don’t actually work when you pass something into it … so I thought I should create a cmdlet to show you how to [...]

Posted in Huddled | Tagged Cmdlet, Development, My Software, Pipeline, PowerShell, Programming, Scripting, SourceCode | 4 Responses

Writing Better Script Functions for the PowerShell Pipeline

By Joel 'Jaykul' Bennett on 25-Oct-2007

I wrote a post last week about how to write functions for use in the PowerShell pipeline and I’ve been using the template I wrote in that post as the basis for several of my other scripts … and I’ve been gradually fleshing it out, and improving it, so I thought I’d drop it here [...]

Posted in Huddled | Tagged Pipeline, PowerShell, PowerShell Functions, Scripting

Using Script Functions in the PowerShell Pipeline

By Joel 'Jaykul' Bennett on 19-Oct-2007

Update, I created a better version of a pipeline function for powershell … Every once in a while the question of how to best use the process block of a function to process pipeline objects comes up on IRC, and although I’m sure others have already written this up on the web in the past, [...]

Posted in Huddled | Tagged Pipeline, PowerShell, PowerShell Functions, Scripting

Lijit Search

Tags

.Net .Net 2008 Scripting Games Automation Bugs Design Development Funny Gadgets GeoShell GUI Huddled Masses Internet licensing Microsoft Modules My Software News Personal PInvoke Pipeline Politics PoshCode PoshConsole PowerBoots PowerShell PowerShell Functions PowerTips Rants Recommender Repository Scripting ShowUI Software Solutions Textile Tips User Group UserInterface WalkThrough WebHosting Windows 7 WordPress WPF Xml

About Huddled Masses

This is web site is dedicated to the musings of Joel Bennett (aka Jaykul) about technology, software, software development, the web, and the world.

Any resemblance of the views expressed and the views of my employer, my terminal, or the view out my window are purely coincidental. The resemblance between them and my own views is non-deterministic. The question of the existence of views in the absence of anyone to hold them is left as an exercise for the reader.

P.S.: I occasionally link to things I think are great. When I do, I occasionally find a "referral code" so I can make a little cash. I promise that I don't link to anything just because of that cash (I wouldn't cross the street for the amount of cash those links bring in, never mind write a whole blog post) ... but I do not promise that things I link to will stay great as time passes, nor that you will agree with me about their greatness!

Archives

  • January 2012
  • October 2011
  • August 2011
  • July 2011
  • June 2011
  • March 2011
  • February 2011
  • January 2011
  • November 2010
  • August 2010

Copyright © 2012 Joel Bennett.

Powered by WordPress and Hybrid.