Add read_password in CLI.
This commit is contained in:
committed by
Dietmar Maurer
parent
6a26444462
commit
c26f3a7105
@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user