[pve-devel] [PATCH common 3/3] cli: whitespace cleanup
Philip Abernethy
p.abernethy at proxmox.com
Fri Oct 6 13:14:37 CEST 2017
---
src/PVE/CLIHandler.pm | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/PVE/CLIHandler.pm b/src/PVE/CLIHandler.pm
index d480e70..2ccc15c 100644
--- a/src/PVE/CLIHandler.pm
+++ b/src/PVE/CLIHandler.pm
@@ -124,12 +124,12 @@ $generate_usage_str = sub {
};
__PACKAGE__->register_method ({
- name => 'help',
+ name => 'help',
path => 'help',
method => 'GET',
description => "Get help about specified command.",
parameters => {
- additionalProperties => 0,
+ additionalProperties => 0,
properties => {
cmd => {
description => "Command name",
@@ -145,7 +145,7 @@ __PACKAGE__->register_method ({
},
},
returns => { type => 'null' },
-
+
code => sub {
my ($param) = @_;
@@ -153,13 +153,13 @@ __PACKAGE__->register_method ({
my $cmd = $param->{cmd};
- my $verbose = defined($cmd) && $cmd;
+ my $verbose = defined($cmd) && $cmd;
$verbose = $param->{verbose} if defined($param->{verbose});
if (!$cmd) {
if ($verbose) {
print_usage_verbose();
- } else {
+ } else {
print_usage_short(\*STDOUT);
}
return undef;
@@ -387,7 +387,7 @@ sub verify_api {
my $get_exe_name = sub {
my ($class) = @_;
-
+
my $name = $class;
$name =~ s/^.*:://;
$name =~ s/_/-/g;
--
2.11.0
More information about the pve-devel
mailing list