]> git.proxmox.com Git - pve-client.git/commitdiff
pveclient: add read_pasword handler
authorDietmar Maurer <dietmar@proxmox.com>
Thu, 14 Jun 2018 10:14:58 +0000 (12:14 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 14 Jun 2018 10:14:58 +0000 (12:14 +0200)
Because this is the base CLIHandler class now.

pveclient

index f78770b5d4ce5f50bdf60622e8992ef057356b18..6498622565dbf6171bca920d5cb1448616156443 100755 (executable)
--- a/pveclient
+++ b/pveclient
@@ -9,6 +9,7 @@ use Data::Dumper;
 
 use PVE::APIClient::JSONSchema qw(register_standard_option get_standard_option);
 use PVE::APIClient::CLIHandler;
+use PVE::APIClient::PTY;
 
 use PVE::APIClient::LWP;
 use PVE::APIClient::Helpers;
@@ -49,6 +50,11 @@ sub call_api_method {
 
 use base qw(PVE::APIClient::CLIHandler);
 
+sub read_password {
+   return PVE::APIClient::PTY::read_password("Remote password: ")
+}
+
+
 my $cmd = $ARGV[0];
 
 if ($cmd && $cmd eq 'packagedepends') {