vmware / govmomi

Go library for the VMware vSphere API
Apache License 2.0
2.27k stars 897 forks source link

govc: Add support for prompting password from stdin #3416

Open eaaltonen opened 2 months ago

eaaltonen commented 2 months ago

Description

Add support for the govc tool to prompt for the password directly.

Type of change

Please mark options that are relevant:

How Has This Been Tested?

Run govc find / -type m with vSphere cluster. Enter password when prompted, and check that the command succeeds and output contains VMs.

Checklist:

vmwclabot commented 2 months ago

@eaaltonen, you must sign our contributor license agreement before your changes are merged. Click here to sign the agreement. If you are a VMware employee, read this for further instruction.