poshbotio / PoshBot

Powershell-based bot framework
MIT License
540 stars 108 forks source link

Support chaining commands together in a pipeline #76

Open devblackops opened 6 years ago

devblackops commented 6 years ago

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
stale[bot] commented 5 years ago

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.