Open devblackops opened 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.
Run the getvm command to retrieve all the Windows VMs, select just the name property from the command output and sort it.
getvm
!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.
startvm
Get a list of stopped VMs and start them.
!getvm -status stopped | startvm
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.
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.Support for ValueByName should be there as well. The
startvm
command should accept required parameters from the output of thegetvm
command.Get a list of stopped VMs and start them.