-
Notifications
You must be signed in to change notification settings - Fork 913
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] govc host.info is always writing to os.stdout instead of the writer passed to Write #2995
Comments
Howdy 🖐 markrexwinkel ! Thank you for your interest in this project. We value your feedback and will respond soon. If you want to contribute to this project, please make yourself familiar with the |
markrexwinkel
added a commit
to markrexwinkel/govmomi
that referenced
this issue
Nov 16, 2022
markrexwinkel
added a commit
to markrexwinkel/govmomi
that referenced
this issue
Nov 16, 2022
priyanka19-98
pushed a commit
to priyanka19-98/govmomi
that referenced
this issue
Jan 17, 2024
priyanka19-98
pushed a commit
to priyanka19-98/govmomi
that referenced
this issue
Jan 17, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: