]> git.proxmox.com Git - pve-client.git/blobdiff - PVE/APIClient/Commands/remote.pm
register standard option inside PVE::APIClient::Config
[pve-client.git] / PVE / APIClient / Commands / remote.pm
index c9e0e622a032f295948a9e978e2311d7c15c5578..5d04e3a87cc21e73793dfe907c9e359e0f305030 100644 (file)
@@ -3,7 +3,7 @@ package PVE::APIClient::Commands::remote;
 use strict;
 use warnings;
 
 use strict;
 use warnings;
 
-use PVE::JSONSchema qw(register_standard_option get_standard_option);
+use PVE::JSONSchema qw(get_standard_option);
 use PVE::APIClient::Config;
 
 use PVE::CLIHandler;
 use PVE::APIClient::Config;
 
 use PVE::CLIHandler;
@@ -13,19 +13,6 @@ use PVE::PTY ();
 
 use base qw(PVE::CLIHandler);
 
 
 use base qw(PVE::CLIHandler);
 
-my $complete_remote_name = sub {
-
-    my $config = PVE::APIClient::Config->new();
-    return $config->remote_names;
-};
-
-register_standard_option('pveclient-remote-name', {
-    description => "The name of the remote.",
-    type => 'string',
-    pattern => qr(\w+),
-    completion => $complete_remote_name,
-});
-
 sub read_password {
    return PVE::PTY::read_password("Remote password: ")
 }
 sub read_password {
    return PVE::PTY::read_password("Remote password: ")
 }