summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
57d5ede)
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
use PVE::SafeSyslog;
use PVE::Exception qw(raise raise_param_exc);
use PVE::RESTHandler;
use PVE::SafeSyslog;
use PVE::Exception qw(raise raise_param_exc);
use PVE::RESTHandler;
use PVE::INotify;
use base qw(PVE::RESTHandler);
use PVE::INotify;
use base qw(PVE::RESTHandler);
my $complete_command_names = sub { $get_commands->($cmddef) };
my $complete_command_names = sub { $get_commands->($cmddef) };
-my $standard_mappings = { };
+my $standard_mappings = {
+ 'pve-password' => {
+ name => 'password',
+ desc => '<password>',
+ interactive => 1,
+ func => sub {
+ my ($value) = @_;
+ return $value if $value;
+ return PVE::PTY::get_confirmed_password();
+ },
+ },
+};
sub get_standard_mapping {
my ($name, $base) = @_;
sub get_standard_mapping {
my ($name, $base) = @_;