You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using the govc commands in my own cli. I basically repeating the steps done by cli.Run().
Now as I understand it, each implemented command has a Write() function that should write the output to the passed in writer.
govc host.info is always writing to os.stdout instead of the writer passed to Write().
I know it would be better to use govmomi directly but the govc commands where a quick way to implement the functionality I needed.
Describe the bug
I am using the govc commands in my own cli. I basically repeating the steps done by cli.Run().
Now as I understand it, each implemented command has a Write() function that should write the output to the passed in writer.
govc host.info is always writing to os.stdout instead of the writer passed to Write().
I know it would be better to use govmomi directly but the govc commands where a quick way to implement the functionality I needed.
To Reproduce
Steps to reproduce the behavior:
main.go:
Expected behavior
Output of the host.info command should be written to the writer passed in to the OutputFlag.
Affected version
govc 0.29.0
Screenshots/Debug Output
Output of the main.go described above is:
The text was updated successfully, but these errors were encountered: