]> git.proxmox.com Git - pve-storage.git/blobdiff - PVE/CLI/pvesm.pm
Add read_password in CLI.
[pve-storage.git] / PVE / CLI / pvesm.pm
index e6c37eac0caef8bc66b222a097c5272604a42ff7..57743646e9255f03f10bb451db7646696487321a 100755 (executable)
@@ -17,6 +17,7 @@ use PVE::API2::Storage::Content;
 use PVE::API2::Storage::Status;
 use PVE::API2::Storage::Scan;
 use PVE::JSONSchema qw(get_standard_option);
+use PVE::PTY;
 
 use PVE::CLIHandler;
 
@@ -26,6 +27,10 @@ my $KNOWN_EXPORT_FORMATS = ['raw+size', 'tar+size', 'qcow2+size', 'vmdk+size', '
 
 my $nodename = PVE::INotify::nodename();
 
+sub read_password {
+    return PVE::PTY::read_password("Enter Password: ");
+}
+
 sub setup_environment {
     PVE::RPCEnvironment->setup_default_cli_env();
 }