Conversation
|
Your PR proposes an incompatible change with respect to Would you mind adding some documentation about the direct command system in a section of the README? |
|
Good point. I'll look into how to set those dynamically, and write up some documentation. |
0dae34e to
1d7a916
Compare
|
I wasn't able to put it in the direct-command system because that only applies after a shell has been created, and the options in question are applied when connecting/creating the shell. So I decided to just add an options field to the parameters where these options (along with the other two, i.e. codepage and skip_cmd) can be set. I've also documented this in the readme, along with the workings of directcommand. I hope my descriptions are clear enough :) |
1d7a916 to
397f988
Compare
New directcommand.go which sends commands directly to the remote. Noprofile and consolemode_stdin off, so remote powershell doesn't think it's interactive
397f988 to
14ac2c8
Compare
New directcommand.go with object that sends commands directly to the remote.
Noprofile and consolemode_stdin off, so remote powershell doesn't think it's interactive
This can be used to run a shell on the remote side, and then repeatedly send commands to that shell and receive their output.
I use this (in https://github.com/willemm/cluster-api-provider-scvmm) to open a powershell remotely and then run a number of cmdlets on it, which is much cleaner and faster than sending each statement as a commandline-option to powershell.exe