I think plenty of people are using this together with the masterzen/winrm package, which is a dependency of this package too, so there's already code for setting up the winrm client.
The winrmcp package could accept an existing winrm.Client instead of having to set up a new one through winrmcp.New()
Because Winrmcp{}'s config and client are unexported, you can't do something like winrmcp.Winrmcp{client: existingclient, config: winrmcp.Config{....}}.
I think plenty of people are using this together with the masterzen/winrm package, which is a dependency of this package too, so there's already code for setting up the winrm client.
The winrmcp package could accept an existing
winrm.Client
instead of having to set up a new one throughwinrmcp.New()
Because
Winrmcp{}
'sconfig
andclient
are unexported, you can't do something likewinrmcp.Winrmcp{client: existingclient, config: winrmcp.Config{....}}
.