From 4a7e63b852e9e15935c2ab0ed4b7e6c097fd96c4 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Thu, 14 Jun 2018 12:14:58 +0200 Subject: [PATCH 1/1] pveclient: add read_pasword handler Because this is the base CLIHandler class now. --- pveclient | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pveclient b/pveclient index f78770b..6498622 100755 --- 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') { -- 2.39.2