PoshBot icon indicating copy to clipboard operation
PoshBot copied to clipboard

Support chaining commands together in a pipeline

Open devblackops opened this issue 8 years ago • 1 comments

It would be super dope if PoshBot supported chaining commands together in a pipeline. I envision this could work similar to how Cog does it.

From a UX perspective, this should behave like PowerShell pipelines where each item returned from a command will be fed into the next command.

Example

Run the getvm command to retrieve all the Windows VMs, select just the name property from the command output and sort it.

!getvm -type windows | select name | sort

Support for ValueByName should be there as well. The startvm command should accept required parameters from the output of the getvm command.

Get a list of stopped VMs and start them.

!getvm -status stopped | startvm

devblackops avatar Dec 16 '17 06:12 devblackops

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Aug 23 '19 05:08 stale[bot]